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
setwd("/Users/hzdy1994/Desktop/Kaggle") #library(parallel) library(Matrix) library(lightgbm) load("data/new_feature_added.RData") # fill in all the missing values with -1: should be some way to process this in lightGBM... train_test[is.na(train_test)] = -1 train = train_test[train_test$data == "train", -2] test = t...
/modeling/lightGBM2.R
no_license
yudong-94/Kaggle-Safe-Driver-Prediction
R
false
false
13,124
r
setwd("/Users/hzdy1994/Desktop/Kaggle") #library(parallel) library(Matrix) library(lightgbm) load("data/new_feature_added.RData") # fill in all the missing values with -1: should be some way to process this in lightGBM... train_test[is.na(train_test)] = -1 train = train_test[train_test$data == "train", -2] test = t...
# Author: Robert J. Hijmans, r.hijmans@gmail.com # Date: December 2009 # Version 0.1 # Licence GPL v3 if (!isGeneric("density")) { setGeneric("density", function(x, ...) standardGeneric("density")) } setMethod('density', signature(x='DistModel'), function(x, v=NULL, ...) { if (is.null(v)) { ...
/R/density.R
no_license
ysliaw01/dismo
R
false
false
1,450
r
# Author: Robert J. Hijmans, r.hijmans@gmail.com # Date: December 2009 # Version 0.1 # Licence GPL v3 if (!isGeneric("density")) { setGeneric("density", function(x, ...) standardGeneric("density")) } setMethod('density', signature(x='DistModel'), function(x, v=NULL, ...) { if (is.null(v)) { ...
source("scripts/common.R") library(xCell) args <- commandArgs(trailingOnly=T) threads <- as.integer(args[1]) infile <- args[2] outfile <- args[3] df <- read_gct(infile) # # remove redundant genes # df <- df %>% group_by(Name) %>% slice(1) %>% ungroup # # convert into a matrix # mat <- df %>% select(-Name, -Descrip...
/scripts/xcell.R
permissive
toddajohnson/immunoduct
R
false
false
590
r
source("scripts/common.R") library(xCell) args <- commandArgs(trailingOnly=T) threads <- as.integer(args[1]) infile <- args[2] outfile <- args[3] df <- read_gct(infile) # # remove redundant genes # df <- df %>% group_by(Name) %>% slice(1) %>% ungroup # # convert into a matrix # mat <- df %>% select(-Name, -Descrip...
# Data plot 6 library(ggplot2) # Read in downloaded datasets. NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") # Constants to identify Baltimore, California and road vehicles. baltimore <- "24510" california <- "06037" vehicle <- "ON-ROAD" maryland_state <- "Baltimore" california...
/plot6.R
no_license
dmc1899/exdata-013-project
R
false
false
1,812
r
# Data plot 6 library(ggplot2) # Read in downloaded datasets. NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") # Constants to identify Baltimore, California and road vehicles. baltimore <- "24510" california <- "06037" vehicle <- "ON-ROAD" maryland_state <- "Baltimore" california...
##Consider switching the order in which parameters are solved for: put distribution parms first setClass( Class = "Auction2ndCap", contains="Antitrust", representation=representation( capacities = "numeric", margins = "numeric", prices ...
/R/auction2ndcap.R
no_license
josempazymino/antitrust
R
false
false
27,222
r
##Consider switching the order in which parameters are solved for: put distribution parms first setClass( Class = "Auction2ndCap", contains="Antitrust", representation=representation( capacities = "numeric", margins = "numeric", prices ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/GSMARconstructor.R \name{add_data} \alias{add_data} \title{Add data to object of class 'gsmar' defining a GMAR, StMAR, or G-StMAR model} \usage{ add_data( data, gsmar, calc_qresiduals = TRUE, calc_cond_moments = TRUE, calc_std_error...
/man/add_data.Rd
no_license
yangkedc1984/uGMAR
R
false
true
2,971
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/GSMARconstructor.R \name{add_data} \alias{add_data} \title{Add data to object of class 'gsmar' defining a GMAR, StMAR, or G-StMAR model} \usage{ add_data( data, gsmar, calc_qresiduals = TRUE, calc_cond_moments = TRUE, calc_std_error...
##2020.4.29 ##好的beta多样性排序图可不是加一个置信椭圆就好了 ##https://mp.weixin.qq.com/s/ilmFfu8tg1LJ5rS-OwmX2w library('vegan') library('ggplot2') data(dune, dune.env) #--------nmds排序函数#--- ord <- metaMDS(dune) scrs <- scores(ord, display = 'sites') # 组合排序坐标和分组信息 scrs <- cbind(as.data.frame(scrs), Management = dune.env$Ma...
/分析及画图/置信椭圆及其他变化.R
no_license
mrzhangqjankun/R-code-for-myself
R
false
false
2,095
r
##2020.4.29 ##好的beta多样性排序图可不是加一个置信椭圆就好了 ##https://mp.weixin.qq.com/s/ilmFfu8tg1LJ5rS-OwmX2w library('vegan') library('ggplot2') data(dune, dune.env) #--------nmds排序函数#--- ord <- metaMDS(dune) scrs <- scores(ord, display = 'sites') # 组合排序坐标和分组信息 scrs <- cbind(as.data.frame(scrs), Management = dune.env$Ma...
library(parallel) #RNGkind("L'Ecuyer-CMRG") cores<-strtoi(Sys.getenv('SLURM_CPUS_PER_TASK', unset=1)) nstarts=20 source('spin.R') data<-matrix(rnorm(1000000), ncol=1000) f<-function(i) { spin(3) i*sum(data) } system.time({ results <- mclapply(1:nstarts, f, mc.cores=cores) }) print(Reduce('+', results))
/Examples/apply/ex4.R
no_license
AiM0-create/ParallelR
R
false
false
314
r
library(parallel) #RNGkind("L'Ecuyer-CMRG") cores<-strtoi(Sys.getenv('SLURM_CPUS_PER_TASK', unset=1)) nstarts=20 source('spin.R') data<-matrix(rnorm(1000000), ncol=1000) f<-function(i) { spin(3) i*sum(data) } system.time({ results <- mclapply(1:nstarts, f, mc.cores=cores) }) print(Reduce('+', results))
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/discovr_data.R \docType{data} \name{notebook} \alias{notebook} \title{Muris et al. (2008) data} \format{ A tibble with 70 rows and 6 variables. A tibble with 40 rows and 3 variables. } \source{ \href{https://www.discovr.rocks/csv/muris_2008....
/man/notebook.Rd
no_license
michaelmm9/discovr
R
false
true
4,012
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/discovr_data.R \docType{data} \name{notebook} \alias{notebook} \title{Muris et al. (2008) data} \format{ A tibble with 70 rows and 6 variables. A tibble with 40 rows and 3 variables. } \source{ \href{https://www.discovr.rocks/csv/muris_2008....
### Prepare workspace library(data.table) library(dplyr) ########### ##### Get the best betas and merge rsids ## Extract beta grid betas and merge with beta_grid <- read.table(file = snakemake@input[[1]], sep="\t", header = TRUE) r2_matrix <- read.table(file = snakemake@input[[2]], sep="\t", header = TRUE) r...
/PGS/GAraw/Validation/scripts/best_beta_merge.R
permissive
PerinatalLab/metaGWAS
R
false
false
1,451
r
### Prepare workspace library(data.table) library(dplyr) ########### ##### Get the best betas and merge rsids ## Extract beta grid betas and merge with beta_grid <- read.table(file = snakemake@input[[1]], sep="\t", header = TRUE) r2_matrix <- read.table(file = snakemake@input[[2]], sep="\t", header = TRUE) r...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pipe.R \name{\%>\%} \alias{\%>\%} \title{Pipe operator} \usage{ lhs \%>\% rhs } \description{ Pipe operator } \keyword{internal}
/man/pipe.Rd
permissive
ropensci/jqr
R
false
true
207
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pipe.R \name{\%>\%} \alias{\%>\%} \title{Pipe operator} \usage{ lhs \%>\% rhs } \description{ Pipe operator } \keyword{internal}
# derivatives for tprs # assume here that the penalty order is 2! (ie, m=2) # just eta in 1D eta1<-function(x,xk){ gamma(-1.5)/(16*sqrt(pi))*sqrt((x-xk)^3) } # first derivative deta1<-function(x,xk){ 3*gamma(-1.5)/(16*sqrt(pi))*(1-xk)*(x-xk)^2 } # second derivative ddeta1<-function(x,xk){ 6*gamma(-1.5)/(16*...
/mds/intexp/derivs.R
no_license
distanceModling/phd-smoothing
R
false
false
1,114
r
# derivatives for tprs # assume here that the penalty order is 2! (ie, m=2) # just eta in 1D eta1<-function(x,xk){ gamma(-1.5)/(16*sqrt(pi))*sqrt((x-xk)^3) } # first derivative deta1<-function(x,xk){ 3*gamma(-1.5)/(16*sqrt(pi))*(1-xk)*(x-xk)^2 } # second derivative ddeta1<-function(x,xk){ 6*gamma(-1.5)/(16*...
% Generated by roxygen2 (4.0.0): do not edit by hand \name{integrate_const} \alias{integrate_adaptive} \alias{integrate_const} \alias{integrate_n_steps} \alias{integrate_times} \title{Integrate a System of ODEs} \usage{ integrate_const(stepper, ode_system, y, t0, t1, dt, save_state = FALSE) integrate_n_steps(stepper, ...
/man/rodeint_integrate.Rd
no_license
richfitz/rodeint
R
false
false
5,781
rd
% Generated by roxygen2 (4.0.0): do not edit by hand \name{integrate_const} \alias{integrate_adaptive} \alias{integrate_const} \alias{integrate_n_steps} \alias{integrate_times} \title{Integrate a System of ODEs} \usage{ integrate_const(stepper, ode_system, y, t0, t1, dt, save_state = FALSE) integrate_n_steps(stepper, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/truncated_severity.R \name{autoplot.truncated_dist} \alias{autoplot.truncated_dist} \title{Automatically create a ggplot for objects obtained from fit_truncated_dist()} \usage{ \method{autoplot}{truncated_dist}( object, geom_ecdf = c("poi...
/man/autoplot.truncated_dist.Rd
no_license
MHaringa/insurancerating
R
false
true
1,308
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/truncated_severity.R \name{autoplot.truncated_dist} \alias{autoplot.truncated_dist} \title{Automatically create a ggplot for objects obtained from fit_truncated_dist()} \usage{ \method{autoplot}{truncated_dist}( object, geom_ecdf = c("poi...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/other_functions.R \name{quants} \alias{quants} \title{Calculate cuts by quantiles} \usage{ quants(values, splits = 10, return = "summary") } \arguments{ \item{values}{Vector. Values to calculate quantile cuts} \item{splits}{Integer. How many...
/man/quants.Rd
no_license
alexandereric995/lares
R
false
true
820
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/other_functions.R \name{quants} \alias{quants} \title{Calculate cuts by quantiles} \usage{ quants(values, splits = 10, return = "summary") } \arguments{ \item{values}{Vector. Values to calculate quantile cuts} \item{splits}{Integer. How many...
setwd("C:/Users/bharila/Documents/Rstuff/AutomobileTermProject") automobileWithStrings <- read.csv("automobile.csv", stringsAsFactors = FALSE) str(automobileWithStrings) library(plyr) automobileWithStrings$num.of.cylinders<-mapvalues(automobileWithStrings$num.of.cylinders, from = c("eight", "five", "four", "six"...
/AutomobileTermProject/automobile-module9.R
no_license
Aaradhana1996/Machine-Learning
R
false
false
3,069
r
setwd("C:/Users/bharila/Documents/Rstuff/AutomobileTermProject") automobileWithStrings <- read.csv("automobile.csv", stringsAsFactors = FALSE) str(automobileWithStrings) library(plyr) automobileWithStrings$num.of.cylinders<-mapvalues(automobileWithStrings$num.of.cylinders, from = c("eight", "five", "four", "six"...
library(CARBayes) ### Name: S.CARmultilevel ### Title: Fit a spatial generalised linear mixed model to multi-level ### areal unit data, where the spatial random effects have a Leroux ### conditional autoregressive prior and there are also individual or ### small group level random effects. ### Aliases: S.CARmul...
/data/genthat_extracted_code/CARBayes/examples/S.CARmultilevel.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
2,283
r
library(CARBayes) ### Name: S.CARmultilevel ### Title: Fit a spatial generalised linear mixed model to multi-level ### areal unit data, where the spatial random effects have a Leroux ### conditional autoregressive prior and there are also individual or ### small group level random effects. ### Aliases: S.CARmul...
"wst"<- function(data, filter.number = 10, family = "DaubLeAsymm", verbose = FALSE) { if(verbose == TRUE) cat("Argument checking...") DataLength <- length(data) # # # Check that we have a power of 2 data elements # nlevels <- log(DataLength)/log(2) if(round(nlevels) != nlevels) ...
/R/wst.r
no_license
cran/cthresh
R
false
false
2,788
r
"wst"<- function(data, filter.number = 10, family = "DaubLeAsymm", verbose = FALSE) { if(verbose == TRUE) cat("Argument checking...") DataLength <- length(data) # # # Check that we have a power of 2 data elements # nlevels <- log(DataLength)/log(2) if(round(nlevels) != nlevels) ...
agecount <- function(age = NULL) { ## Check that "age" is non-NULL; else throw error ## Read "homicides.txt" data file ## Extract ages of victims; ignore records where no age is ## given ## Return integer containing count of homicides for that age str.1 = " years old" str.2 = paste0(" ",age, str.1) print(str.2) ...
/agecount.R
no_license
mingjiezhao/Computing_for_data_analysis
R
false
false
446
r
agecount <- function(age = NULL) { ## Check that "age" is non-NULL; else throw error ## Read "homicides.txt" data file ## Extract ages of victims; ignore records where no age is ## given ## Return integer containing count of homicides for that age str.1 = " years old" str.2 = paste0(" ",age, str.1) print(str.2) ...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/bounds.r \name{censor} \alias{censor} \title{Censor any values outside of range.} \usage{ censor(x, range = c(0, 1), only.finite = TRUE) } \arguments{ \item{x}{numeric vector of values to manipulate.} \item{range}{numeric vector of l...
/man/censor.Rd
no_license
LluisRamon/scales
R
false
false
540
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/bounds.r \name{censor} \alias{censor} \title{Censor any values outside of range.} \usage{ censor(x, range = c(0, 1), only.finite = TRUE) } \arguments{ \item{x}{numeric vector of values to manipulate.} \item{range}{numeric vector of l...
#' @title Arc Tangent Transform Image using FSL #' @description This function calls \code{fslmaths -atan}. #' The R functions wraps \code{fslmaths} #' @param file (character) input image to arc tangent transform #' @param outfile (character) resultant image name (optional) #' @param retimg (logical) return image of...
/fslr/R/fslatan.R
no_license
ingted/R-Examples
R
false
false
1,170
r
#' @title Arc Tangent Transform Image using FSL #' @description This function calls \code{fslmaths -atan}. #' The R functions wraps \code{fslmaths} #' @param file (character) input image to arc tangent transform #' @param outfile (character) resultant image name (optional) #' @param retimg (logical) return image of...
library(dplyr); library(rvest); library(stringr); library(lubridate); library(readr) # Get HTML of page of all procurement projects (method: blank search) page.html <- read_html("http://procurement.atlantaga.gov/?s=&submit=Search") # Get data_frame (title, link) of each project projects <- page.html %>% html_no...
/procurement-projects/get_procurement_data.R
no_license
bbrewington/atlanta-finance-data
R
false
false
1,989
r
library(dplyr); library(rvest); library(stringr); library(lubridate); library(readr) # Get HTML of page of all procurement projects (method: blank search) page.html <- read_html("http://procurement.atlantaga.gov/?s=&submit=Search") # Get data_frame (title, link) of each project projects <- page.html %>% html_no...
# Description #### # Pre-process scar output files: merge with succesful whole-transcriptome # barcodes, remove missequenced scars per cell, validate outcome by hand. # Parameters #### log2.cutoff <- 3 # Dependencies #### source("./Scripts/linnaeus-scripts/scar_helper_functions.R") # Load data #### # Scars scars.in ...
/library_scar_filtering/Preprocess_droplet_scar_Z5_allreads.R
no_license
Bastiaanspanjaard/LINNAEUS
R
false
false
12,159
r
# Description #### # Pre-process scar output files: merge with succesful whole-transcriptome # barcodes, remove missequenced scars per cell, validate outcome by hand. # Parameters #### log2.cutoff <- 3 # Dependencies #### source("./Scripts/linnaeus-scripts/scar_helper_functions.R") # Load data #### # Scars scars.in ...
######################################################################### ### ### ### VISOR DE LA MATRIZ DE ORIGEN DESTINO DE LA ISLA DE TENERIFE ### ### ### ### Datos procedente...
/server.R
no_license
mp3laguna/odOCT2018
R
false
false
32,329
r
######################################################################### ### ### ### VISOR DE LA MATRIZ DE ORIGEN DESTINO DE LA ISLA DE TENERIFE ### ### ### ### Datos procedente...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \name{list_paramIT_PRZcst} \alias{list_paramIT_PRZcst} \title{Fit MCMC of \code{propiconazole} data set with IT model} \usage{ data(list_paramIT_PRZcst) } \description{ Fit MCMC of \code{propiconazole} data set with IT model ...
/man/list_paramIT_PRZcst.Rd
no_license
cran/tktdjl2r
R
false
true
354
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \name{list_paramIT_PRZcst} \alias{list_paramIT_PRZcst} \title{Fit MCMC of \code{propiconazole} data set with IT model} \usage{ data(list_paramIT_PRZcst) } \description{ Fit MCMC of \code{propiconazole} data set with IT model ...
library(RADanalysis) ### Name: representative_point ### Title: Computes representative point based on the coordinates of points ### which are in the same group. ### Aliases: representative_point ### ** Examples line_cols <- c("green","red","blue") sample_classes <- c(1,1,1,1,2,2,3,3,1,1,2,3,3,1,1,2,3,3) maxrank <...
/data/genthat_extracted_code/RADanalysis/examples/representative_point.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,519
r
library(RADanalysis) ### Name: representative_point ### Title: Computes representative point based on the coordinates of points ### which are in the same group. ### Aliases: representative_point ### ** Examples line_cols <- c("green","red","blue") sample_classes <- c(1,1,1,1,2,2,3,3,1,1,2,3,3,1,1,2,3,3) maxrank <...
library(stringr) ##1. print("DSO") print("\"") cat("\"") cat("DSO\n545") ##\n - new line cat("DSO\t525") ##\t - with space ##\escape the the next code next to it. ##2. cat(":-\\") cat("^_^\"") cat("@_'-'") cat("\\m/") ##3. ?str_locate ?str_sub ##4. str_locate(string ="great",pattern="a") str_locate_all("fantasti...
/Week10.r
no_license
catkeiss/Strings_in_R
R
false
false
2,093
r
library(stringr) ##1. print("DSO") print("\"") cat("\"") cat("DSO\n545") ##\n - new line cat("DSO\t525") ##\t - with space ##\escape the the next code next to it. ##2. cat(":-\\") cat("^_^\"") cat("@_'-'") cat("\\m/") ##3. ?str_locate ?str_sub ##4. str_locate(string ="great",pattern="a") str_locate_all("fantasti...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fct_gp_impute_Bayes.R \name{gp_impute_driver} \alias{gp_impute_driver} \title{Internal utility that aggregates data and settings needed to trigger an imputation model run} \usage{ gp_impute_driver( iter = NULL, warmup = NULL, adapt_delt...
/man/gp_impute_driver.Rd
no_license
dr-consulting/ibi_VizEdit
R
false
true
2,018
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fct_gp_impute_Bayes.R \name{gp_impute_driver} \alias{gp_impute_driver} \title{Internal utility that aggregates data and settings needed to trigger an imputation model run} \usage{ gp_impute_driver( iter = NULL, warmup = NULL, adapt_delt...
### bivariate kernal二元 核函数支撑要求输入值在-1到1之间 BivKernal <- function(x,y,h=0.01){ x <- x/h y <- y/h return(1/h^2*exp(-(x^2+y^2)/2)-exp(-0.5))/(2*pi-3*pi*exp(-0.5)) }
/R/BivKernal .R
no_license
LuXiaoEei/yangtiao
R
false
false
198
r
### bivariate kernal二元 核函数支撑要求输入值在-1到1之间 BivKernal <- function(x,y,h=0.01){ x <- x/h y <- y/h return(1/h^2*exp(-(x^2+y^2)/2)-exp(-0.5))/(2*pi-3*pi*exp(-0.5)) }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{fuel_mix} \alias{fuel_mix} \title{Mix of fuels contributing to primary energy supply for many countries} \format{A tibble containing 936 rows and 7 variables \describe{ \item{region}{Country or region name} \it...
/man/fuel_mix.Rd
permissive
romainfrancois/kayadata
R
false
true
1,144
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{fuel_mix} \alias{fuel_mix} \title{Mix of fuels contributing to primary energy supply for many countries} \format{A tibble containing 936 rows and 7 variables \describe{ \item{region}{Country or region name} \it...
library(shiny) library(tidyverse) library(lubridate) library(ggplot2) library(dplyr) library(shinythemes) library(googledrive) #Reading in Datasets well9 <- read_csv("Water_table_WS9_WS_9_wells.dat", skip = 4, col_names = c(X1 = "TIMESTAMP" , X2 = "RECORD", X3 ="Batt_Volt", ...
/updated_title page.R
no_license
jpgannon/EI-Capstone-21-WaterViz
R
false
false
33,952
r
library(shiny) library(tidyverse) library(lubridate) library(ggplot2) library(dplyr) library(shinythemes) library(googledrive) #Reading in Datasets well9 <- read_csv("Water_table_WS9_WS_9_wells.dat", skip = 4, col_names = c(X1 = "TIMESTAMP" , X2 = "RECORD", X3 ="Batt_Volt", ...
library(biglmm) ### Name: biglm ### Title: Bounded memory linear regression ### Aliases: biglm update.biglm coef.biglm vcov.biglm print.biglm ### summary.biglm print.summary.biglm AIC.biglm deviance.biglm ### Keywords: regression ### ** Examples data(trees) ff<-log(Volume)~log(Girth)+log(Height) chunk1<-trees[1:...
/data/genthat_extracted_code/biglmm/examples/biglm.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
470
r
library(biglmm) ### Name: biglm ### Title: Bounded memory linear regression ### Aliases: biglm update.biglm coef.biglm vcov.biglm print.biglm ### summary.biglm print.summary.biglm AIC.biglm deviance.biglm ### Keywords: regression ### ** Examples data(trees) ff<-log(Volume)~log(Girth)+log(Height) chunk1<-trees[1:...
#' A Cat Function #' #' This function allows you to express your love of cats. #' @param love Do you love cats? Defaults to TRUE. #' @keywords cats #' @export #' @examples #' cat_function() if(!require("xts")) install.packages("xts", repos="http://cran.rstudio.com/")$ library(xts) library(RPostgreSQL) library("date") ...
/MicrowaveRain/R/main.R
no_license
lezap/Microwave_package
R
false
false
1,690
r
#' A Cat Function #' #' This function allows you to express your love of cats. #' @param love Do you love cats? Defaults to TRUE. #' @keywords cats #' @export #' @examples #' cat_function() if(!require("xts")) install.packages("xts", repos="http://cran.rstudio.com/")$ library(xts) library(RPostgreSQL) library("date") ...
source("common.R") unlink("_targets.yaml") targets::tar_config_set( project = target_name, script = "make-main.R", store = target_directory )
/inst/pipelines/rave-builtin-cluster/configure.R
no_license
z94007/raveclusters
R
false
false
152
r
source("common.R") unlink("_targets.yaml") targets::tar_config_set( project = target_name, script = "make-main.R", store = target_directory )
#----------------------------------------------------------------------------- # # Draw random sample of women in parliament data for 2005 # Christopher Gandrud #----------------------------------------------------------------------------- # # Load packages library(WDI) library(dplyr) # Download women in parliament d...
/seminars/week_6/simple_sample_in_R.R
permissive
christophergandrud/city_sg1022
R
false
false
469
r
#----------------------------------------------------------------------------- # # Draw random sample of women in parliament data for 2005 # Christopher Gandrud #----------------------------------------------------------------------------- # # Load packages library(WDI) library(dplyr) # Download women in parliament d...
#### ---- Project: APHRC Wash Data ---- #### ---- Task: Simulation ---- #### ---- Fit MCMCglmm to recapture betas ---- #### ---- By: Steve and Jonathan ---- #### ---- Date: 2019 Apr 02 (Tue) ---- library(dplyr) library(tidyr) library(tibble) library(ggplot2) library(brms) options(dplyr.width = Inf) theme_set(theme_b...
/brmsModel.R
no_license
CYGUBICKO/wash
R
false
false
3,319
r
#### ---- Project: APHRC Wash Data ---- #### ---- Task: Simulation ---- #### ---- Fit MCMCglmm to recapture betas ---- #### ---- By: Steve and Jonathan ---- #### ---- Date: 2019 Apr 02 (Tue) ---- library(dplyr) library(tidyr) library(tibble) library(ggplot2) library(brms) options(dplyr.width = Inf) theme_set(theme_b...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/altruncnorm.R \name{altruncnorm} \alias{altruncnorm} \title{Generate truncated random normal variables where values outside range are assigned to range limit} \usage{ altruncnorm(n = 100, a = 0, b = 1, mean = 0, sd = 1) } \arguments{ \item{n}...
/man/altruncnorm.Rd
permissive
GarrettLab/seedHealth
R
false
true
980
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/altruncnorm.R \name{altruncnorm} \alias{altruncnorm} \title{Generate truncated random normal variables where values outside range are assigned to range limit} \usage{ altruncnorm(n = 100, a = 0, b = 1, mean = 0, sd = 1) } \arguments{ \item{n}...
install.packages("tidyverse") install.packages("janitor") getwd() library(tidyverse) library(janitor) #19 Feb 2020 df <- readxl::read_xlsx('data-19022020.xlsx') glimpse(df) df_clean <- clean_names(df) %>% select(c(-1,-9)) %>% mutate(ekspedisi = tolower(ekepedisi)) df_clean df_clean %>% gr...
/ongkir-analysis/ongkir-analysis.R
no_license
amrirohman/initiative-project
R
false
false
541
r
install.packages("tidyverse") install.packages("janitor") getwd() library(tidyverse) library(janitor) #19 Feb 2020 df <- readxl::read_xlsx('data-19022020.xlsx') glimpse(df) df_clean <- clean_names(df) %>% select(c(-1,-9)) %>% mutate(ekspedisi = tolower(ekepedisi)) df_clean df_clean %>% gr...
# require(testthat) # require(dendextend) context("Cutting a dendrogram") test_that("Checking if a number is natural",{ expect_true(is.natural.number(1)) # is TRUE expect_true(all(is.natural.number( seq(1,5, by=1) ))) expect_false(all(is.natural.number( seq(0,5, by=1) ))) expect_false(all(is.natural...
/inst/tests/test-cutree.dendrogram.r
no_license
xtmgah/dendextend
R
false
false
13,175
r
# require(testthat) # require(dendextend) context("Cutting a dendrogram") test_that("Checking if a number is natural",{ expect_true(is.natural.number(1)) # is TRUE expect_true(all(is.natural.number( seq(1,5, by=1) ))) expect_false(all(is.natural.number( seq(0,5, by=1) ))) expect_false(all(is.natural...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geom-colour.R \name{geom_colour} \alias{geom_colour} \alias{geom_color} \title{Colour Geom} \usage{ geom_colour(mapping = NULL, data = NULL, colour = "grey60", ...) geom_color(mapping = NULL, data = NULL, colour = "grey60", ...) } \arguments...
/man/geom_colour.Rd
no_license
aaa7260/ggcor
R
false
true
2,228
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geom-colour.R \name{geom_colour} \alias{geom_colour} \alias{geom_color} \title{Colour Geom} \usage{ geom_colour(mapping = NULL, data = NULL, colour = "grey60", ...) geom_color(mapping = NULL, data = NULL, colour = "grey60", ...) } \arguments...
## Script to get the different files form the WD and generate a tidy dataset ## and a rearranged table with the summary per subject an activity ## load y_train; y_test; X_train, X_test subject_train, subject_test y_train<-read.table("y_train.txt") y_test<-read.table("y_test.txt") X_train<-read.table("X_train.tx...
/run_analysis.R
no_license
mray0n/Getting-and-Cleaning-Data
R
false
false
2,251
r
## Script to get the different files form the WD and generate a tidy dataset ## and a rearranged table with the summary per subject an activity ## load y_train; y_test; X_train, X_test subject_train, subject_test y_train<-read.table("y_train.txt") y_test<-read.table("y_test.txt") X_train<-read.table("X_train.tx...
#' @export new_tbl_eav <- function(.data, id_cols, variable_col, value_col) { # check types of inputs? Or not even? tibble::new_tibble(.data, id_cols = id_cols, variable_col = variable_col, value_col = value_col, subclass = "tbl_eav") } #' Make an EAV tibble out of a r...
/R/tbl_eav.R
no_license
jameelalsalam/eavtools
R
false
false
1,386
r
#' @export new_tbl_eav <- function(.data, id_cols, variable_col, value_col) { # check types of inputs? Or not even? tibble::new_tibble(.data, id_cols = id_cols, variable_col = variable_col, value_col = value_col, subclass = "tbl_eav") } #' Make an EAV tibble out of a r...
method = 'diffReps' mark = 'H3K36me3' cell = 'Encode_twocells' bp = 1000 chip1 = c( 'wgEncodeBroadHistoneHelas3H3k36me3StdAlnRep1.markdup.q10.sorted.bed', 'wgEncodeBroadHistoneHelas3H3k36me3StdAlnRep2.markdup.q10.sorted.bed' ) control1 = c( 'wgEncodeBroadHistoneHelas3ControlStdAlnRep1.markdup.q10.sorted.bed', ...
/Public/diffReps/H3K36me3/Encode_twocells/diffReps_H3K36me3_Encode_twocells_1000bp.R
permissive
plbaldoni/epigraHMMPaper
R
false
false
2,133
r
method = 'diffReps' mark = 'H3K36me3' cell = 'Encode_twocells' bp = 1000 chip1 = c( 'wgEncodeBroadHistoneHelas3H3k36me3StdAlnRep1.markdup.q10.sorted.bed', 'wgEncodeBroadHistoneHelas3H3k36me3StdAlnRep2.markdup.q10.sorted.bed' ) control1 = c( 'wgEncodeBroadHistoneHelas3ControlStdAlnRep1.markdup.q10.sorted.bed', ...
#' Choose rows by position #' #' Choose rows by their ordinal position in a data.table. Grouped data.tables use the ordinal position within the group. #' #' @param .data A data.frame or data.table #' @param rows Integer row values. Provide either positive values to keep, or negative values to drop. The values provided ...
/R/slice.R
permissive
psanker/tidytable
R
false
false
2,974
r
#' Choose rows by position #' #' Choose rows by their ordinal position in a data.table. Grouped data.tables use the ordinal position within the group. #' #' @param .data A data.frame or data.table #' @param rows Integer row values. Provide either positive values to keep, or negative values to drop. The values provided ...
#load library library(org.Mm.eg.db) #set work path to source file folder setwd("Desktop") #clean enviroment rm(list=ls()) #read files, gene list first and then norm counts genelist <- read.csv("GeneID.csv", stringsAsFactors = FALSE) NormCounts <- read.csv("htseq.normCounts.Sep2016.csv", stringsAsFactors = FALSE) #c...
/SearchGenes_2016data.R
permissive
CongChen2017/Rscript4Work
R
false
false
1,816
r
#load library library(org.Mm.eg.db) #set work path to source file folder setwd("Desktop") #clean enviroment rm(list=ls()) #read files, gene list first and then norm counts genelist <- read.csv("GeneID.csv", stringsAsFactors = FALSE) NormCounts <- read.csv("htseq.normCounts.Sep2016.csv", stringsAsFactors = FALSE) #c...
library(tidyverse) Gap <- readxl::read_excel("//INHS-Bison/ResearchData/Groups/Kaskaskia_CREP/Analysis/GL_AQ_GAP_Data_2010/VIEW_RIPARIAN_minus_ny.xlsx", sheet = 2, col_types = c("text","text","text","text", "text", "numeric","numeric","numer...
/landuse_geology_metrics/R_landuse_geology_metric_tibble.R
permissive
lehostert/Fish_Analysis
R
false
false
7,691
r
library(tidyverse) Gap <- readxl::read_excel("//INHS-Bison/ResearchData/Groups/Kaskaskia_CREP/Analysis/GL_AQ_GAP_Data_2010/VIEW_RIPARIAN_minus_ny.xlsx", sheet = 2, col_types = c("text","text","text","text", "text", "numeric","numeric","numer...
# Link against mariadb native client static libraries # Info and source code: https://downloads.mariadb.org/client-native/ # Source copy: http://rstats-db.github.io/RMySQL/mariadb_client-2.0.0-src.tar.gz if(!file.exists("../windows/libmariadbclient-2.1.0/include/mysql.h")){ if(getRversion() < "3.3.0") setInternet2() ...
/tools/winlibs.R
no_license
crossett/RMySQL
R
false
false
539
r
# Link against mariadb native client static libraries # Info and source code: https://downloads.mariadb.org/client-native/ # Source copy: http://rstats-db.github.io/RMySQL/mariadb_client-2.0.0-src.tar.gz if(!file.exists("../windows/libmariadbclient-2.1.0/include/mysql.h")){ if(getRversion() < "3.3.0") setInternet2() ...
testlist <- list(end = NULL, start = NULL, x = structure(c(1.18182218295525e-125, 6.95356800386775e-310, 2.32903286132618e+96, 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, 0), .Dim = c(5L, 7L)), segment_end = structure(0, .Dim = c(1L, 1L)), segment_start = structure(0...
/dynutils/inst/testfiles/project_to_segments/AFL_project_to_segments/project_to_segments_valgrind_files/1609869814-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
410
r
testlist <- list(end = NULL, start = NULL, x = structure(c(1.18182218295525e-125, 6.95356800386775e-310, 2.32903286132618e+96, 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, 0), .Dim = c(5L, 7L)), segment_end = structure(0, .Dim = c(1L, 1L)), segment_start = structure(0...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/simulation_helpers.R \name{add_scores} \alias{add_scores} \title{add_scores} \usage{ add_scores(player_dice, num_dice, num_games, num_rolls, strategy, game_ticker, gamecard, scores_vector, final_score, multiplayer) } \arguments{ \item{playe...
/man/add_scores.Rd
permissive
jormacmoo/shipcapcrew
R
false
true
1,427
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/simulation_helpers.R \name{add_scores} \alias{add_scores} \title{add_scores} \usage{ add_scores(player_dice, num_dice, num_games, num_rolls, strategy, game_ticker, gamecard, scores_vector, final_score, multiplayer) } \arguments{ \item{playe...
indicators <- read.csv(file = "./EconomicIndicators.csv", stringsAsFactors = FALSE)
/global.R
no_license
rohitpartha/World-Map-Indicators-Shiny
R
false
false
84
r
indicators <- read.csv(file = "./EconomicIndicators.csv", stringsAsFactors = FALSE)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/UpdateConst.R \name{UpdateConst} \alias{UpdateConst} \title{UpdateConst} \usage{ UpdateConst(y, const) } \arguments{ \item{y}{A matrix, the new sample to be input.} \item{const}{A numeric vector, specifies the value of all global ...
/man/UpdateConst.Rd
no_license
cran/SmartSifter
R
false
true
592
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/UpdateConst.R \name{UpdateConst} \alias{UpdateConst} \title{UpdateConst} \usage{ UpdateConst(y, const) } \arguments{ \item{y}{A matrix, the new sample to be input.} \item{const}{A numeric vector, specifies the value of all global ...
library(hypersampleplan) ### Name: hypersampleplan.CL ### Title: Compute upper and lower confidence limits for the number of ### defective in an attribute sampling plan ### Aliases: hypersampleplan.CL ### Keywords: hypergeometic distribution Attribute sampling ### ** Examples # When one observes 12 defective item...
/data/genthat_extracted_code/hypersampleplan/examples/hypersampleplan.CL.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
544
r
library(hypersampleplan) ### Name: hypersampleplan.CL ### Title: Compute upper and lower confidence limits for the number of ### defective in an attribute sampling plan ### Aliases: hypersampleplan.CL ### Keywords: hypergeometic distribution Attribute sampling ### ** Examples # When one observes 12 defective item...
getAid<- function(varList){ outList = rep(NA, length(varList)) for (k in 1:length(varList)){ varString = "" strList = NA varString = varList[k] strList = strsplit(varString, "_", fixed = TRUE) strList = strList[[1]] strList = strList[strList != "000001"] schoolAidInd =paste("YCOC_055_", ...
/fun_getAid.R
no_license
katlbest/LifecycleChoice
R
false
false
1,354
r
getAid<- function(varList){ outList = rep(NA, length(varList)) for (k in 1:length(varList)){ varString = "" strList = NA varString = varList[k] strList = strsplit(varString, "_", fixed = TRUE) strList = strList[[1]] strList = strList[strList != "000001"] schoolAidInd =paste("YCOC_055_", ...
\name{plot.infl.rma.uni} \alias{plot.infl.rma.uni} \title{Plot Method for infl.rma.uni Objects} \description{ Plot method for objects of class \code{"infl.rma.uni"}. } \usage{ \method{plot}{infl.rma.uni}(x, plotdfb=FALSE, dfbnew=FALSE, logcov=TRUE, las=0, pch=21, bg="black", bg.infl="red", col.na="lightgray", \...
/R/metafor/metafor_1.0-1.tar/metafor/man/plot.infl.rma.uni.Rd
no_license
HocineTighi/OpenMeta-analyst-
R
false
false
3,940
rd
\name{plot.infl.rma.uni} \alias{plot.infl.rma.uni} \title{Plot Method for infl.rma.uni Objects} \description{ Plot method for objects of class \code{"infl.rma.uni"}. } \usage{ \method{plot}{infl.rma.uni}(x, plotdfb=FALSE, dfbnew=FALSE, logcov=TRUE, las=0, pch=21, bg="black", bg.infl="red", col.na="lightgray", \...
get_pca_score_plot_style = function(user_id){ userURL <- URLencode( paste0( "http://metda.fiehnlab.ucdavis.edu/db/metda_userinfo/", user_id ) ) userList <- jsonlite::fromJSON(userURL, simplifyVector = FALSE) return(userList$pca_score_plot_layout) }
/MetDADevelopmentR/no_funs/no_get_pca_score_plot_style.R
no_license
slfan2013/MetDA-development
R
false
false
278
r
get_pca_score_plot_style = function(user_id){ userURL <- URLencode( paste0( "http://metda.fiehnlab.ucdavis.edu/db/metda_userinfo/", user_id ) ) userList <- jsonlite::fromJSON(userURL, simplifyVector = FALSE) return(userList$pca_score_plot_layout) }
#retrieve all incumbent lines inc <- subset(bidline, offer_type == "Inc", select = c(bid_id, snapshot, member, line_type, vendor, award, ndc, indirect_cost, contract_cost, locadn_cost, allindn_cost, scenario, item_num, offerid, annual_qty)) colnames(inc) <- paste("inc", colnames(inc), sep = '_') #retrieve all offer...
/rcode/analysis_bidlog_r.R
no_license
luifidor/datasciencecoursera
R
false
false
5,554
r
#retrieve all incumbent lines inc <- subset(bidline, offer_type == "Inc", select = c(bid_id, snapshot, member, line_type, vendor, award, ndc, indirect_cost, contract_cost, locadn_cost, allindn_cost, scenario, item_num, offerid, annual_qty)) colnames(inc) <- paste("inc", colnames(inc), sep = '_') #retrieve all offer...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/parametric.R \name{conic.spiral.nautilus} \alias{conic.spiral.nautilus} \title{Conic Spiral (Nautilus Shape)} \usage{ conic.spiral.nautilus(n = 10000, a = 0.2, b = 0.1, c = 0, w = 2) } \arguments{ \item{n}{number of points} \item{a}{final ra...
/man/conic.spiral.nautilus.Rd
no_license
schloerke/geozoo
R
false
true
779
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/parametric.R \name{conic.spiral.nautilus} \alias{conic.spiral.nautilus} \title{Conic Spiral (Nautilus Shape)} \usage{ conic.spiral.nautilus(n = 10000, a = 0.2, b = 0.1, c = 0, w = 2) } \arguments{ \item{n}{number of points} \item{a}{final ra...
library(winference) registerDoParallel(cores = 6) rm(list = ls()) setmytheme() set.seed(11) target <- get_levydriven() # number of observations nobservations <- 50000 # parameter of data-generating process true_theta <- c(0, 0, 0.5, 0.0625, 0.01) obs <- target$robservation(nobservations, true_theta, ...
/inst/reproduce/levydriven_generate_data.R
no_license
hal2001/winference
R
false
false
767
r
library(winference) registerDoParallel(cores = 6) rm(list = ls()) setmytheme() set.seed(11) target <- get_levydriven() # number of observations nobservations <- 50000 # parameter of data-generating process true_theta <- c(0, 0, 0.5, 0.0625, 0.01) obs <- target$robservation(nobservations, true_theta, ...
library(shinydashboard) library(mvtnorm) library(scatterplot3d) library(ellipse) library(plot3D) BOUND1<-5 BOUND2<-2 ui <- dashboardPage( dashboardHeader(title="InfoF422: Gaussian"), dashboardSidebar( sidebarMenu( checkboxInput("Inner", label = "Inner", value = FALSE), sliderInput("...
/inst/scripts/shiny/gaussian.R
no_license
niuneo/gbcode
R
false
false
1,315
r
library(shinydashboard) library(mvtnorm) library(scatterplot3d) library(ellipse) library(plot3D) BOUND1<-5 BOUND2<-2 ui <- dashboardPage( dashboardHeader(title="InfoF422: Gaussian"), dashboardSidebar( sidebarMenu( checkboxInput("Inner", label = "Inner", value = FALSE), sliderInput("...
#---------------------------------------------------------------- # Environment Set-up #---------------------------------------------------------------- rm(list=ls(all=TRUE)) gc() options(scipen=999) library(xgboost) setwd("/home/rstudio/Dropbox/Public/Springleaf") subversion <- 1 version <- 45 startTime <- Sys.time()...
/Benchmark Scripts/Seed/test_submission_seed_45.R
no_license
vikasnitk85/SpringleafMarketingesponse
R
false
false
4,656
r
#---------------------------------------------------------------- # Environment Set-up #---------------------------------------------------------------- rm(list=ls(all=TRUE)) gc() options(scipen=999) library(xgboost) setwd("/home/rstudio/Dropbox/Public/Springleaf") subversion <- 1 version <- 45 startTime <- Sys.time()...
\name{VAT} \alias{VAT} \title{Visual Assessment of (Cluster) Tendency} \description{Digital intensity image to inspect the number of clusters} \usage{ VAT (Xca) } \arguments{ \item{Xca}{Matrix or data.frame (usually data to be used in the clustering algorithm)} } \details{ Each cell refers to a dissimilarity between ...
/man/VAT.Rd
no_license
cran/fclust
R
false
false
1,880
rd
\name{VAT} \alias{VAT} \title{Visual Assessment of (Cluster) Tendency} \description{Digital intensity image to inspect the number of clusters} \usage{ VAT (Xca) } \arguments{ \item{Xca}{Matrix or data.frame (usually data to be used in the clustering algorithm)} } \details{ Each cell refers to a dissimilarity between ...
##' Build rapache app from an AnalysisPageRegistry ##' ##' This does most but not all of the work. You should create an R script that builds your page registry, then ##' builds an rapache.app with this function. Within that R script you call add.handlers.to.global to install ##' the 5 handlers (handle.pages/handle.pa...
/R/rapache.R
no_license
apomatix/AnalysisPageServer
R
false
false
37,066
r
##' Build rapache app from an AnalysisPageRegistry ##' ##' This does most but not all of the work. You should create an R script that builds your page registry, then ##' builds an rapache.app with this function. Within that R script you call add.handlers.to.global to install ##' the 5 handlers (handle.pages/handle.pa...
library(hierfstat) ### Name: sim.genot ### Title: Simulates genotypes in an island model at equilibrium ### Aliases: sim.genot ### ** Examples dat<-sim.genot(nbpop=4,nbal=20,nbloc=10,mig=0.001,mut=0.0001,N=c(100,100,1000,1000),f=0) betas(dat)$betaiovl
/data/genthat_extracted_code/hierfstat/examples/sim.genot.rd.R
no_license
surayaaramli/typeRrh
R
false
false
259
r
library(hierfstat) ### Name: sim.genot ### Title: Simulates genotypes in an island model at equilibrium ### Aliases: sim.genot ### ** Examples dat<-sim.genot(nbpop=4,nbal=20,nbloc=10,mig=0.001,mut=0.0001,N=c(100,100,1000,1000),f=0) betas(dat)$betaiovl
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \name{reuters} \alias{reuters} \alias{reuters_files} \alias{reuters_categories} \alias{reuters_raw} \alias{reuters_words} \alias{reuters_sents} \title{Reuters} \usage{ reuters_files(category = NULL, to_r = FALSE) reuters_categories(.....
/man/reuters.Rd
permissive
news-r/nltk4r
R
false
true
1,153
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \name{reuters} \alias{reuters} \alias{reuters_files} \alias{reuters_categories} \alias{reuters_raw} \alias{reuters_words} \alias{reuters_sents} \title{Reuters} \usage{ reuters_files(category = NULL, to_r = FALSE) reuters_categories(.....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/nostalgic.R \name{translate_ebonics} \alias{translate_ebonics} \title{Ebonics translator} \usage{ translate_ebonics(text) } \arguments{ \item{text}{Text to be translated.} } \description{ Translate from English to ebonics. } \examples{ \dontr...
/man/translate_ebonics.Rd
permissive
rsquaredacademy/funtranslater
R
false
true
373
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/nostalgic.R \name{translate_ebonics} \alias{translate_ebonics} \title{Ebonics translator} \usage{ translate_ebonics(text) } \arguments{ \item{text}{Text to be translated.} } \description{ Translate from English to ebonics. } \examples{ \dontr...
# Dependances # install.packages("missMDA") # install.packages("ggplot2") #install.packages("ade4") # # Challenge # library("CatEncoders") label_encode <- function(X, name) { labelEncoder <- LabelEncoder.fit(X[, name]) z <- transform(labelEncoder,X[, name]) X[,name]<- z return(X) } one_hot_encode <- functio...
/sta211/projet/project/SOM.R
no_license
Philippe-Storiane/cnam
R
false
false
7,007
r
# Dependances # install.packages("missMDA") # install.packages("ggplot2") #install.packages("ade4") # # Challenge # library("CatEncoders") label_encode <- function(X, name) { labelEncoder <- LabelEncoder.fit(X[, name]) z <- transform(labelEncoder,X[, name]) X[,name]<- z return(X) } one_hot_encode <- functio...
#' Pitch control support function #' #' @param reaction_time #' @param VelocityX #' @param VelocityY #' @param position_x #' @param position_y #' @param vmax #' @param target_x #' @param target_y #' @examples #' @export fSimpleTimeToIntercept = function( reaction_time, VelocityX, VelocityY, position_x, ...
/R/fSimpleTimeToIntercept.R
permissive
nhatle9529/CodaBonito
R
false
false
1,015
r
#' Pitch control support function #' #' @param reaction_time #' @param VelocityX #' @param VelocityY #' @param position_x #' @param position_y #' @param vmax #' @param target_x #' @param target_y #' @examples #' @export fSimpleTimeToIntercept = function( reaction_time, VelocityX, VelocityY, position_x, ...
\name{paramGen} \alias{paramGen} %- Also NEED an '\alias' for EACH other topic documented here. \title{ ~~function to do ... ~~ } \description{ ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ paramGen(offset, sd) } %- maybe also 'usage' for other objects documented here. \arguments{ \it...
/KnockoutNets/man/paramGen.Rd
permissive
sverchkov/vaske-fgnem
R
false
false
1,376
rd
\name{paramGen} \alias{paramGen} %- Also NEED an '\alias' for EACH other topic documented here. \title{ ~~function to do ... ~~ } \description{ ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ paramGen(offset, sd) } %- maybe also 'usage' for other objects documented here. \arguments{ \it...
# Explore catch data---- rm(list=ls()) # Clears memory # librarys---- library(tidyr) library(dplyr) library(googlesheets) library(stringr) # library(measurements) # library(lubridate) # Study name---- study<-"Fabians.Data" # Set work directory---- work.dir=("~/GitHub/Analysis_Miller_WRL") #for Tim's github work.dir...
/Scripts/Archive/3.Fabens.Model.R
no_license
UWA-Marine-Ecology-Group-students/Analysis_Miller_lobster
R
false
false
12,397
r
# Explore catch data---- rm(list=ls()) # Clears memory # librarys---- library(tidyr) library(dplyr) library(googlesheets) library(stringr) # library(measurements) # library(lubridate) # Study name---- study<-"Fabians.Data" # Set work directory---- work.dir=("~/GitHub/Analysis_Miller_WRL") #for Tim's github work.dir...
library(AMCP) ### Name: chapter_14_table_10 ### Title: The data used in Chapter 14, Table 10 ### Aliases: chapter_14_table_10 C14T10 Chapter_14_Table_10 c14t10 ### Keywords: datasets ### ** Examples # Load the data data(chapter_14_table_10) # Or, alternatively load the data as data(C14T10) # View the structure st...
/data/genthat_extracted_code/AMCP/examples/chapter_14_table_10.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
347
r
library(AMCP) ### Name: chapter_14_table_10 ### Title: The data used in Chapter 14, Table 10 ### Aliases: chapter_14_table_10 C14T10 Chapter_14_Table_10 c14t10 ### Keywords: datasets ### ** Examples # Load the data data(chapter_14_table_10) # Or, alternatively load the data as data(C14T10) # View the structure st...
#Assessing the burden of COVID-19 amongst healthcare workers in Mexico City: A data-driven call to action #Data Analysis: Neftali Eduardo Antonio-Villa (nefoantonio@hotmail.com); Omar Yaxmehen Bello-Chavolla (oyaxbell@yahoo.com.mx) #Latest version of Analysis 20-Sept-2020 #Any question regarding analysis contact Nef...
/cdmx_pers_salud.R
no_license
oyaxbell/covid_hcws_mx
R
false
false
43,306
r
#Assessing the burden of COVID-19 amongst healthcare workers in Mexico City: A data-driven call to action #Data Analysis: Neftali Eduardo Antonio-Villa (nefoantonio@hotmail.com); Omar Yaxmehen Bello-Chavolla (oyaxbell@yahoo.com.mx) #Latest version of Analysis 20-Sept-2020 #Any question regarding analysis contact Nef...
## File Name: SRM_COMPUTE_MU_Y.R ## File Version: 0.03 SRM_COMPUTE_MU_Y <- function(parm_list, y, Xs, group) { parm_list_gg <- parm_list[[group]][[1]] BETA <- parm_list_gg$BETA # include structure for latent means muy <- as.vector(Xs %*% BETA) ey <- y - muy #-- output res <- ...
/srm/R/SRM_COMPUTE_MU_Y.R
no_license
akhikolla/TestedPackages-NoIssues
R
false
false
362
r
## File Name: SRM_COMPUTE_MU_Y.R ## File Version: 0.03 SRM_COMPUTE_MU_Y <- function(parm_list, y, Xs, group) { parm_list_gg <- parm_list[[group]][[1]] BETA <- parm_list_gg$BETA # include structure for latent means muy <- as.vector(Xs %*% BETA) ey <- y - muy #-- output res <- ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/misc.R \name{.getdata} \alias{.getdata} \title{load the data based on the species name} \usage{ .getdata(species) } \arguments{ \item{species}{species name} } \description{ load the data based on the species name } \author{ Kai Guo }
/man/dot-getdata.Rd
no_license
guokai8/rcellmarker
R
false
true
312
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/misc.R \name{.getdata} \alias{.getdata} \title{load the data based on the species name} \usage{ .getdata(species) } \arguments{ \item{species}{species name} } \description{ load the data based on the species name } \author{ Kai Guo }
#' @import ggplot2 #' @importFrom grDevices col2rgb extendrange dev.list dev.off rgb as.raster #' @importFrom graphics layout #' @importFrom utils getFromNamespace modifyList data packageVersion browseURL str #' @importFrom stats setNames complete.cases quantile is.leaf #' @importFrom tidyr unnest #' @importFrom viridi...
/output/sources/authors/2774/plotly/imports.R
no_license
Irbis3/crantasticScrapper
R
false
false
3,345
r
#' @import ggplot2 #' @importFrom grDevices col2rgb extendrange dev.list dev.off rgb as.raster #' @importFrom graphics layout #' @importFrom utils getFromNamespace modifyList data packageVersion browseURL str #' @importFrom stats setNames complete.cases quantile is.leaf #' @importFrom tidyr unnest #' @importFrom viridi...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DGPA.R \name{DGPA} \alias{DGPA} \title{Dual Generalized Procrustes Analysis} \usage{ DGPA(Data, Group, ncomp = NULL, Scale = FALSE, graph = FALSE) } \arguments{ \item{Data}{a numeric matrix or data frame} \item{Group}{a vector of factors ass...
/man/DGPA.Rd
no_license
cran/multigroup
R
false
true
1,997
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DGPA.R \name{DGPA} \alias{DGPA} \title{Dual Generalized Procrustes Analysis} \usage{ DGPA(Data, Group, ncomp = NULL, Scale = FALSE, graph = FALSE) } \arguments{ \item{Data}{a numeric matrix or data frame} \item{Group}{a vector of factors ass...
#' Convert to a PDF/LaTeX document #' #' Formats for converting from R Markdown to a PDF or LaTeX document. #' #' See the \href{https://rmarkdown.rstudio.com/pdf_document_format.html}{online #' documentation} for additional details on using the \code{pdf_document} #' format. #' #' Creating PDF output from R Markdown re...
/R/pdf_document.R
no_license
doggaki/rmarkdown
R
false
false
11,747
r
#' Convert to a PDF/LaTeX document #' #' Formats for converting from R Markdown to a PDF or LaTeX document. #' #' See the \href{https://rmarkdown.rstudio.com/pdf_document_format.html}{online #' documentation} for additional details on using the \code{pdf_document} #' format. #' #' Creating PDF output from R Markdown re...
context("explicit usage of namespace function with '::' or ':::'") suppressMessages(library("magrittr")) test_that("equiv value7", { e1 <- quote(Nile %>% base::mean) # error e2 <- quote(Nile %>% base::mean()) # run e3 <- quote(Nile %>% base::mean(.)) # run expect_error(eval(demagrittr(e1, FALSE, mode = "eager...
/tests/testthat/test-with-namespace.r
permissive
TobCap/demagrittr
R
false
false
896
r
context("explicit usage of namespace function with '::' or ':::'") suppressMessages(library("magrittr")) test_that("equiv value7", { e1 <- quote(Nile %>% base::mean) # error e2 <- quote(Nile %>% base::mean()) # run e3 <- quote(Nile %>% base::mean(.)) # run expect_error(eval(demagrittr(e1, FALSE, mode = "eager...
FuMa <- function(binary="fuma",matching="subset",strand_specific_matching=TRUE,acceptor_donor_order_specific_matching=TRUE) { me <- list( binary = binary, matching=matching, strand_specific_matching=strand_specific_matching, acceptor_donor_order_specific_matching=acceptor_donor_order_specific_matching...
/R/fuma_1.R
no_license
ErasmusMC-Bioinformatics/FuMaR
R
false
false
573
r
FuMa <- function(binary="fuma",matching="subset",strand_specific_matching=TRUE,acceptor_donor_order_specific_matching=TRUE) { me <- list( binary = binary, matching=matching, strand_specific_matching=strand_specific_matching, acceptor_donor_order_specific_matching=acceptor_donor_order_specific_matching...
# Chapter 1 - Exploratory Data Analysis ## libraries ---- library(tidyverse) library(vioplot) library(corrplot) library(gmodels) library(matrixStats) library(hexbin) ## import & view data ---- state <- read.csv('data/state.csv') dfw <- read.csv('data/dfw_airline.csv') sp500_px <- read.csv('data/sp500_data.csv.gz') sp...
/code/R/ch1.R
no_license
rhcaeb/ps4ds
R
false
false
4,028
r
# Chapter 1 - Exploratory Data Analysis ## libraries ---- library(tidyverse) library(vioplot) library(corrplot) library(gmodels) library(matrixStats) library(hexbin) ## import & view data ---- state <- read.csv('data/state.csv') dfw <- read.csv('data/dfw_airline.csv') sp500_px <- read.csv('data/sp500_data.csv.gz') sp...
############### # QTL_pred_R2 # ############### #' Predicted QTL global and partial R squared #' #' Compute predicted R squared in a validation set using QTLs detected in a #' training set. These values are corrected by the heritability \code{her}. #' #' Compute QTLs predicted R squared in a validation set (\code{mp...
/R/QTL_pred_R2.R
no_license
vincentgarin/mppR
R
false
false
7,240
r
############### # QTL_pred_R2 # ############### #' Predicted QTL global and partial R squared #' #' Compute predicted R squared in a validation set using QTLs detected in a #' training set. These values are corrected by the heritability \code{her}. #' #' Compute QTLs predicted R squared in a validation set (\code{mp...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bvp.R \name{bvp} \alias{bvp} \alias{bvpexample} \alias{bvpexample10} \title{Boundary value problems} \usage{ bvpexample(x) bvpexample10(x) } \arguments{ \item{x}{proposed initial \code{x}-value} } \value{ a data frame of \code{x} and \code{y...
/man/bvp.Rd
no_license
Sandy4321/cmna
R
false
true
849
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bvp.R \name{bvp} \alias{bvp} \alias{bvpexample} \alias{bvpexample10} \title{Boundary value problems} \usage{ bvpexample(x) bvpexample10(x) } \arguments{ \item{x}{proposed initial \code{x}-value} } \value{ a data frame of \code{x} and \code{y...
# Getting full dataset dataFile <- "./data/household_power_consumption.txt" data <- read.table(dataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".") # Subsetting dataset subSetData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,] # Converting dates datetime <- strptime(paste(subSetData$Date, subSetDat...
/plot4.r
no_license
mpatman/ExpData
R
false
false
1,374
r
# Getting full dataset dataFile <- "./data/household_power_consumption.txt" data <- read.table(dataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".") # Subsetting dataset subSetData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,] # Converting dates datetime <- strptime(paste(subSetData$Date, subSetDat...
error.bars<-function(x,y,upper,lower=upper,length=0.1,...){ if(length(x)!=length(y)|length(y)!=length(lower)|length(lower)!=length(upper)) stop("vectors must be same length") arrows(x,y+upper,x,y-lower,angle=90,code=3,length=length, ...) }
/R/error.bars.R
no_license
cran/windex
R
false
false
243
r
error.bars<-function(x,y,upper,lower=upper,length=0.1,...){ if(length(x)!=length(y)|length(y)!=length(lower)|length(lower)!=length(upper)) stop("vectors must be same length") arrows(x,y+upper,x,y-lower,angle=90,code=3,length=length, ...) }
# Define the league endpoints here leagueEndpoints <- c( "premier-league", "championship", "la-liga", "eredivisie", "serie-a", "bundesliga", "ligue-1" ) %>% paste0("-results/") # 2013 -> 2018 (+1) Define years to start to end myYears <- seq( from = 2013, to = 2019, by = 1 ) firstHalf <- myYe...
/demo/sky_all_urls.R
no_license
O1sims/FootballStats
R
false
false
4,817
r
# Define the league endpoints here leagueEndpoints <- c( "premier-league", "championship", "la-liga", "eredivisie", "serie-a", "bundesliga", "ligue-1" ) %>% paste0("-results/") # 2013 -> 2018 (+1) Define years to start to end myYears <- seq( from = 2013, to = 2019, by = 1 ) firstHalf <- myYe...
#' Print method for balance. #' #' This is a crude measure of overall balance. Absolute value of the standardized #' effect sizes are calculated for each covariate. Overall balance statistics are #' the mean of those effect sizes after adjustment for each method across all #' bootstrap samples. #' #' @param x results...
/R/balance.print.R
no_license
bwday/PSAboot
R
false
false
755
r
#' Print method for balance. #' #' This is a crude measure of overall balance. Absolute value of the standardized #' effect sizes are calculated for each covariate. Overall balance statistics are #' the mean of those effect sizes after adjustment for each method across all #' bootstrap samples. #' #' @param x results...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/relationship.R \docType{data} \name{relationship} \alias{relationship} \title{relationship} \format{ A data frame with 0 rows and 6 variables: \describe{ \item{relationship_id}{\emph{character}} \item{relationship_name}{\emph{character}} \ite...
/man/relationship.Rd
permissive
thewileylab/synPUF
R
false
true
841
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/relationship.R \docType{data} \name{relationship} \alias{relationship} \title{relationship} \format{ A data frame with 0 rows and 6 variables: \describe{ \item{relationship_id}{\emph{character}} \item{relationship_name}{\emph{character}} \ite...
loglikef <- function(ab,x,conpars) { ZTHRS=10*.Machine$double.eps DISPRANK=0 T=as.numeric(conpars[1]) p=as.numeric(conpars[2]) q=as.numeric(conpars[3]) naf=conpars[4] nbf=conpars[5] del_mask=conpars[6:(6+T-1)] iaf=conpars[(6+T):(6+T-1+naf)] end=...
/perARMA/R/loglikef.R
no_license
ingted/R-Examples
R
false
false
4,045
r
loglikef <- function(ab,x,conpars) { ZTHRS=10*.Machine$double.eps DISPRANK=0 T=as.numeric(conpars[1]) p=as.numeric(conpars[2]) q=as.numeric(conpars[3]) naf=conpars[4] nbf=conpars[5] del_mask=conpars[6:(6+T-1)] iaf=conpars[(6+T):(6+T-1+naf)] end=...
# Reading of files. # jobs.csv corresponds to batsim output # expected_runtimes_no_interferences knows the real runtimes of jobs jobs = read.csv('jobs_interf.csv') expected = read.csv('expected_runtimes_no_interferences.csv') # Merge those dataframes m = merge(jobs, expected, by="jobID") # Add a new column to know the...
/workload_generation/job_calibration/check_calibration_interferences.R
no_license
oar-team/batsim-experiments
R
false
false
893
r
# Reading of files. # jobs.csv corresponds to batsim output # expected_runtimes_no_interferences knows the real runtimes of jobs jobs = read.csv('jobs_interf.csv') expected = read.csv('expected_runtimes_no_interferences.csv') # Merge those dataframes m = merge(jobs, expected, by="jobID") # Add a new column to know the...
#### 6_1 ######## A <- 2000* (1 + (0.06 * 10)) #### 6_2 ######## r <- (10000 -9850) / (9850*0.5) #### 6_3 ######## 1000* (1 + 0.08)^3 1000* (1 + 0.08/2)^6 1000* (1 + 0.08/4)^12 1000* (1 + 0.08/12)^36 1000* (1 + 0.08/365)^(3*365) #### 6_4 ######## 1000 * (1 +0.08/365)^(365*3) 1000 * (exp(0.08*3))
/R/6_1-4.R
no_license
hmst2020/HS-I-
R
false
false
318
r
#### 6_1 ######## A <- 2000* (1 + (0.06 * 10)) #### 6_2 ######## r <- (10000 -9850) / (9850*0.5) #### 6_3 ######## 1000* (1 + 0.08)^3 1000* (1 + 0.08/2)^6 1000* (1 + 0.08/4)^12 1000* (1 + 0.08/12)^36 1000* (1 + 0.08/365)^(3*365) #### 6_4 ######## 1000 * (1 +0.08/365)^(365*3) 1000 * (exp(0.08*3))
source(here("R", "01-functions.R")) library(beepr) # multiple imputation package that uses multiple imputation by chained equations library(mice) # temporary dataset to be used in the imputation workflow temp <- df z <- parlmice(data = temp, method = "midastouch", m = 100, maxit = 100, cluster.se...
/MainProject/R/03-imputing.R
no_license
zadrafi/statworkflow
R
false
false
854
r
source(here("R", "01-functions.R")) library(beepr) # multiple imputation package that uses multiple imputation by chained equations library(mice) # temporary dataset to be used in the imputation workflow temp <- df z <- parlmice(data = temp, method = "midastouch", m = 100, maxit = 100, cluster.se...
library(ggvis) library(deSolve) shinyUI(pageWithSidebar( headerPanel("FitzHugh–Nagumo Coupled Oscillators"), sidebarPanel( wellPanel( h4("Paremeters"), sliderInput("alpha", "Dampening Factor", 0, 1, 0, step = 0.01), sliderInput("g", "Conductivity factor", 0, 10, 0.5, step = 0.01), slide...
/shiny/ui.R
no_license
aaronshifman/modeling_final
R
false
false
1,097
r
library(ggvis) library(deSolve) shinyUI(pageWithSidebar( headerPanel("FitzHugh–Nagumo Coupled Oscillators"), sidebarPanel( wellPanel( h4("Paremeters"), sliderInput("alpha", "Dampening Factor", 0, 1, 0, step = 0.01), sliderInput("g", "Conductivity factor", 0, 10, 0.5, step = 0.01), slide...
# This script: # 1. calculates the MD5 sums for all files in a directory # 2. sorts the md5sum file provided by the Core # # Input: directory containing one or more .fastq.gz files # Ouputs: tab-separated files with the following format: # # md5sum file.name.fastq.gz # # Run this script from...
/10_preProcess/00_process.md5.R
no_license
CoussensLabOHSU/tcr-seq_pipeline
R
false
false
3,397
r
# This script: # 1. calculates the MD5 sums for all files in a directory # 2. sorts the md5sum file provided by the Core # # Input: directory containing one or more .fastq.gz files # Ouputs: tab-separated files with the following format: # # md5sum file.name.fastq.gz # # Run this script from...
testlist <- list(phi = c(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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), x = c(1.36656528938164e-311, -1.657912...
/dcurver/inst/testfiles/ddc/AFL_ddc/ddc_valgrind_files/1609868228-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
831
r
testlist <- list(phi = c(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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), x = c(1.36656528938164e-311, -1.657912...
# **************************************************************# # R/Rstudio Practical Week 1 # 21 Sept 2017 # Instructor: Paul Clough # **************************************************************# # **************************************************************# # First examples in R # *************************...
/Week1/Week1.R
no_license
hunry4068/INF6027
R
false
false
5,141
r
# **************************************************************# # R/Rstudio Practical Week 1 # 21 Sept 2017 # Instructor: Paul Clough # **************************************************************# # **************************************************************# # First examples in R # *************************...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/variation_information.r \name{variation_information} \alias{variation_information} \title{Computes the Variation of Information distance between two clusterings} \usage{ variation_information(labels1, labels2) } \arguments{ \item{labe...
/man/variation_information.Rd
no_license
khughitt/clusteval
R
false
false
2,042
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/variation_information.r \name{variation_information} \alias{variation_information} \title{Computes the Variation of Information distance between two clusterings} \usage{ variation_information(labels1, labels2) } \arguments{ \item{labe...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{rbern_constr_v} \alias{rbern_constr_v} \title{Random Draws of Bernoulli Variables Subject to Global Constraints} \usage{ rbern_constr_v(x, R, V, z, qweights, pweights, qvote, pvote, adapt, rate, step, verbose) } \argumen...
/man/rbern_constr_v.Rd
no_license
sumtxt/consilium
R
false
true
2,529
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{rbern_constr_v} \alias{rbern_constr_v} \title{Random Draws of Bernoulli Variables Subject to Global Constraints} \usage{ rbern_constr_v(x, R, V, z, qweights, pweights, qvote, pvote, adapt, rate, step, verbose) } \argumen...
library(hwde) ### Name: decode.genotypes ### Title: Creates contrasts that relate to a single locus ### Aliases: decode.genotypes ### Keywords: models ### ** Examples decode.genotypes(rep(c("AA","Aa","aa"),2))
/data/genthat_extracted_code/hwde/examples/decode.genotypes.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
217
r
library(hwde) ### Name: decode.genotypes ### Title: Creates contrasts that relate to a single locus ### Aliases: decode.genotypes ### Keywords: models ### ** Examples decode.genotypes(rep(c("AA","Aa","aa"),2))
# 2016-04-15 # liverWT_vs_liverKO.R # Do liver-rhythmic genes matter in DD vs LD? Also WT vs KO. rm(list=ls()) library(ggplot2) library(dplyr) library(parallel) # Load -------------------------------------------------------------------- load("Robjs/dat.long.fixed_rik_genes.Robj", v=T) load("Robjs/fits.best.max_3.co...
/scripts/wt_ko_analysis/liverWT_vs_liverKO.R
no_license
jakeyeung/Yeung_et_al_2018_TissueSpecificity
R
false
false
9,252
r
# 2016-04-15 # liverWT_vs_liverKO.R # Do liver-rhythmic genes matter in DD vs LD? Also WT vs KO. rm(list=ls()) library(ggplot2) library(dplyr) library(parallel) # Load -------------------------------------------------------------------- load("Robjs/dat.long.fixed_rik_genes.Robj", v=T) load("Robjs/fits.best.max_3.co...
#' Option #' #' Encapsulates the given value as an option value. #' \code{some} indicates the object has a value, and \code{none} does it has no value. #' #' @param x #' a value. #' @rdname option #' @export some <- function(x) { structure(list(x), class = "option") } #' @rdname option #' @export none <- structur...
/R/option.R
no_license
kos59125/shadowy
R
false
false
1,655
r
#' Option #' #' Encapsulates the given value as an option value. #' \code{some} indicates the object has a value, and \code{none} does it has no value. #' #' @param x #' a value. #' @rdname option #' @export some <- function(x) { structure(list(x), class = "option") } #' @rdname option #' @export none <- structur...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{ReadBrendaFile} \alias{ReadBrendaFile} \title{Read raw BRENDA text file.} \usage{ ReadBrendaFile(filepath) } \arguments{ \item{filepath}{A string indicating the path to the text file.} } \value{ A vector\if{html}{\out{<str...
/man/ReadBrendaFile.Rd
permissive
y1zhou/brendaDb
R
false
true
599
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{ReadBrendaFile} \alias{ReadBrendaFile} \title{Read raw BRENDA text file.} \usage{ ReadBrendaFile(filepath) } \arguments{ \item{filepath}{A string indicating the path to the text file.} } \value{ A vector\if{html}{\out{<str...