content large_stringlengths 0 6.46M | path large_stringlengths 3 331 | license_type large_stringclasses 2
values | repo_name large_stringlengths 5 125 | language large_stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.46M | extension large_stringclasses 75
values | text stringlengths 0 6.46M |
|---|---|---|---|---|---|---|---|---|---|
#' @name joinet-package
#' @keywords documentation
#' @docType package
#'
#' @title
#' Multivariate Elastic Net Regression
#'
#' @description
#' The R package \code{joinet} implements multivariate
#' ridge and lasso regression using stacked generalisation.
#' This multivariate regression typically outperforms
#' uni... | /R/pkgname.R | no_license | minghao2016/joinet | R | false | false | 1,776 | r |
#' @name joinet-package
#' @keywords documentation
#' @docType package
#'
#' @title
#' Multivariate Elastic Net Regression
#'
#' @description
#' The R package \code{joinet} implements multivariate
#' ridge and lasso regression using stacked generalisation.
#' This multivariate regression typically outperforms
#' uni... |
\name{my.predict.cart}
\alias{my.predict.cart}
\title{CART prediction of class membership for new samples}
\usage{
my.predict.cart(results.cart, new.data)
}
\arguments{
\item{results.cart}{CART object fitted with \code{cart}
or \code{stump} functions}
\item{new.data}{data set containing the new observations:
... | /man/my.predict.cart.Rd | no_license | llaarraa/cartHD | R | false | false | 1,061 | rd | \name{my.predict.cart}
\alias{my.predict.cart}
\title{CART prediction of class membership for new samples}
\usage{
my.predict.cart(results.cart, new.data)
}
\arguments{
\item{results.cart}{CART object fitted with \code{cart}
or \code{stump} functions}
\item{new.data}{data set containing the new observations:
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/map_point.R
\name{map_point}
\alias{map_point}
\title{Loads the information of the parcel and displays it on a map of the parcel using its coordinates}
\usage{
map_point(banRmatrix, information)
}
\arguments{
\item{banRmatrix}{banR object}
\... | /man/map_point.Rd | no_license | hamzasen/artemis | R | false | true | 586 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/map_point.R
\name{map_point}
\alias{map_point}
\title{Loads the information of the parcel and displays it on a map of the parcel using its coordinates}
\usage{
map_point(banRmatrix, information)
}
\arguments{
\item{banRmatrix}{banR object}
\... |
#' Eliminating the Unmeasured Confounders and Estimating Causal Effect
#' for Continuous Outcome.
#'
#' @param formula an object of class 'formula' :
#' a symbolic description of the model to be fitted
#' @param data an optional data frame containing the variables in the model.
#' @param sdmethod Choosing a metho... | /R/ncetscon.R | no_license | yuyy-shandong/NCETS | R | false | false | 8,790 | r | #' Eliminating the Unmeasured Confounders and Estimating Causal Effect
#' for Continuous Outcome.
#'
#' @param formula an object of class 'formula' :
#' a symbolic description of the model to be fitted
#' @param data an optional data frame containing the variables in the model.
#' @param sdmethod Choosing a metho... |
\name{regStepRaster}
\Rdversion{1.1}
\alias{regStepRaster}
\title{
Stepwise regression over raster images
}
\description{
This function performs a stepwise regression with two predictors.
The regression is made in standard form, therefore the reported regression coefficients are in standard deviation units.
... | /man/regStepRaster.Rd | no_license | cran/r2dRue | R | false | false | 3,425 | rd | \name{regStepRaster}
\Rdversion{1.1}
\alias{regStepRaster}
\title{
Stepwise regression over raster images
}
\description{
This function performs a stepwise regression with two predictors.
The regression is made in standard form, therefore the reported regression coefficients are in standard deviation units.
... |
# Breaking down the fortedata2ed function
# The inventory data frame has information about the trees at each plot (speceis, caoopy, ect.)
inventory = fortedata::fd_inventory()
# But the subpplot has information about the plot, the name, area, and boudries
subplots = fortedata::fd_subplots()
# TOBD what this pref... | /Vegetation Ini Conditions/How-to-inital-vegiation-data.R | permissive | kdorheim/pracitceED | R | false | false | 3,718 | r | # Breaking down the fortedata2ed function
# The inventory data frame has information about the trees at each plot (speceis, caoopy, ect.)
inventory = fortedata::fd_inventory()
# But the subpplot has information about the plot, the name, area, and boudries
subplots = fortedata::fd_subplots()
# TOBD what this pref... |
run_rf_test <- function(features.training,
features.testing,
filenamestem,
ntree=500,
mtry=5,
genres_only=TRUE,
fringe_is_poetry=FALSE) {
matrices_no_cutoff <- list()
... | /run_rf_test.R | no_license | hegroiva/Gradu | R | false | false | 5,493 | r | run_rf_test <- function(features.training,
features.testing,
filenamestem,
ntree=500,
mtry=5,
genres_only=TRUE,
fringe_is_poetry=FALSE) {
matrices_no_cutoff <- list()
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gini.wtd.R
\name{gini.wtd}
\alias{gini.wtd}
\title{Gini coefficient}
\source{
Handcock, M. (2016), Relative Distribution Methods. Version 1.6-6. Project home page
at http://www.stat.ucla.edu/~handcock/RelDist.
}
\usage{
gini.wtd(x, weights = ... | /man/gini.wtd.Rd | no_license | ReneSchulenberg/dineq | R | false | true | 1,853 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gini.wtd.R
\name{gini.wtd}
\alias{gini.wtd}
\title{Gini coefficient}
\source{
Handcock, M. (2016), Relative Distribution Methods. Version 1.6-6. Project home page
at http://www.stat.ucla.edu/~handcock/RelDist.
}
\usage{
gini.wtd(x, weights = ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/groupCellsByCluster.R
\name{dataMatrixToCluster.tsne}
\alias{dataMatrixToCluster.tsne}
\title{dataMatrixToCluster.tsne is a function to cluster a data matrix
by t-SNE and return an annotated list of cells}
\usage{
dataMatrixToCluster.tsne(df,... | /man/dataMatrixToCluster.tsne.Rd | no_license | Sage-Bionetworks/single-cell-seq | R | false | true | 473 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/groupCellsByCluster.R
\name{dataMatrixToCluster.tsne}
\alias{dataMatrixToCluster.tsne}
\title{dataMatrixToCluster.tsne is a function to cluster a data matrix
by t-SNE and return an annotated list of cells}
\usage{
dataMatrixToCluster.tsne(df,... |
##
library(rvest)
library(parallel)
library(tidyr)
setwd("C:/Users/hanserjt.CAMPUS/Google Drive/Institutional Effectiveness Home/Jason/R Library/Fantasy Baseball Project")
## Getting list of leagues to search for
brute_force_list <- as.data.frame(seq(1:500000))
colnames(brute_force_list) <- c("League_I... | /1 - Scraping and Cleaning/ESPN_Scrape_1.R | no_license | jason-hanser/fantasy-baseball | R | false | false | 4,537 | r | ##
library(rvest)
library(parallel)
library(tidyr)
setwd("C:/Users/hanserjt.CAMPUS/Google Drive/Institutional Effectiveness Home/Jason/R Library/Fantasy Baseball Project")
## Getting list of leagues to search for
brute_force_list <- as.data.frame(seq(1:500000))
colnames(brute_force_list) <- c("League_I... |
graph_visitors_vs_date <- function(days) {
g <- (
ggplot(days, aes(x=day_of_first_visit, y=new_visitors)) +
geom_point() +
geom_line() +
ggtitle('Site Traffic by Date') +
ylab('New Visitors') +
xlab('') +
theme_classic()
)
return(g)
}
graph_browse... | /R/graphs.R | no_license | rpharrison/piwikr | R | false | false | 2,462 | r | graph_visitors_vs_date <- function(days) {
g <- (
ggplot(days, aes(x=day_of_first_visit, y=new_visitors)) +
geom_point() +
geom_line() +
ggtitle('Site Traffic by Date') +
ylab('New Visitors') +
xlab('') +
theme_classic()
)
return(g)
}
graph_browse... |
#!/usr/bin/Rscript
### RScript that aggregates reports from MiXCR's alignment tool
### Basically turn their report files into a single text file that can be easily manipulated
####################
### DEPENDENCIES ###
####################
### Load dependencies
#.libPaths("/home/exacloud/gscratch/CoussensLab/howellsf/R... | /50_QC/mixcr.analyze.QC.R | no_license | CoussensLabOHSU/tcr-seq_pipeline | R | false | false | 7,000 | r | #!/usr/bin/Rscript
### RScript that aggregates reports from MiXCR's alignment tool
### Basically turn their report files into a single text file that can be easily manipulated
####################
### DEPENDENCIES ###
####################
### Load dependencies
#.libPaths("/home/exacloud/gscratch/CoussensLab/howellsf/R... |
library("fastBoost")
test_that("rpart call from Rcpp works",{
num_each <- 100
fakedata <- data.frame( X=c(rnorm(num_each,0,1),rnorm(num_each,1.5,1)), Y=c(rep(0,num_each),rep(1,num_each) ) )
fakedata$Y <- factor(fakedata$Y)
num_examples <- nrow(fakedata)
weights <- rep(1./num_examples, num_examples)
classnam... | /tests/testthat/test-call_rpart.R | no_license | souravc83/fastBoost | R | false | false | 567 | r | library("fastBoost")
test_that("rpart call from Rcpp works",{
num_each <- 100
fakedata <- data.frame( X=c(rnorm(num_each,0,1),rnorm(num_each,1.5,1)), Y=c(rep(0,num_each),rep(1,num_each) ) )
fakedata$Y <- factor(fakedata$Y)
num_examples <- nrow(fakedata)
weights <- rep(1./num_examples, num_examples)
classnam... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/segmentsOnPeaks.R
\name{segmentsOnPeaks}
\alias{segmentsOnPeaks}
\title{Single QTL confidence intervals on LOD curves}
\usage{
segmentsOnPeaks(cross, calcCisOutput = NULL, ci.chr = NULL,
peak = NULL, l = NULL, h = NULL, s1.output = NULL, mo... | /man/segmentsOnPeaks.Rd | no_license | pinbo/qtlTools | R | false | true | 2,823 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/segmentsOnPeaks.R
\name{segmentsOnPeaks}
\alias{segmentsOnPeaks}
\title{Single QTL confidence intervals on LOD curves}
\usage{
segmentsOnPeaks(cross, calcCisOutput = NULL, ci.chr = NULL,
peak = NULL, l = NULL, h = NULL, s1.output = NULL, mo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ms_dynam.R
\name{ms_dynam}
\alias{ms_dynam}
\title{Member state dynamics}
\usage{
ms_dynam(
myTB,
timeName = "time",
displace = 0.25,
displaceh = 0.45,
dimeFontNum = 5,
myfont_scale = 1.35,
x_angle = 45,
axis_name_y = "Countri... | /man/ms_dynam.Rd | no_license | krlmlr/convergEU | R | false | true | 4,703 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ms_dynam.R
\name{ms_dynam}
\alias{ms_dynam}
\title{Member state dynamics}
\usage{
ms_dynam(
myTB,
timeName = "time",
displace = 0.25,
displaceh = 0.45,
dimeFontNum = 5,
myfont_scale = 1.35,
x_angle = 45,
axis_name_y = "Countri... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions_wrapper.R
\name{get_number_of_individuals}
\alias{get_number_of_individuals}
\title{get_number_of_individuals}
\usage{
get_number_of_individuals(model)
}
\arguments{
\item{model}{(Model) Pharmpy model}
}
\value{
(integer) Number of ... | /man/get_number_of_individuals.Rd | no_license | minghao2016/pharmr | R | false | true | 886 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions_wrapper.R
\name{get_number_of_individuals}
\alias{get_number_of_individuals}
\title{get_number_of_individuals}
\usage{
get_number_of_individuals(model)
}
\arguments{
\item{model}{(Model) Pharmpy model}
}
\value{
(integer) Number of ... |
# This file initializes the datasets of games with final scores using the
# scrape_game_ids() function
# Install (or update) nflscrapR:
# Make sure devtools is installed with:
# install_packages("devtools")
devtools::install_github(repo = "maksimhorowitz/nflscrapR")
# Access nflscrapR:
library(nflscrapR)
# First scr... | /R/init_data/init_games_data.R | no_license | gkenyon/nflscrapR | R | false | false | 4,672 | r | # This file initializes the datasets of games with final scores using the
# scrape_game_ids() function
# Install (or update) nflscrapR:
# Make sure devtools is installed with:
# install_packages("devtools")
devtools::install_github(repo = "maksimhorowitz/nflscrapR")
# Access nflscrapR:
library(nflscrapR)
# First scr... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/knitrRule.R
\name{knitrRule}
\alias{knitrRule}
\title{Rule for building text documents by using the knitr package}
\usage{
knitrRule(target, script, depends = NULL, params = list(), task = "all")
}
\arguments{
\item{target}{Name of the output... | /man/knitrRule.Rd | no_license | beerda/rmake | R | false | true | 2,118 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/knitrRule.R
\name{knitrRule}
\alias{knitrRule}
\title{Rule for building text documents by using the knitr package}
\usage{
knitrRule(target, script, depends = NULL, params = list(), task = "all")
}
\arguments{
\item{target}{Name of the output... |
\name{predict.cox}
\alias{predict.cox}
\title{
Prediction from a Penalized Cox Regression
}
\description{
Predict the survival of new observations based on a penalized Cox regression estimated by unsing a model of the class \code{cox}.
}
\usage{
\method{predict}{cox}(object, ..., newdata, newtimes)
}
\arguments{
\... | /man/predict.cox.Rd | no_license | cran/RISCA | R | false | false | 2,033 | rd | \name{predict.cox}
\alias{predict.cox}
\title{
Prediction from a Penalized Cox Regression
}
\description{
Predict the survival of new observations based on a penalized Cox regression estimated by unsing a model of the class \code{cox}.
}
\usage{
\method{predict}{cox}(object, ..., newdata, newtimes)
}
\arguments{
\... |
#' Provides basic summary statistics and wholistic
#' information about all the features of provided data
#'
#' @param df dataframe (clean)
#'
#' @return a summary dataframe
#' @export
#' @importFrom matrixStats colMeans2 colVars colQuantiles
#'
#' @examples
#' explore_summary(iris)
explore_summary <- function(df) {
... | /R/explore_summary.R | permissive | UBC-MDS/xplrrr | R | false | false | 1,026 | r | #' Provides basic summary statistics and wholistic
#' information about all the features of provided data
#'
#' @param df dataframe (clean)
#'
#' @return a summary dataframe
#' @export
#' @importFrom matrixStats colMeans2 colVars colQuantiles
#'
#' @examples
#' explore_summary(iris)
explore_summary <- function(df) {
... |
library(rjson)
library(httr)
library(DBI)
base_A=httr::GET("https://paymium.com/api/v1/data/eur/trades?since=1389094259&fbclid=IwAR2sBSmR4C9HOMrucCvfi-T3jTcC4ucraL3Q0dZqEocCJ3gXFSypIruDoy8")
r2<-base_A$content
r3<-rawToChar(r2)
listeA<-rjson::fromJSON(r3)
bid_ask_A=httr::GET("https://paymium.com/api/v1/data/eu... | /blockchain_td2.R | no_license | letrou5/blockchaintd2 | R | false | false | 2,756 | r | library(rjson)
library(httr)
library(DBI)
base_A=httr::GET("https://paymium.com/api/v1/data/eur/trades?since=1389094259&fbclid=IwAR2sBSmR4C9HOMrucCvfi-T3jTcC4ucraL3Q0dZqEocCJ3gXFSypIruDoy8")
r2<-base_A$content
r3<-rawToChar(r2)
listeA<-rjson::fromJSON(r3)
bid_ask_A=httr::GET("https://paymium.com/api/v1/data/eu... |
library(dplyr)
library(tidyr)
library(igraph)
library(ggplot2)
library(reticulate)
sp <- reticulate::import("scipy.stats")
source("src/functions/calculateRWHN.R")
# Import multilayer network
mlnw <- readRDS("results/data/mlnw_model.rds")
# Parameter ranges
parameters <- data.frame(trans = c(seq(0.1, 0.9, 0.1), rep... | /src/ParameterTests.R | no_license | JoWatson2011/RWHN_Phosphoproteomics | R | false | false | 4,938 | r | library(dplyr)
library(tidyr)
library(igraph)
library(ggplot2)
library(reticulate)
sp <- reticulate::import("scipy.stats")
source("src/functions/calculateRWHN.R")
# Import multilayer network
mlnw <- readRDS("results/data/mlnw_model.rds")
# Parameter ranges
parameters <- data.frame(trans = c(seq(0.1, 0.9, 0.1), rep... |
library(ISLR)
library(boot)
library(tidyverse)
library(MASS)
#Question 5 --------------
set.seed(1)
glm_fit <- glm(data = Default , default ~ income + balance , family = 'binomial')
#Validation set approach
validation_mse <- function(){
#define train and test set
train <- sample(dim(Default)[1] , dim(Default)[... | /chapter5/chapter5_resampling_questions.R | no_license | Stochastic-Squirrel/ISLR_notes | R | false | false | 4,789 | r | library(ISLR)
library(boot)
library(tidyverse)
library(MASS)
#Question 5 --------------
set.seed(1)
glm_fit <- glm(data = Default , default ~ income + balance , family = 'binomial')
#Validation set approach
validation_mse <- function(){
#define train and test set
train <- sample(dim(Default)[1] , dim(Default)[... |
\name{NormCheck}
\alias{NormCheck}
\title{
Normalization
}
\description{
Normalize the Beta Values and plot a PCA and a hierarchical Clustering of the samples using the noralized data
}
\usage{
NormCheck(ImportDataR, platform, pval, ChrX, ClustMethod, normMethod)
}
\arguments{
\item{ImportDataR}{the object that com... | /man/NormCheck.Rd | no_license | SiYangming/HumMeth27QCReport | R | false | false | 1,801 | rd | \name{NormCheck}
\alias{NormCheck}
\title{
Normalization
}
\description{
Normalize the Beta Values and plot a PCA and a hierarchical Clustering of the samples using the noralized data
}
\usage{
NormCheck(ImportDataR, platform, pval, ChrX, ClustMethod, normMethod)
}
\arguments{
\item{ImportDataR}{the object that com... |
context('Coordinate transformation')
test_that('Coordinates are reflected correctly', {
expect_equal( ReflectedEquivalents(0.01, 0.8, direction=1)[[1]], matrix(
c(-0.06217968 , 0.84167296,
0.05217968 , 0.82435245,
0.01000000 ,-0.80000000,
1.43782032 ,-0.02435245,
-1.44782032 ,-0.041672... | /tests/testthat/test-Coordinates.R | no_license | gitter-badger/Ternary | R | false | false | 2,947 | r | context('Coordinate transformation')
test_that('Coordinates are reflected correctly', {
expect_equal( ReflectedEquivalents(0.01, 0.8, direction=1)[[1]], matrix(
c(-0.06217968 , 0.84167296,
0.05217968 , 0.82435245,
0.01000000 ,-0.80000000,
1.43782032 ,-0.02435245,
-1.44782032 ,-0.041672... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/WSeedCode2.R
\name{simu.cases}
\alias{simu.cases}
\title{simu.cases function}
\usage{
simu.cases(N.boot.pow, n.sub = 10, n.sam = 5, mean.sub = c(1, 2, 1,
2, 1), sd.sub = rep(0.2, n.sam))
}
\arguments{
\item{N.boot.pow, n.sub, n.sam, mean.su... | /man/simu.cases.Rd | no_license | miv5219/Stapleton_Lab | R | false | true | 630 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/WSeedCode2.R
\name{simu.cases}
\alias{simu.cases}
\title{simu.cases function}
\usage{
simu.cases(N.boot.pow, n.sub = 10, n.sam = 5, mean.sub = c(1, 2, 1,
2, 1), sd.sub = rep(0.2, n.sam))
}
\arguments{
\item{N.boot.pow, n.sub, n.sam, mean.su... |
library(testthat)
context("Edit checking")
test_that("Checking a data set works",{
edt <- editmatrix("2*x==y")
dat <- data.frame(x=c(2,1), y=c(4,5))
cr <- checkRows(edt, dat)
expect_equal(cr, c(TRUE,FALSE))
})
test_that("Checking a vector works",{
edt <- editmatrix(editrules = "2*x==y")
... | /editrules/tests/testthat/testCheck.R | no_license | ingted/R-Examples | R | false | false | 1,305 | r | library(testthat)
context("Edit checking")
test_that("Checking a data set works",{
edt <- editmatrix("2*x==y")
dat <- data.frame(x=c(2,1), y=c(4,5))
cr <- checkRows(edt, dat)
expect_equal(cr, c(TRUE,FALSE))
})
test_that("Checking a vector works",{
edt <- editmatrix(editrules = "2*x==y")
... |
################################OSA logistic regression
######### Prep environment
# clear ws()
rm(list = ls())
getwd()
##set the working directory if not opening an Rproject file (in which case your wd is set to the location of the project)
#setwd(yourworkingdirectoryhere)
# load packages (if not already instal... | /200923_Rscript_Regression.R | no_license | ge8793/Osteosarcoma_Public_Data | R | false | false | 45,284 | r |
################################OSA logistic regression
######### Prep environment
# clear ws()
rm(list = ls())
getwd()
##set the working directory if not opening an Rproject file (in which case your wd is set to the location of the project)
#setwd(yourworkingdirectoryhere)
# load packages (if not already instal... |
#' This function evaluates a function \code{x} under an environment which is created by a list. All elements of the list is local to the function; other words all elements of the list can be accessed directly by the function.
#' A new environment is created and each element of \code{variables} is assigned to the new e... | /Jmisc/R/evalFunctionOnList.r | no_license | ctszkin/Jmisc | R | false | false | 1,275 | r | #' This function evaluates a function \code{x} under an environment which is created by a list. All elements of the list is local to the function; other words all elements of the list can be accessed directly by the function.
#' A new environment is created and each element of \code{variables} is assigned to the new e... |
context("Data formats")
findInstDirFile <- function(file)
{
file.path(system.file("testdata", package = "flipChoice", mustWork = TRUE),
file)
}
cho.file <- findInstDirFile("Training.cho")
cho.none.file <- findInstDirFile("none_option.cho")
jmp.design.file <- findInstDirFile("eggs_design.xlsx")
jmp.d... | /tests/testthat/test-dataformats.R | no_license | NailKarimli/flipChoice | R | false | false | 3,265 | r | context("Data formats")
findInstDirFile <- function(file)
{
file.path(system.file("testdata", package = "flipChoice", mustWork = TRUE),
file)
}
cho.file <- findInstDirFile("Training.cho")
cho.none.file <- findInstDirFile("none_option.cho")
jmp.design.file <- findInstDirFile("eggs_design.xlsx")
jmp.d... |
plot3 <- function() {
## plot3.R
## Create a Plot with data series: 'Sub_metering_1','Sub_metering_2' and 'Sub_metering_3' by 'time'
## requested by the Coursera Exploratory Data Analysis Course Project 1
## Written by: Enrique Reveron
## Set system locale to English to have the same output requested (strpti... | /plot3.R | no_license | EReveron/ExData_Plotting1 | R | false | false | 2,826 | r | plot3 <- function() {
## plot3.R
## Create a Plot with data series: 'Sub_metering_1','Sub_metering_2' and 'Sub_metering_3' by 'time'
## requested by the Coursera Exploratory Data Analysis Course Project 1
## Written by: Enrique Reveron
## Set system locale to English to have the same output requested (strpti... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utility_functions.R
\name{scoreGBM}
\alias{scoreGBM}
\title{Annotate glioblastoma (GBM) subtype based on Neftel 2019 scoring pipeline.}
\usage{
scoreGBM(
object,
species = detectSpecies(object),
verbose = T,
do.snip = T,
reduction ... | /man/scoreGBM.Rd | permissive | NMikolajewicz/scMiko | R | false | true | 778 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utility_functions.R
\name{scoreGBM}
\alias{scoreGBM}
\title{Annotate glioblastoma (GBM) subtype based on Neftel 2019 scoring pipeline.}
\usage{
scoreGBM(
object,
species = detectSpecies(object),
verbose = T,
do.snip = T,
reduction ... |
#' @title Run EACI test for gene set enrichment analysis
#' @usage eacitest(scores, lib, idtype=c("ENTREZID", "SYMBOL"),library.loc=NULL,sets = c("GO","KEGG"),
#' locallist = NULL,reduce = NULL,iter=10,minsetsize=10,annotate = TRUE)
#' @param scores numeric vector for gene scores. names should be gene names (IDs)
#' @p... | /package/EACI/R/eacitest.R | no_license | lengning/EACI | R | false | false | 6,071 | r | #' @title Run EACI test for gene set enrichment analysis
#' @usage eacitest(scores, lib, idtype=c("ENTREZID", "SYMBOL"),library.loc=NULL,sets = c("GO","KEGG"),
#' locallist = NULL,reduce = NULL,iter=10,minsetsize=10,annotate = TRUE)
#' @param scores numeric vector for gene scores. names should be gene names (IDs)
#' @p... |
print("Hello World")
print("Hello World")
print("Hello World!")
a <- "Hello Mars"
print(a)
grades <- c(1, 2, 3, 4, 5, 6, 7)
print(grades)
my.grade <- 5
print(my.grade)
print(grades[1:3])
# install.packages("data.table")
library(data.table) | /ML Denis/Course Materials/Section 04 - Installaing the R Environment/Introduction.R | no_license | guptasoumya26/Jupyter-Archives | R | false | false | 244 | r | print("Hello World")
print("Hello World")
print("Hello World!")
a <- "Hello Mars"
print(a)
grades <- c(1, 2, 3, 4, 5, 6, 7)
print(grades)
my.grade <- 5
print(my.grade)
print(grades[1:3])
# install.packages("data.table")
library(data.table) |
common_folder = "C:/Users/oliveipa/Dropbox/Cluster project - Clean/"
design_folder = "6_sampling_location/results"
cluster_folder = "5_previous_node_clustering"
sensitivity_folder = "5_previous_node_clustering/sensitivity_clusters"
epanet_folder = "3_network_modifications"
library(MASS) #necessary for ginv() f... | /6_sampling_location/genetic_algorithm/4_sampling_location_GA_elitism_5clusters.R | no_license | Paulo-de-Oliveira/Cluster_Theory | R | false | false | 11,316 | r |
common_folder = "C:/Users/oliveipa/Dropbox/Cluster project - Clean/"
design_folder = "6_sampling_location/results"
cluster_folder = "5_previous_node_clustering"
sensitivity_folder = "5_previous_node_clustering/sensitivity_clusters"
epanet_folder = "3_network_modifications"
library(MASS) #necessary for ginv() f... |
#STARlong_PATH="/sc/orga/projects/schzrnas/sjzhu/bitbucket/STAR/STAR/source/"
#STARshort_PATH="/sc/orga/projects/schzrnas/sjzhu/bitbucket/STARshort/STAR/source/"
#samtools_PATH="/hpc/packages/minerva-common/samtools/1.1/bin/"
#bedtools_PATH="/hpc/packages/minerva-common/BEDTools/2.27.1/bin/"
#kallisto_PATH="/hpc/packag... | /NatureGenetics/7_LongReadCorrection_Adult2_adult_dlPFC1_10 .R | no_license | zhushijia/STAR2bSMRT | R | false | false | 2,255 | r | #STARlong_PATH="/sc/orga/projects/schzrnas/sjzhu/bitbucket/STAR/STAR/source/"
#STARshort_PATH="/sc/orga/projects/schzrnas/sjzhu/bitbucket/STARshort/STAR/source/"
#samtools_PATH="/hpc/packages/minerva-common/samtools/1.1/bin/"
#bedtools_PATH="/hpc/packages/minerva-common/BEDTools/2.27.1/bin/"
#kallisto_PATH="/hpc/packag... |
library("MASS")
library("kernlab")
library("ROCR")
colors = c("magenta", "cyan")
n <- 100
m <- 100
sigma1 <- matrix(c(1, 0, 0, 1), 2, 2)
sigma2 <- matrix(c(1, 0, 0, 1), 2, 2)
mu1 <- c(8, 10)
mu2 <- c(10, 10)
xc1 <- mvrnorm(n=n, mu = mu1, Sigma = sigma1)
xc2 <- mvrnorm(n=m, mu = mu2, Sigma = sigma2)
dat <- rbind(xc... | /lab10/lab10.R | no_license | null32/ML0 | R | false | false | 1,204 | r | library("MASS")
library("kernlab")
library("ROCR")
colors = c("magenta", "cyan")
n <- 100
m <- 100
sigma1 <- matrix(c(1, 0, 0, 1), 2, 2)
sigma2 <- matrix(c(1, 0, 0, 1), 2, 2)
mu1 <- c(8, 10)
mu2 <- c(10, 10)
xc1 <- mvrnorm(n=n, mu = mu1, Sigma = sigma1)
xc2 <- mvrnorm(n=m, mu = mu2, Sigma = sigma2)
dat <- rbind(xc... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/filterVCF_popstat.R
\name{tajimaD_test}
\alias{tajimaD_test}
\title{Tajima's D test}
\usage{
tajimaD_test(d, n, S)
}
\arguments{
\item{d}{numerator of Tajima's D : pi - thetaW}
\item{n}{number of chromosome sampled}
\item{S}{number of segra... | /filterVCF/man/tajimaD_test.Rd | no_license | benjaminlaenen/filterVCF | R | false | true | 1,141 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/filterVCF_popstat.R
\name{tajimaD_test}
\alias{tajimaD_test}
\title{Tajima's D test}
\usage{
tajimaD_test(d, n, S)
}
\arguments{
\item{d}{numerator of Tajima's D : pi - thetaW}
\item{n}{number of chromosome sampled}
\item{S}{number of segra... |
## Code to generate figures for the manuscript :
# "Somatic structural variation targets neurodevelopmental genes and identifies SHANK2 as a tumor suppressor in neuroblastoma"
# Author: Gonzalo Lopez, PhD
# email: gonzalo.lopezgarcia@mssm.edu
# Date edited: Apr 16th, 2020
#rm(list = ls(all.names = TRUE))
#.rs.restart... | /R/04-nbl_somatic_SV_FIGURES.R | no_license | diskin-lab-chop/NB_structural_variants | R | false | false | 70,391 | r | ## Code to generate figures for the manuscript :
# "Somatic structural variation targets neurodevelopmental genes and identifies SHANK2 as a tumor suppressor in neuroblastoma"
# Author: Gonzalo Lopez, PhD
# email: gonzalo.lopezgarcia@mssm.edu
# Date edited: Apr 16th, 2020
#rm(list = ls(all.names = TRUE))
#.rs.restart... |
load("~/analysis/hipo_050_rnaseq_gencode_v19_expression.Rdata")
source("~/project/cola/load.R")
library(GetoptLong)
l = expression$anno$sample_type == "tumor"
count = as.matrix(expression$count)[, l]
expr = as.matrix(expression$deseq2)[, l]
anno = expression$anno[l, ]
expr_control = as.matrix(expression$deseq2)[, e... | /test_not_run/test_hipo50.R | no_license | NagaComBio/cola | R | false | false | 1,883 | r |
load("~/analysis/hipo_050_rnaseq_gencode_v19_expression.Rdata")
source("~/project/cola/load.R")
library(GetoptLong)
l = expression$anno$sample_type == "tumor"
count = as.matrix(expression$count)[, l]
expr = as.matrix(expression$deseq2)[, l]
anno = expression$anno[l, ]
expr_control = as.matrix(expression$deseq2)[, e... |
#:# libraries
library(digest)
library(mlr)
library(OpenML)
library(farff)
#:# config
set.seed(1)
#:# data
dataset <- getOMLDataSet(data.name = "fri_c2_1000_5")
head(dataset$data)
#:# preprocessing
head(dataset$data)
#:# model
task = makeClassifTask(id = "task", data = dataset$data, target = "binaryClass")
lrn = mak... | /models/openml_fri_c2_1000_5/classification_binaryClass/e7735a06b3366863b6c19a76fb04df27/code.R | no_license | pysiakk/CaseStudies2019S | R | false | false | 690 | r | #:# libraries
library(digest)
library(mlr)
library(OpenML)
library(farff)
#:# config
set.seed(1)
#:# data
dataset <- getOMLDataSet(data.name = "fri_c2_1000_5")
head(dataset$data)
#:# preprocessing
head(dataset$data)
#:# model
task = makeClassifTask(id = "task", data = dataset$data, target = "binaryClass")
lrn = mak... |
#' @export
as.precintcon.monthly <- function(object) {
if (is.element("precintcon.daily", class(object)))
return(precintcon.monthly.aggregation(object))
else if (is.element("data.frame", class(object))) {
if (ncol(object) == 3) {
if (is.element(class(as.vector(object[,3])), c("integer", "n... | /precintcon/R/as.precintcon.monthly.r | no_license | ingted/R-Examples | R | false | false | 775 | r | #' @export
as.precintcon.monthly <- function(object) {
if (is.element("precintcon.daily", class(object)))
return(precintcon.monthly.aggregation(object))
else if (is.element("data.frame", class(object))) {
if (ncol(object) == 3) {
if (is.element(class(as.vector(object[,3])), c("integer", "n... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_interface.R
\name{spark_write_text}
\alias{spark_write_text}
\title{Write a Spark DataFrame to a Text file}
\usage{
spark_write_text(x, path, mode = NULL, options = list(),
partition_by = NULL, ...)
}
\arguments{
\item{x}{A Spark DataF... | /man/spark_write_text.Rd | permissive | washcycle/sparklyr | R | false | true | 1,625 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_interface.R
\name{spark_write_text}
\alias{spark_write_text}
\title{Write a Spark DataFrame to a Text file}
\usage{
spark_write_text(x, path, mode = NULL, options = list(),
partition_by = NULL, ...)
}
\arguments{
\item{x}{A Spark DataF... |
/Exercise/R_Plots/plot_9_22_3D_donuts.R | no_license | KuChanTung/R | R | false | false | 750 | r | ||
```{r}
# SIMULATE POPULATION AND CAPTURE HISTORIES
n_occ<- 10
phi<- rep(0.8,n_occ-1)
p<- rep(0.3,n_occ)
f<- 0.195
n<- 2000 # initial population size
R<- c(n)
for(i in 2:n_occ)
{
R<- c(R,rpois(1,n[i-1]*f))
n<- c(n, rbinom(1,n[i-1],phi)+R[i])
}
super_n<- sum(R) # total population
# WHEN DO CRITTERS RECRUIT TO THE... | /analyses/Pradel-Model/R/7-analysis.R | no_license | sreynolds2/PSPAP-Reboot | R | false | false | 3,638 | r |
```{r}
# SIMULATE POPULATION AND CAPTURE HISTORIES
n_occ<- 10
phi<- rep(0.8,n_occ-1)
p<- rep(0.3,n_occ)
f<- 0.195
n<- 2000 # initial population size
R<- c(n)
for(i in 2:n_occ)
{
R<- c(R,rpois(1,n[i-1]*f))
n<- c(n, rbinom(1,n[i-1],phi)+R[i])
}
super_n<- sum(R) # total population
# WHEN DO CRITTERS RECRUIT TO THE... |
library(survival)
library(coin)
data1<- read.csv("https://raw.githubusercontent.com/20170505a/raw_data/master/data_szq_survival_case1.csv",sep=",")
data1$group <-as.factor(data1$group) #将分组转化为因子类型的数据
Surv(data1$time,data1$status==1)
data.fit <- survfit(Surv(data1$t,data1$status==1)~data1$group)
summary(data.fit)
survd... | /survival_case2.r | no_license | 20170505a/Medicial_Statistics | R | false | false | 562 | r | library(survival)
library(coin)
data1<- read.csv("https://raw.githubusercontent.com/20170505a/raw_data/master/data_szq_survival_case1.csv",sep=",")
data1$group <-as.factor(data1$group) #将分组转化为因子类型的数据
Surv(data1$time,data1$status==1)
data.fit <- survfit(Surv(data1$t,data1$status==1)~data1$group)
summary(data.fit)
survd... |
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
loc <- function(data) {
.Call(`_dplyr_loc`, data)
}
dfloc <- function(df) {
.Call(`_dplyr_dfloc`, df)
}
plfloc <- function(data) {
.Call(`_dplyr_plfloc`, data)
}
strings_addresse... | /R/RcppExports.R | permissive | deepxg/dplyr | R | false | false | 6,600 | r | # Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
loc <- function(data) {
.Call(`_dplyr_loc`, data)
}
dfloc <- function(df) {
.Call(`_dplyr_dfloc`, df)
}
plfloc <- function(data) {
.Call(`_dplyr_plfloc`, data)
}
strings_addresse... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bitly_camp.R
\name{bitly_update_channel}
\alias{bitly_update_channel}
\title{Update A Channel (Premium)}
\usage{
bitly_update_channel(channel_guid = NULL, group_guid = NULL,
guid = NULL, name = NULL, modified = NULL, created = NULL,
campa... | /man/bitly_update_channel.Rd | permissive | elmergonzalezb/urlshorteneR | R | false | true | 1,293 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bitly_camp.R
\name{bitly_update_channel}
\alias{bitly_update_channel}
\title{Update A Channel (Premium)}
\usage{
bitly_update_channel(channel_guid = NULL, group_guid = NULL,
guid = NULL, name = NULL, modified = NULL, created = NULL,
campa... |
#maturity modelling
options(stringsAsFactors=F)
require(bio.lobster)
require(lubridate)
a = read.csv(file.path(project.datadirectory('bio.lobster'),'data','LobsterMaturityDatabase.csv'))
unique(a$X)
a$Y = a$Lat
a$X = a$Long*-1
a$EID = 1:nrow(a)
a$Date = as.Date(a$Date,"%d/%m/%Y")
a$mon = month(a$Date)
Lobster... | /inst/Projects/Maturity/maturitymodelling.r | no_license | LobsterScience/bio.lobster | R | false | false | 1,243 | r | #maturity modelling
options(stringsAsFactors=F)
require(bio.lobster)
require(lubridate)
a = read.csv(file.path(project.datadirectory('bio.lobster'),'data','LobsterMaturityDatabase.csv'))
unique(a$X)
a$Y = a$Lat
a$X = a$Long*-1
a$EID = 1:nrow(a)
a$Date = as.Date(a$Date,"%d/%m/%Y")
a$mon = month(a$Date)
Lobster... |
#*******************************************************************************
#VISUALIZING & ANALYZING FAST FOOD RESTAURANT DISTRIBUTION ACROSS THE USA
#*******************************************************************************
fastFoodClean <- read.csv(paste(path.data.clean, 'fastFoodRestaurantClean.csv',
... | /5.scripts/visualizing.fastFoodRestaurants.R | no_license | fgruenenwald/BigDataChallenge | R | false | false | 1,830 | r | #*******************************************************************************
#VISUALIZING & ANALYZING FAST FOOD RESTAURANT DISTRIBUTION ACROSS THE USA
#*******************************************************************************
fastFoodClean <- read.csv(paste(path.data.clean, 'fastFoodRestaurantClean.csv',
... |
library(tidyverse)
source("Plots/ggplot_settings.R")
# read in the demographics data
demographics_df <- read_delim(file = "Inputs/demographic.tsv",
delim = "\t",
escape_double = FALSE,
trim_ws = TRUE)
# EDA to justify alone tim... | /Analyses/EDA.R | no_license | joemarlo/ATUS-time-series | R | false | false | 3,906 | r | library(tidyverse)
source("Plots/ggplot_settings.R")
# read in the demographics data
demographics_df <- read_delim(file = "Inputs/demographic.tsv",
delim = "\t",
escape_double = FALSE,
trim_ws = TRUE)
# EDA to justify alone tim... |
## The functions 'makeCacheMatrix' and 'cacheSolve' together help us avoiding
## repeated expensive matrix inverse computation by caching the inverse of a matrix
## This function creates a special "matrix" object that can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
## Set the va... | /cachematrix.R | no_license | chumingc/ProgrammingAssignment2 | R | false | false | 1,199 | r | ## The functions 'makeCacheMatrix' and 'cacheSolve' together help us avoiding
## repeated expensive matrix inverse computation by caching the inverse of a matrix
## This function creates a special "matrix" object that can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
## Set the va... |
library(qdap)
### Name: name2sex
### Title: Names to Gender
### Aliases: name2sex
### Keywords: gender name
### ** Examples
## Not run:
##D name2sex(qcv(mary, jenn, linda, JAME, GABRIEL, OLIVA,
##D tyler, jamie, JAMES, tyrone, cheryl, drew))
## End(Not run)
| /data/genthat_extracted_code/qdap/examples/name2sex.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 271 | r | library(qdap)
### Name: name2sex
### Title: Names to Gender
### Aliases: name2sex
### Keywords: gender name
### ** Examples
## Not run:
##D name2sex(qcv(mary, jenn, linda, JAME, GABRIEL, OLIVA,
##D tyler, jamie, JAMES, tyrone, cheryl, drew))
## End(Not run)
|
Bayesian epiallele detection
Copyright (C) 2019 James E. Barrett (regmjeb@ucl.ac.uk)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at yo... | /R_files/epiallele_logging.R | permissive | mferrodo/bed-beta | R | false | false | 4,555 | r | Bayesian epiallele detection
Copyright (C) 2019 James E. Barrett (regmjeb@ucl.ac.uk)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at yo... |
extractcoef <- function(x){
if (x$convergence == 1) {
ms <- x$coefficients
mnames <- rownames(ms)
nrows <- dim(ms)[1]
newnames <- paste0(mnames,c(rep("",nrows),rep("_se",nrows),
rep("_t",nrows),rep("_pval",nrows)))
aux_res <- as.vector(ms)
... | /R/extractcoef.R | no_license | cran/drLumi | R | false | false | 1,189 | r | extractcoef <- function(x){
if (x$convergence == 1) {
ms <- x$coefficients
mnames <- rownames(ms)
nrows <- dim(ms)[1]
newnames <- paste0(mnames,c(rep("",nrows),rep("_se",nrows),
rep("_t",nrows),rep("_pval",nrows)))
aux_res <- as.vector(ms)
... |
library(loa)
### Name: 1.5.loaBarPlot
### Title: loaBarPlot
### Aliases: 1.5.loaBarPlot loaBarPlot
### Keywords: methods
### ** Examples
## Example 1
## Basic bar plot usage
loaBarPlot(Species, Sepal.Width, data=iris, stat=mean)
#or equivalent using formula
## Not run:
##D loaBarPlot(Sepal.Width~Species, d... | /data/genthat_extracted_code/loa/examples/1.5.loaBarPlot.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 362 | r | library(loa)
### Name: 1.5.loaBarPlot
### Title: loaBarPlot
### Aliases: 1.5.loaBarPlot loaBarPlot
### Keywords: methods
### ** Examples
## Example 1
## Basic bar plot usage
loaBarPlot(Species, Sepal.Width, data=iris, stat=mean)
#or equivalent using formula
## Not run:
##D loaBarPlot(Sepal.Width~Species, d... |
# split into tokens by spaces
#' @importFrom stringi stri_split_fixed
.tokenizeST <- function(i) {
tok <- stringi::stri_split_fixed(i, pattern=' ')
return(tok)
}
# safely extract elements from a list, filling with NA when list element is empty
.safelyPickNotNA <- function(i) {
if(all(is.na(i))) {
... | /R_pkg/R/formative-elements.R | no_license | AleBecerra/TaxonomiaSuelos | R | false | false | 11,914 | r | # split into tokens by spaces
#' @importFrom stringi stri_split_fixed
.tokenizeST <- function(i) {
tok <- stringi::stri_split_fixed(i, pattern=' ')
return(tok)
}
# safely extract elements from a list, filling with NA when list element is empty
.safelyPickNotNA <- function(i) {
if(all(is.na(i))) {
... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.32784507357645e-308, 9.53818252170339e+295, 1.22810536108214e+146, 1.68917504516587e-217, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual... | /CNull/inst/testfiles/communities_individual_based_sampling_beta/AFL_communities_individual_based_sampling_beta/communities_individual_based_sampling_beta_valgrind_files/1615830668-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 362 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.32784507357645e-308, 9.53818252170339e+295, 1.22810536108214e+146, 1.68917504516587e-217, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual... |
#' A \code{randomForestSRC::plot.variable} object.
#'
#' A cached object from \code{randomForestSRC::plot.variable} function for the
#' iris randomForestSRC classification forest \code{\link{iris_rf}}.
#'
#' @details For ggRandomForests examples and tests, as well as streamlining the
#' R CMD CHECK for package rel... | /R/iris_prtl.R | no_license | timelyportfolio/ggRandomForests | R | false | false | 2,293 | r | #' A \code{randomForestSRC::plot.variable} object.
#'
#' A cached object from \code{randomForestSRC::plot.variable} function for the
#' iris randomForestSRC classification forest \code{\link{iris_rf}}.
#'
#' @details For ggRandomForests examples and tests, as well as streamlining the
#' R CMD CHECK for package rel... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mod_mappingSelect.R
\name{mappingSelectUI}
\alias{mappingSelectUI}
\title{UI that facilitates the mapping of a single data element (column or field) with a simple select UI}
\usage{
mappingSelectUI(id, label, choices = NULL, default = NULL)
}... | /man/mappingSelectUI.Rd | permissive | SafetyGraphics/safetyGraphics | R | false | true | 698 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mod_mappingSelect.R
\name{mappingSelectUI}
\alias{mappingSelectUI}
\title{UI that facilitates the mapping of a single data element (column or field) with a simple select UI}
\usage{
mappingSelectUI(id, label, choices = NULL, default = NULL)
}... |
minmax_normalize <- function(x) {
return ((x - min(x)) / (max(x) - min(x)))
} | /minmax_normalize.R | no_license | adilahiri/NonABAPathway | R | false | false | 83 | r | minmax_normalize <- function(x) {
return ((x - min(x)) / (max(x) - min(x)))
} |
require("openxlsx")
wb <- createWorkbook()
addWorksheet(wb, "Sheet 1")
writeData(wb, 1, head(iris))
## What we expect
# yellow fill and bold test rows 1:2 cols 1:5
addStyle(wb, sheet = 1, style = createStyle(fgFill = "yellow", textDecoration = "bold"), rows = 1:2, cols = 1:5, gridExpand = TRUE, stack = TRUE)
# y... | /inst/stack_style_testing.R | no_license | pachadotdev/openxlsx | R | false | false | 4,336 | r |
require("openxlsx")
wb <- createWorkbook()
addWorksheet(wb, "Sheet 1")
writeData(wb, 1, head(iris))
## What we expect
# yellow fill and bold test rows 1:2 cols 1:5
addStyle(wb, sheet = 1, style = createStyle(fgFill = "yellow", textDecoration = "bold"), rows = 1:2, cols = 1:5, gridExpand = TRUE, stack = TRUE)
# y... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compression.R
\name{decompress_bmodel}
\alias{decompress_bmodel}
\title{Decompress BoolModel}
\usage{
decompress_bmodel(x, encoding, format = "bmodel")
}
\arguments{
\item{x}{vector returned by compress_bmodel.}
\item{encoding}{named numeric... | /man/decompress_bmodel.Rd | no_license | cheeyeelim/BTR | R | false | true | 615 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compression.R
\name{decompress_bmodel}
\alias{decompress_bmodel}
\title{Decompress BoolModel}
\usage{
decompress_bmodel(x, encoding, format = "bmodel")
}
\arguments{
\item{x}{vector returned by compress_bmodel.}
\item{encoding}{named numeric... |
#' Bayesian inference on a normal mean with a normal prior
#'
#' Evaluates and plots the posterior density for \eqn{\mu}{mu}, the mean of a
#' normal distribution, with a normal prior on \eqn{\mu}{mu}
#'
#'
#' @param x a vector of observations from a normal distribution with unknown
#' mean and known std. deviation.... | /Bolstad/R/normnp.r | no_license | ingted/R-Examples | R | false | false | 4,767 | r | #' Bayesian inference on a normal mean with a normal prior
#'
#' Evaluates and plots the posterior density for \eqn{\mu}{mu}, the mean of a
#' normal distribution, with a normal prior on \eqn{\mu}{mu}
#'
#'
#' @param x a vector of observations from a normal distribution with unknown
#' mean and known std. deviation.... |
####### Code for constructing figures of Section 3.1 (Hurley and Oldford, 2008) ###################
library(PairViz)
#############################
data(cancer, package="PairViz")
bx <- with(cancer, split(sqrt(Survival),Organ))
a <- aov(sqrt(Survival) ~ Organ,data=cancer)
dev.new(height=3, width=3)
par(ma... | /demo/mcplots.R | no_license | cran/PairViz | R | false | false | 1,740 | r | ####### Code for constructing figures of Section 3.1 (Hurley and Oldford, 2008) ###################
library(PairViz)
#############################
data(cancer, package="PairViz")
bx <- with(cancer, split(sqrt(Survival),Organ))
a <- aov(sqrt(Survival) ~ Organ,data=cancer)
dev.new(height=3, width=3)
par(ma... |
#read topic probabilities for sample reviews in "English comments.txt" and "Chinese comments.txt"
data=read.csv(".//data//data_ttest.csv",header=T)
dim(data)
#split the dataset
Chi_num=which(data[,1]=="Chi")
data_Chi=data[Chi_num,]
data_Eng=data[-Chi_num,]
#calculate the average probablitities for each topic... | /ttest.R | no_license | rucliyang/eCommerceAnalysis | R | false | false | 576 | r | #read topic probabilities for sample reviews in "English comments.txt" and "Chinese comments.txt"
data=read.csv(".//data//data_ttest.csv",header=T)
dim(data)
#split the dataset
Chi_num=which(data[,1]=="Chi")
data_Chi=data[Chi_num,]
data_Eng=data[-Chi_num,]
#calculate the average probablitities for each topic... |
library(shiny)
library(leaflet)
library(RColorBrewer)
library(formattable)
library(dplyr)
library(shinydashboard)
library(spData)
library(sp)
library(rgdal)
library(dplyr)
data("house")
sale_data <- as.data.frame(house)
# Changing the stories column into numbers
sale_data$stories <- as.character(sale_data[,"stories"... | /1_Application_Lucas_County/global.R | no_license | mohamedkhanafer/ShinyApplication | R | false | false | 2,007 | r | library(shiny)
library(leaflet)
library(RColorBrewer)
library(formattable)
library(dplyr)
library(shinydashboard)
library(spData)
library(sp)
library(rgdal)
library(dplyr)
data("house")
sale_data <- as.data.frame(house)
# Changing the stories column into numbers
sale_data$stories <- as.character(sale_data[,"stories"... |
# Physical Modeling in MATLAB by Allen B. Downey
# Chapter 3: Loops
# Exercise 3.4
# MATLAB script refactored into R
# This example computes the terms of the series directly; as an exercise,
# write a script named series that computes the same sum by computing the
# elements recurrently.
# You will have to be care... | /PhysModMatlab03Ex4.R | no_license | robertandrewstevens/MATLAB | R | false | false | 384 | r | # Physical Modeling in MATLAB by Allen B. Downey
# Chapter 3: Loops
# Exercise 3.4
# MATLAB script refactored into R
# This example computes the terms of the series directly; as an exercise,
# write a script named series that computes the same sum by computing the
# elements recurrently.
# You will have to be care... |
hook_interactive = function(x, options){
if (!is.null(options$interactive) && (options$interactive)){
paste0("<textarea class='interactive' id='interactive{{slide.num}}' data-cell='{{slide.num}}' data-results='", options$results, "' style='display:none'>",
paste(x, collapse = '\n'), "</textarea>")
} else ... | /slidifyLibraries-master/R/interactive.R | no_license | shell4j/RScriptGit | R | false | false | 2,286 | r | hook_interactive = function(x, options){
if (!is.null(options$interactive) && (options$interactive)){
paste0("<textarea class='interactive' id='interactive{{slide.num}}' data-cell='{{slide.num}}' data-results='", options$results, "' style='display:none'>",
paste(x, collapse = '\n'), "</textarea>")
} else ... |
#' GMLConversion
#'
#' @docType class
#' @importFrom R6 R6Class
#' @export
#' @keywords ISO GML conversion
#' @return Object of \code{\link{R6Class}} for modelling an GMLConversion
#' @format \code{\link{R6Class}} object.
#'
#' @field method
#' @field parameterValue
#'
#' @section Inherited methods:
#' \describe{
#' ... | /R/GMLConversion.R | no_license | 65MO/geometa | R | false | false | 2,427 | r | #' GMLConversion
#'
#' @docType class
#' @importFrom R6 R6Class
#' @export
#' @keywords ISO GML conversion
#' @return Object of \code{\link{R6Class}} for modelling an GMLConversion
#' @format \code{\link{R6Class}} object.
#'
#' @field method
#' @field parameterValue
#'
#' @section Inherited methods:
#' \describe{
#' ... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\docType{data}
\name{dataWiFinches}
\alias{dataWiFinches}
\title{West Indian Finches data}
\description{
West Indian Finches data
}
\keyword{data}
\keyword{datasets}
| /man/dataWiFinches.Rd | no_license | davharris/EcoSimR | R | false | false | 220 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\docType{data}
\name{dataWiFinches}
\alias{dataWiFinches}
\title{West Indian Finches data}
\description{
West Indian Finches data
}
\keyword{data}
\keyword{datasets}
|
/scripts/plots/Java2/Rectangle/84/lines84.R | no_license | seminariosuacj/EyeTracking | R | false | false | 19,538 | r | ||
' Usage: parse_raw_sv_reference_signatures.R -i REFERENCE -o OUTPUT
' -> doc
library(docopt)
args <- docopt(doc)
library(readr)
reference_raw <- read_tsv(args[['REFERENCE']])
is_clustered <- reference_raw$Type == 'clustered'
split <- strsplit(reference_raw$Size, ':')
type_raw <- toupper(sapply(split, function(z) { ... | /sv-signatures/parse_raw_sv_reference_signatures.R | no_license | eyzhao/bio-pipelines | R | false | false | 1,230 | r | ' Usage: parse_raw_sv_reference_signatures.R -i REFERENCE -o OUTPUT
' -> doc
library(docopt)
args <- docopt(doc)
library(readr)
reference_raw <- read_tsv(args[['REFERENCE']])
is_clustered <- reference_raw$Type == 'clustered'
split <- strsplit(reference_raw$Size, ':')
type_raw <- toupper(sapply(split, function(z) { ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Helper.R
\name{get.most.connected}
\alias{get.most.connected}
\title{Get the Most Connected Cells}
\usage{
get.most.connected(mtx, n.sample)
}
\arguments{
\item{mtx}{The normalized reference count matrix}
\item{n.sample}{The number of refere... | /man/get.most.connected.Rd | no_license | riguyer/Capybara_fork | R | false | true | 472 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Helper.R
\name{get.most.connected}
\alias{get.most.connected}
\title{Get the Most Connected Cells}
\usage{
get.most.connected(mtx, n.sample)
}
\arguments{
\item{mtx}{The normalized reference count matrix}
\item{n.sample}{The number of refere... |
#' A Markdown generator
#'
#' You can generate Markdown text using the function elements of this object.
#' @return Each function element returns a character vector.
#' @export
#' @examples md$b('bold'); md$em('emphasize'); md$ul(head(letters))
md = local({
enclose = function(x, by = '') paste0(by, x, by)
list(
... | /R/demo2-GEN.R | permissive | yihui/rlp | R | false | false | 603 | r | #' A Markdown generator
#'
#' You can generate Markdown text using the function elements of this object.
#' @return Each function element returns a character vector.
#' @export
#' @examples md$b('bold'); md$em('emphasize'); md$ul(head(letters))
md = local({
enclose = function(x, by = '') paste0(by, x, by)
list(
... |
#!/usr/bin/env Rscript
## Tenary diagram
## author: Zhiyuan Hu
## created 23 Apr 2020
## last modified 18 Nov 2020
## create scatterplot coloured by density
library(data.table)
library(ggplot2)
library(cowplot)
# read data function
readData <- function(filename) {
taps <- fread(filename,
stringsAs... | /analysis/subtraction_diagram.R | permissive | zhiyhu/CAPS-paper | R | false | false | 2,525 | r | #!/usr/bin/env Rscript
## Tenary diagram
## author: Zhiyuan Hu
## created 23 Apr 2020
## last modified 18 Nov 2020
## create scatterplot coloured by density
library(data.table)
library(ggplot2)
library(cowplot)
# read data function
readData <- function(filename) {
taps <- fread(filename,
stringsAs... |
\name{constants}
\docType{data}
\alias{constants}
\title{Constants Required for Calculating Evapotranspriation}
\description{
This data set contains the universal constants, and examples of other variable constants required for calculating evapotranspiration in function \code{\link{ET}}, based on the climatic c... | /man/constants.Rd | no_license | DanluGuo/Evapotranspiration | R | false | false | 4,805 | rd | \name{constants}
\docType{data}
\alias{constants}
\title{Constants Required for Calculating Evapotranspriation}
\description{
This data set contains the universal constants, and examples of other variable constants required for calculating evapotranspiration in function \code{\link{ET}}, based on the climatic c... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rollUp.R
\name{rollUp}
\alias{rollUp}
\title{Summarize assessments to different spatial resolutions}
\usage{
rollUp(
data,
group_vars = c("ASSESS_ID", "BeneficialUse", "R3172ParameterName"),
cat_var = "IR_Cat",
expand_uses = TRUE,
p... | /man/rollUp.Rd | permissive | utah-dwq/irTools | R | false | true | 1,419 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rollUp.R
\name{rollUp}
\alias{rollUp}
\title{Summarize assessments to different spatial resolutions}
\usage{
rollUp(
data,
group_vars = c("ASSESS_ID", "BeneficialUse", "R3172ParameterName"),
cat_var = "IR_Cat",
expand_uses = TRUE,
p... |
#!/usr/bin/env Rscript
setwd("/home1/datawork/plstenge/Pearl_Oyster_Colour_Population_Genomics/09_snpEff_glm_without_iteration")
import_annoted_files2 <- function(path_file) {
#AF9_ann<- import_annoted_files(paste0(basePath,"output/AF9_SNP_ann_clean.txt"))
tableau <- read.table(path_file, header = FALSE, dec = "... | /00_scripts/17_glm_with_iterations/34_snpSift_plot.R | no_license | PLStenger/Pearl_Oyster_Colour_Population_Genomics | R | false | false | 47,947 | r | #!/usr/bin/env Rscript
setwd("/home1/datawork/plstenge/Pearl_Oyster_Colour_Population_Genomics/09_snpEff_glm_without_iteration")
import_annoted_files2 <- function(path_file) {
#AF9_ann<- import_annoted_files(paste0(basePath,"output/AF9_SNP_ann_clean.txt"))
tableau <- read.table(path_file, header = FALSE, dec = "... |
#' @title plot result of Latent Class model
#'
#' @description This function plot result of Latent Class model (type of data is categorical).
#'
#' @param x a data frame containing quantitative,qualitative or heterogeneous data. Rows
#' correspond to observations and columns correspond to variables.
#'
#' @param... | /R/plot_categorical.R | no_license | haanhnguyen95/mixmodcluster | R | false | false | 573 | r | #' @title plot result of Latent Class model
#'
#' @description This function plot result of Latent Class model (type of data is categorical).
#'
#' @param x a data frame containing quantitative,qualitative or heterogeneous data. Rows
#' correspond to observations and columns correspond to variables.
#'
#' @param... |
#' Multivariate Test of deficit
#'
#' Testing for abnormality in the distance between a a vector of observations
#' for a single case and a vector of population means. Please see vignette
#' for further details.
#'
#' @param case Vector of case scores
#' @param controls Matrix or data frame with scores from the ... | /R/MTD.R | no_license | cran/singcar | R | false | false | 9,987 | r | #' Multivariate Test of deficit
#'
#' Testing for abnormality in the distance between a a vector of observations
#' for a single case and a vector of population means. Please see vignette
#' for further details.
#'
#' @param case Vector of case scores
#' @param controls Matrix or data frame with scores from the ... |
# PISA2012_2a.R
# Prepared by SUhas D. Parandekar, Wednesday, March 4, 2015
# Revised by SUhas, Wednesday, March 11, 2015
# 1. I generate DEVCON8a file to use
# 2. I add some new variables - NEWID VIETNAM PRESCHOOL VNM.f
# 3. I generate kernel plots
# 4. I determine location of the new variables 927-930 in DEVCON8
... | /PISA2012_2a.R | no_license | educ0608/PISA_2012 | R | false | false | 14,461 | r | # PISA2012_2a.R
# Prepared by SUhas D. Parandekar, Wednesday, March 4, 2015
# Revised by SUhas, Wednesday, March 11, 2015
# 1. I generate DEVCON8a file to use
# 2. I add some new variables - NEWID VIETNAM PRESCHOOL VNM.f
# 3. I generate kernel plots
# 4. I determine location of the new variables 927-930 in DEVCON8
... |
context("plot_grid")
# ------------------------------------
# visual tests
test_that("basic plot arranging works", {
p1 <- ggplot() + theme(plot.background = element_rect(fill = "red"))
p2 <- ggplot() + theme(plot.background = element_rect(fill = "green"))
p3 <- ggplot() + theme(plot.background = element_rect(f... | /tests/testthat/test_plot_grid.R | no_license | wilkelab/cowplot | R | false | false | 3,360 | r | context("plot_grid")
# ------------------------------------
# visual tests
test_that("basic plot arranging works", {
p1 <- ggplot() + theme(plot.background = element_rect(fill = "red"))
p2 <- ggplot() + theme(plot.background = element_rect(fill = "green"))
p3 <- ggplot() + theme(plot.background = element_rect(f... |
# Libraries ---------------------------------------------------------------
library(tidyverse)
library(ggstatsplot)
library(lubridate)
library(reshape2)
library(ggthemes)
library(xts)
library(rpart)
library(corrplot)
library(Hmisc)
library(factoextra)
library(VIM)
library(NbClust)
# Opening the datas... | /Part 1: Initial Exploratory Data Analysis.R | no_license | ZsigmondKun/Spotify_project | R | false | false | 5,307 | r |
# Libraries ---------------------------------------------------------------
library(tidyverse)
library(ggstatsplot)
library(lubridate)
library(reshape2)
library(ggthemes)
library(xts)
library(rpart)
library(corrplot)
library(Hmisc)
library(factoextra)
library(VIM)
library(NbClust)
# Opening the datas... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
... | /cachematrix.R | no_license | acabtr/ProgrammingAssignment2 | R | false | false | 955 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/common-connections.R
\name{addSAMUtilityCols}
\alias{addSAMUtilityCols}
\title{Add SAM utility columns to table}
\usage{
addSAMUtilityCols(df)
}
\arguments{
\item{df}{A dataframe}
}
\value{
A dataframe with three additional columns
}
\descrip... | /man/addSAMUtilityCols.Rd | permissive | niilante/healthcareai-r | R | false | true | 672 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/common-connections.R
\name{addSAMUtilityCols}
\alias{addSAMUtilityCols}
\title{Add SAM utility columns to table}
\usage{
addSAMUtilityCols(df)
}
\arguments{
\item{df}{A dataframe}
}
\value{
A dataframe with three additional columns
}
\descrip... |
#install packages and initiate
#install.packages("gtools")
library(gtools)
#install.packages("moments")
library(moments)
install.packages("ggplot2")
library(ggplot2)
#Generate N=15 independent binomial random variables with n=5 trials and probability p=.6
rbinom(15, 5,.6 ) ## this means that out of 5 trials we either ... | /BMI504_Class5.R | no_license | UB-BiomedicalInformatics/BMI504-SP18 | R | false | false | 5,239 | r | #install packages and initiate
#install.packages("gtools")
library(gtools)
#install.packages("moments")
library(moments)
install.packages("ggplot2")
library(ggplot2)
#Generate N=15 independent binomial random variables with n=5 trials and probability p=.6
rbinom(15, 5,.6 ) ## this means that out of 5 trials we either ... |
library(tidyverse)
library(dplyr)
library(shiny)
library(shinydashboard)
# Map
#library(tigris)
#library(mapview)
#library(sf)
# To get rid of the scientific notation on the labels.
library(scales)
# Education csv file
acs5_education <-read_csv(('data/acs5_education_metro.csv'))
metro_choices <- sort(unique(acs5_... | /global.R | no_license | lordfrahnk/dq5-people3-atkp3 | R | false | false | 349 | r | library(tidyverse)
library(dplyr)
library(shiny)
library(shinydashboard)
# Map
#library(tigris)
#library(mapview)
#library(sf)
# To get rid of the scientific notation on the labels.
library(scales)
# Education csv file
acs5_education <-read_csv(('data/acs5_education_metro.csv'))
metro_choices <- sort(unique(acs5_... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/IsisMdl_doc.R
\name{fix_variables}
\alias{fix_variables}
\title{\code{\link{IsisMdl}} method: Fix variables to their current values}
\description{
This method of R6 class \code{\link{IsisMdl}} fixes the specified
frml variables to their curre... | /pkg/man/fix_variables.Rd | no_license | timemod/isismdl | R | false | true | 1,516 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/IsisMdl_doc.R
\name{fix_variables}
\alias{fix_variables}
\title{\code{\link{IsisMdl}} method: Fix variables to their current values}
\description{
This method of R6 class \code{\link{IsisMdl}} fixes the specified
frml variables to their curre... |
\name{penalty.constraint.EXPLN}
\alias{penalty.constraint.EXPLN}
\title{
Penalization for population densities that do not fulfil certain constraints for the EXP-LN model
}
\description{
In order to force the individual populations to be sufficiently distinct from each other, one can perform penalized optimization. To ... | /man/penalty.constraint.EXPLN.Rd | no_license | fuchslab/stochprofML | R | false | false | 3,084 | rd | \name{penalty.constraint.EXPLN}
\alias{penalty.constraint.EXPLN}
\title{
Penalization for population densities that do not fulfil certain constraints for the EXP-LN model
}
\description{
In order to force the individual populations to be sufficiently distinct from each other, one can perform penalized optimization. To ... |
fsummary <- function(data){
library(psych)
data2<-cbind(data$age,data$size)
colnames(data2)<-c("age","size")
initials=describe(data2, na.rm = FALSE, interp=FALSE,skew = FALSE, ranges = FALSE,trim=FALSE,
type=3,check=FALSE,fast=TRUE)
initials<-initials[,-1]
initials
} | /fsummary.R | no_license | cdiazgil/B-BVGM | R | false | false | 290 | r | fsummary <- function(data){
library(psych)
data2<-cbind(data$age,data$size)
colnames(data2)<-c("age","size")
initials=describe(data2, na.rm = FALSE, interp=FALSE,skew = FALSE, ranges = FALSE,trim=FALSE,
type=3,check=FALSE,fast=TRUE)
initials<-initials[,-1]
initials
} |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cv.sglfit.R
\name{cv.sglfit}
\alias{cv.sglfit}
\title{Cross-validation fit for sg-LASSO}
\usage{
cv.sglfit(x, y, lambda = NULL, gamma = 1.0, gindex = 1:p, nfolds = 10, foldid, ...)
}
\arguments{
\item{x}{T by p data matrix, where t and p resp... | /man/cv.sglfit.Rd | no_license | ababii/midasml | R | false | true | 3,556 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cv.sglfit.R
\name{cv.sglfit}
\alias{cv.sglfit}
\title{Cross-validation fit for sg-LASSO}
\usage{
cv.sglfit(x, y, lambda = NULL, gamma = 1.0, gindex = 1:p, nfolds = 10, foldid, ...)
}
\arguments{
\item{x}{T by p data matrix, where t and p resp... |
# SVD Example
hilbert <- function(n) { i <- 1:n; 1 / outer(i - 1, i, "+") }
X <- hilbert(9)[, 1:6]
(s <- svd(X))
D <- diag(s$d)
s$u %*% D %*% t(s$v) # X = U D V'
t(s$u) %*% X %*% s$v # D = U' X V
a <- modelSVD@model$svd$u %*% diag(modelSVD@model$svd$d) %*% t(modelSVD@model$svd$v)
a[1:10, 1:10]
movieMatrix[1:10, 1:... | /Project 3/Project3_WorkScript.R | no_license | ilyakats/CUNY-DATA643 | R | false | false | 2,262 | r | # SVD Example
hilbert <- function(n) { i <- 1:n; 1 / outer(i - 1, i, "+") }
X <- hilbert(9)[, 1:6]
(s <- svd(X))
D <- diag(s$d)
s$u %*% D %*% t(s$v) # X = U D V'
t(s$u) %*% X %*% s$v # D = U' X V
a <- modelSVD@model$svd$u %*% diag(modelSVD@model$svd$d) %*% t(modelSVD@model$svd$v)
a[1:10, 1:10]
movieMatrix[1:10, 1:... |
library(ggplot2)
library(IRanges)
library(data.table)
setwd("C:\\Users\\Matthias\\Documents\\Postdoc\\Projects\\2019-02-08_-_Egyptian_genome\\sv")
df = read.table("transloc.txt", header=TRUE, sep="\t", as.is=TRUE, na.strings = c("NA"))
dt = as.data.table(df)
res = dt[, list(tsv_id=list(tsv_id)),
... | /EGP_sv_merging/transloc.R | no_license | ahmedelhosseiny/Egyptref | R | false | false | 2,149 | r | library(ggplot2)
library(IRanges)
library(data.table)
setwd("C:\\Users\\Matthias\\Documents\\Postdoc\\Projects\\2019-02-08_-_Egyptian_genome\\sv")
df = read.table("transloc.txt", header=TRUE, sep="\t", as.is=TRUE, na.strings = c("NA"))
dt = as.data.table(df)
res = dt[, list(tsv_id=list(tsv_id)),
... |
#'Metabolic profiles of KEGG organism Buchnera aphidicola APS (Acyrthosiphon
#'pisum) (KEGG organism code: buc)
#'
#'kegg organism buc metabolic information, which consists of enzymatic reactions
#'and metabolites.
#'
#'@details
#'
#'buc metatolic information:
#'
#' \itemize{
#' \item .attrs.name: Enzyma... | /RevEcoR/R/kegg_buc.R | no_license | ingted/R-Examples | R | false | false | 767 | r | #'Metabolic profiles of KEGG organism Buchnera aphidicola APS (Acyrthosiphon
#'pisum) (KEGG organism code: buc)
#'
#'kegg organism buc metabolic information, which consists of enzymatic reactions
#'and metabolites.
#'
#'@details
#'
#'buc metatolic information:
#'
#' \itemize{
#' \item .attrs.name: Enzyma... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536124204e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_... | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615774211-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 362 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536124204e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_... |
checkNcdfFile <- function(
### check ncdf file for consistency with CF/COARDS/MDI ncdf conventions
file.name ##<<character string: file name to check
, dims = c('longitude', 'latitude', 'time') ##<< vector of strings:
## names of the dimensions which need to be in the file.
, type = 'strict'... | /R/checkNcdfFile.R | no_license | bgctw/ncdfTools | R | false | false | 5,015 | r | checkNcdfFile <- function(
### check ncdf file for consistency with CF/COARDS/MDI ncdf conventions
file.name ##<<character string: file name to check
, dims = c('longitude', 'latitude', 'time') ##<< vector of strings:
## names of the dimensions which need to be in the file.
, type = 'strict'... |
plot_four_hires <- function(params){
moco_fn <- paste("moco-3-pattern-", params$group, ".csv", sep="")
egi_fn <- "egi.csv"
moco_path <- paste(data_path, moco_fn, sep="")
egi_path <- paste(data_path, egi_fn, sep="")
topoplot_fullpath <- paste(figs_path, "topoplot.png", sep="")
# path2figs <- paste('figs', para... | /analysis/R/plot_four_hires.R | no_license | gilmore-lab/infant-moco-eeg | R | false | false | 769 | r | plot_four_hires <- function(params){
moco_fn <- paste("moco-3-pattern-", params$group, ".csv", sep="")
egi_fn <- "egi.csv"
moco_path <- paste(data_path, moco_fn, sep="")
egi_path <- paste(data_path, egi_fn, sep="")
topoplot_fullpath <- paste(figs_path, "topoplot.png", sep="")
# path2figs <- paste('figs', para... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/assign_model_inputs.R
\name{assign_model_inputs}
\alias{assign_model_inputs}
\title{Assign inputs for various modeling algorithms within nmecr.
Passed in as the argument model_input_options for all models in nmecr}
\usage{
assign_model_inputs... | /man/assign_model_inputs.Rd | permissive | kW-Labs/nmecr | R | false | true | 2,449 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/assign_model_inputs.R
\name{assign_model_inputs}
\alias{assign_model_inputs}
\title{Assign inputs for various modeling algorithms within nmecr.
Passed in as the argument model_input_options for all models in nmecr}
\usage{
assign_model_inputs... |
library(ape)
testtree <- read.tree("636_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="636_0_unrooted.txt") | /codeml_files/newick_trees_processed/636_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 133 | r | library(ape)
testtree <- read.tree("636_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="636_0_unrooted.txt") |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.