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
#' @title Associate genes with KEGG #' #' @description Find KEGG pathway IDs and names associated with an organisms' genes. #' #' @param organism_code a three letter code #' @param classification type of kegg classification to use: either module or pathway #' @param genes optional character vector of gene names to retu...
/R/access_databases.R
permissive
shackett/fluxr
R
false
false
3,365
r
#' @title Associate genes with KEGG #' #' @description Find KEGG pathway IDs and names associated with an organisms' genes. #' #' @param organism_code a three letter code #' @param classification type of kegg classification to use: either module or pathway #' @param genes optional character vector of gene names to retu...
################### #RHC Example #install packages install.packages("tableone") install.packages("Matching") #load packages library(tableone) library(Matching) #read in data load(url("http://biostat.mc.vanderbilt.edu/wiki/pub/Main/DataSets/rhc.sav")) #view data View(rhc) #treatment variables is swang1 #x variables ...
/Causal_inference/matching.R
no_license
happyrabbit/notes
R
false
false
3,317
r
################### #RHC Example #install packages install.packages("tableone") install.packages("Matching") #load packages library(tableone) library(Matching) #read in data load(url("http://biostat.mc.vanderbilt.edu/wiki/pub/Main/DataSets/rhc.sav")) #view data View(rhc) #treatment variables is swang1 #x variables ...
## 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 } get <- function() x set_inverse <- function(inverse_table) m <<- inverse...
/cachematrix.R
no_license
zheyongnan/ProgrammingAssignment2
R
false
false
740
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 } get <- function() x set_inverse <- function(inverse_table) m <<- inverse...
View(iris) hist(iris$Sepal.Length) hist( iris$Sepal.Length , main = "Histogram Grafiği" , xlab = "Değişken Değerleri" , ylab = "Frekans Değerleri" ) hist( iris$Sepal.Length , main = "Histogram Grafiği" , xlab = "Değişken Değerleri" , ylab = "Frekans Değerleri" , ...
/Bölüm 10 - Veri Görselleştirme/10.1 - (Veri Görselleştirme) - 1 - Histogram Grafiği .R
no_license
sudedanisman/RUdemy
R
false
false
722
r
View(iris) hist(iris$Sepal.Length) hist( iris$Sepal.Length , main = "Histogram Grafiği" , xlab = "Değişken Değerleri" , ylab = "Frekans Değerleri" ) hist( iris$Sepal.Length , main = "Histogram Grafiği" , xlab = "Değişken Değerleri" , ylab = "Frekans Değerleri" , ...
#read data subset power <- read.table("household_power_consumption.txt",header=TRUE,sep= ";",stringsAsFactors = FALSE,skip=grep("1/2/2007",readLines("household_power_consumption.txt")),nrows=60*48) #read header names <- as.character(read.table("household_power_consumption.txt",header=FALSE,sep=";",stringsAsFactors...
/plot4.R
no_license
andrewmauro/ExData_Plotting1
R
false
false
1,222
r
#read data subset power <- read.table("household_power_consumption.txt",header=TRUE,sep= ";",stringsAsFactors = FALSE,skip=grep("1/2/2007",readLines("household_power_consumption.txt")),nrows=60*48) #read header names <- as.character(read.table("household_power_consumption.txt",header=FALSE,sep=";",stringsAsFactors...
# Obtained from github.com/rstudio/shiny-examples/blob/master/054-nvd3-line-chart-output/linechart.R on Mar 7 2016 # To be called from ui.R prodCurveOutput <- function(inputId, width="100%", height="400px") { style <- sprintf("width: %s; height: %s;", validateCssUnit(width), validateCssUnit(heigh...
/linechart.R
no_license
kritpetra/cost-curves
R
false
false
4,884
r
# Obtained from github.com/rstudio/shiny-examples/blob/master/054-nvd3-line-chart-output/linechart.R on Mar 7 2016 # To be called from ui.R prodCurveOutput <- function(inputId, width="100%", height="400px") { style <- sprintf("width: %s; height: %s;", validateCssUnit(width), validateCssUnit(heigh...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/visClustering.R \name{visClusteringByGroup} \alias{visClusteringByGroup} \title{Network visualization clustering options - by group} \usage{ visClusteringByGroup(graph, groups, label = "Cluster on group : ", shape = "database", color...
/man/visClusteringByGroup.Rd
no_license
42-Discworld/visNetwork
R
false
true
1,604
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/visClustering.R \name{visClusteringByGroup} \alias{visClusteringByGroup} \title{Network visualization clustering options - by group} \usage{ visClusteringByGroup(graph, groups, label = "Cluster on group : ", shape = "database", color...
#' Get top artists for Current User #' #' Get top artists for current user #' @param time_range String indicating the time frame over which the affinities are computed. Valid values: long_term (calculated from several years of data and including all new data as it becomes available), medium_term (approximately last 6 m...
/R/get_my_top_artists.R
no_license
cannin/spotifyr
R
false
false
1,706
r
#' Get top artists for Current User #' #' Get top artists for current user #' @param time_range String indicating the time frame over which the affinities are computed. Valid values: long_term (calculated from several years of data and including all new data as it becomes available), medium_term (approximately last 6 m...
# First Practical Example of Text Mining setwd("/Users/riteshtripathi/Desktop/Data From Youtube/Great Lakes Wsm Data/WSM_course_material") # You should set your working directory at this stage spam=read.csv("01_Spambase.csv") # Dependant variable is "Spam"- Let us make it categorical spam$Spam=as.factor(spam$Spam) ...
/Text Analysis.R
no_license
riteshtripathi2010/Rstudio
R
false
false
1,226
r
# First Practical Example of Text Mining setwd("/Users/riteshtripathi/Desktop/Data From Youtube/Great Lakes Wsm Data/WSM_course_material") # You should set your working directory at this stage spam=read.csv("01_Spambase.csv") # Dependant variable is "Spam"- Let us make it categorical spam$Spam=as.factor(spam$Spam) ...
#' @importFrom data.table melt series_scatter <- function(lst, type, subtype, return=NULL, ...){ # g = echartr(mtcars, wt, mpg, am) if (is.null(lst$x) || is.null(lst$y)) stop('scatter charts need x and y!') lst <- mergeList(list(weight=NULL, series=NULL), lst) if (!is.numeric(lst$x[,1])) s...
/R/data.R
permissive
yichao2015/recharts
R
false
false
37,984
r
#' @importFrom data.table melt series_scatter <- function(lst, type, subtype, return=NULL, ...){ # g = echartr(mtcars, wt, mpg, am) if (is.null(lst$x) || is.null(lst$y)) stop('scatter charts need x and y!') lst <- mergeList(list(weight=NULL, series=NULL), lst) if (!is.numeric(lst$x[,1])) s...
###Script for pathway enrichment analysis using the KEGG, WP and MSig database setwd("N:/") library(readxl) library(clusterProfiler) library(enrichplot) library(devEMF) library(extrafont) library(ggplot2) library(org.Hs.eg.db) ##Load DEGs; Exemplary shown for the DEGs of cluster NSC1a d <- read.csv("...
/enrichment analysis KEGG, WP, MSigDB.R
no_license
theislab/ipsc_ipd_analysis
R
false
false
1,845
r
###Script for pathway enrichment analysis using the KEGG, WP and MSig database setwd("N:/") library(readxl) library(clusterProfiler) library(enrichplot) library(devEMF) library(extrafont) library(ggplot2) library(org.Hs.eg.db) ##Load DEGs; Exemplary shown for the DEGs of cluster NSC1a d <- read.csv("...
{"copyright":"VigNet: Copyright 2003-2017 (c), WordsEye Inc", "data":[{"fn.temperature.hot.r":{"entity":"toast.n","certainty":"typically-true-val.n"}}, {"fn.temperature.hot.r":{"entity":"plasma.n","certainty":"typically-true-val.n"}}, {"fn.temperature.hot.r":{"entity":"lava-molten.n","certainty":"typically-true-val.n"}...
/vignet.47/assertions/fn.temperature.hot.r
no_license
mulinski/SpatialNet
R
false
false
584
r
{"copyright":"VigNet: Copyright 2003-2017 (c), WordsEye Inc", "data":[{"fn.temperature.hot.r":{"entity":"toast.n","certainty":"typically-true-val.n"}}, {"fn.temperature.hot.r":{"entity":"plasma.n","certainty":"typically-true-val.n"}}, {"fn.temperature.hot.r":{"entity":"lava-molten.n","certainty":"typically-true-val.n"}...
library(dplyr) library(ggplot2) library(extrafont) library(stringr) library(gridExtra) library(grid) font_import() loadfonts(device="win") cbPalette <- c("#E69F00", "#56B4E9", "#009E73", "#F0E442", "#0072B2", "#D55E00", "#CC79A7") theme_science <- function (base_size = 12, base_family = "Arial Black") { ...
/Pum_Let-7_Analysis.R
permissive
hemangichaudhari/Cottrell_PTRE-seq_scripts
R
false
false
32,954
r
library(dplyr) library(ggplot2) library(extrafont) library(stringr) library(gridExtra) library(grid) font_import() loadfonts(device="win") cbPalette <- c("#E69F00", "#56B4E9", "#009E73", "#F0E442", "#0072B2", "#D55E00", "#CC79A7") theme_science <- function (base_size = 12, base_family = "Arial Black") { ...
############################################################ ## R code to accompany the textbook ## Statistics: The Art & Science of Learning from Data ## by A. Agresti, C. Franklin and B. Klingenberg ## 5th Edition, Pearson 2021 ## Web: ArtofStat.com ## Copyright: Bernhard Klingenberg #################################...
/Chapter_14/Chp_14_Example_10.R
no_license
artofstat/RCode
R
false
false
792
r
############################################################ ## R code to accompany the textbook ## Statistics: The Art & Science of Learning from Data ## by A. Agresti, C. Franklin and B. Klingenberg ## 5th Edition, Pearson 2021 ## Web: ArtofStat.com ## Copyright: Bernhard Klingenberg #################################...
library(rehh) setwd("/global/scratch/makman/GATK/final") lr <- data2haplohh("chr01_SNP_lr_heteroFiltered.vcf", min_perc_geno.mrk = 30, polarize_vcf = FALSE) wd <- data2haplohh("chr01_SNP_wd_heteroFiltered.vcf", min_perc_geno.mrk = 30, polarize_vcf = FALSE) lr_scan = scan_hh(lr, limhaplo = 2, limehh = 0.05, limehhs =...
/shells/variant_calling/new/11-tests/xp-ehh/chr01.R
no_license
melisakman/Helianthus
R
false
false
1,544
r
library(rehh) setwd("/global/scratch/makman/GATK/final") lr <- data2haplohh("chr01_SNP_lr_heteroFiltered.vcf", min_perc_geno.mrk = 30, polarize_vcf = FALSE) wd <- data2haplohh("chr01_SNP_wd_heteroFiltered.vcf", min_perc_geno.mrk = 30, polarize_vcf = FALSE) lr_scan = scan_hh(lr, limhaplo = 2, limehh = 0.05, limehhs =...
# Simple script de ejemplo x <- rnorm(10) mux = mean(x) cat("La media y la desviacion estandar de x es ",mean(x), sd(x),"\n") # Resumen de resultados summary(x) cat("El resumen estadistico es \n",summary(x),"\n") print(summary(x))
/Introduccion a R/02 DatosR/Trabajando con datos1/ejemplo.R
no_license
nahuic72/R
R
false
false
242
r
# Simple script de ejemplo x <- rnorm(10) mux = mean(x) cat("La media y la desviacion estandar de x es ",mean(x), sd(x),"\n") # Resumen de resultados summary(x) cat("El resumen estadistico es \n",summary(x),"\n") print(summary(x))
################################################### ## MODEL SELECTION BY Integrated Classification Likelihood criterion & ## ANALYSIS OF RESULTS ################################################### #' Selects the number of groups with ICL #' #' Selects the number of groups with Integrated Classification Likelihood ...
/R/output.R
no_license
cran/ppsbm
R
false
false
19,498
r
################################################### ## MODEL SELECTION BY Integrated Classification Likelihood criterion & ## ANALYSIS OF RESULTS ################################################### #' Selects the number of groups with ICL #' #' Selects the number of groups with Integrated Classification Likelihood ...
library(grooveFinder) library(bulletxtrctr) library(x3ptools) library(tidyverse) data.x3p <- read_x3p("../bulletQuality/manual_ident/phoenix/Gun 1-A9/B1/L4.x3p") sggh <- safely(get_grooves_hough) length_between <- function(data.x3p, qu, crosscut){ grooves <-sggh(x3p_to_df(data.x3p), qu) if(is.null(grooves$error)){...
/images/strength_threshold_distance.R
no_license
c-roiger/HoughGroovesPaper
R
false
false
767
r
library(grooveFinder) library(bulletxtrctr) library(x3ptools) library(tidyverse) data.x3p <- read_x3p("../bulletQuality/manual_ident/phoenix/Gun 1-A9/B1/L4.x3p") sggh <- safely(get_grooves_hough) length_between <- function(data.x3p, qu, crosscut){ grooves <-sggh(x3p_to_df(data.x3p), qu) if(is.null(grooves$error)){...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils_survey_dhs.R \name{create_survey_regions_dhs} \alias{create_survey_regions_dhs} \title{Create survey regions dataset from DHS} \usage{ create_survey_regions_dhs(survey_region_areas) } \arguments{ \item{survey_region_areas}{Area allocati...
/man/create_survey_regions_dhs.Rd
permissive
kklot/naomi.utils
R
false
true
613
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils_survey_dhs.R \name{create_survey_regions_dhs} \alias{create_survey_regions_dhs} \title{Create survey regions dataset from DHS} \usage{ create_survey_regions_dhs(survey_region_areas) } \arguments{ \item{survey_region_areas}{Area allocati...
geigen <- function(A, B, symmetric, only.values=FALSE) { if(!is.matrix(A)) stop("Argument A should be a matrix") if(!is.matrix(B)) stop("Argument B should be a matrix") dimA <- dim(A) if(dimA[1]!=dimA[2]) stop("A must be a square matrix") dimB <- dim(B) if(dimB[1]!=dimB[2]) stop("B must be a s...
/geigen/R/geigen.R
no_license
ingted/R-Examples
R
false
false
9,358
r
geigen <- function(A, B, symmetric, only.values=FALSE) { if(!is.matrix(A)) stop("Argument A should be a matrix") if(!is.matrix(B)) stop("Argument B should be a matrix") dimA <- dim(A) if(dimA[1]!=dimA[2]) stop("A must be a square matrix") dimB <- dim(B) if(dimB[1]!=dimB[2]) stop("B must be a s...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/HomFem38023.R \docType{data} \name{HomFem38023} \alias{HomFem38023} \title{example dataset} \usage{ data(HomFem38023) } \description{ 3D mesh of a human femur bone } \author{ Antonio Profico, Luca Bondioli, Pasquale Raia, Paul O'...
/man/HomFem38023.Rd
no_license
AProfico/morphomap
R
false
true
369
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/HomFem38023.R \docType{data} \name{HomFem38023} \alias{HomFem38023} \title{example dataset} \usage{ data(HomFem38023) } \description{ 3D mesh of a human femur bone } \author{ Antonio Profico, Luca Bondioli, Pasquale Raia, Paul O'...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calibrating.R \name{calibrate_amean_bymot_xpr} \alias{calibrate_amean_bymot_xpr} \title{Modelling of performances by assembly motif over several experiments} \usage{ calibrate_amean_bymot_xpr(fobs, assMotif, xpr) } \arguments{ \i...
/man/calibrate_amean_bymot_xpr.Rd
no_license
cran/functClust
R
false
true
2,416
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calibrating.R \name{calibrate_amean_bymot_xpr} \alias{calibrate_amean_bymot_xpr} \title{Modelling of performances by assembly motif over several experiments} \usage{ calibrate_amean_bymot_xpr(fobs, assMotif, xpr) } \arguments{ \i...
tabItemOverview <- function() { tabItem(tabName = "overview", fluidRow( boxPlus( title = "Project overview", closable = FALSE, width = NULL, enable_label = TRUE, label_text = 1, label_status = "danger", ...
/src/dashboard/testfunction.R
no_license
DSPG-Young-Scholars-Program/dspg20wasco
R
false
false
7,572
r
tabItemOverview <- function() { tabItem(tabName = "overview", fluidRow( boxPlus( title = "Project overview", closable = FALSE, width = NULL, enable_label = TRUE, label_text = 1, label_status = "danger", ...
#' Classifies motifs within given DNA sequence #' #' A function that creates a motif PWM based on given DNA consensus sequence #' and finds matches within the MotifDb database #' #' @param consensusSeq A string indicating a desired consensus sequence (i.e. #' Contains only "A", "T", "C", "G") #' #' @return Returns matc...
/R/classifyMotifs.R
permissive
minhanho/MotifFunc
R
false
false
3,448
r
#' Classifies motifs within given DNA sequence #' #' A function that creates a motif PWM based on given DNA consensus sequence #' and finds matches within the MotifDb database #' #' @param consensusSeq A string indicating a desired consensus sequence (i.e. #' Contains only "A", "T", "C", "G") #' #' @return Returns matc...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fsx_operations.R \name{fsx_describe_backups} \alias{fsx_describe_backups} \title{Returns the description of specific Amazon FSx backups, if a BackupIds value is provided for that backup} \usage{ fsx_describe_backups(BackupIds, Filters, MaxRes...
/cran/paws.storage/man/fsx_describe_backups.Rd
permissive
TWarczak/paws
R
false
true
6,967
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fsx_operations.R \name{fsx_describe_backups} \alias{fsx_describe_backups} \title{Returns the description of specific Amazon FSx backups, if a BackupIds value is provided for that backup} \usage{ fsx_describe_backups(BackupIds, Filters, MaxRes...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.55008689096005e+117, 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/1615768779-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.55008689096005e+117, 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_...
#' @include banditUcb.R #' @include banditThompson.R #' @export formula.bandit <- function(x, ...) x$formula formula.bandit_ucb <- function(x, what = "last", reduced = FALSE) { reduced <- as.logical(reduced) if(length(reduced) != 1) stop("reduced must be TRUE or FALSE") if(!reduced) { return(callNextMeth...
/R/formula.R
no_license
rferrali/banditr
R
false
false
886
r
#' @include banditUcb.R #' @include banditThompson.R #' @export formula.bandit <- function(x, ...) x$formula formula.bandit_ucb <- function(x, what = "last", reduced = FALSE) { reduced <- as.logical(reduced) if(length(reduced) != 1) stop("reduced must be TRUE or FALSE") if(!reduced) { return(callNextMeth...
#3 # Compute stats for lifeExp in Americas gap2007 %>% filter(continent == "Americas") %>% summarize(mean(lifeExp), sd(lifeExp)) # Compute stats for population gap2007 %>% summarize(median(pop), IQR(pop))
/Exploratory Analysis in R/Numerical summaries/3.R
no_license
Pranav-Polavarapu/Datacamp-Data-Scientist-with-R-Track-
R
false
false
238
r
#3 # Compute stats for lifeExp in Americas gap2007 %>% filter(continent == "Americas") %>% summarize(mean(lifeExp), sd(lifeExp)) # Compute stats for population gap2007 %>% summarize(median(pop), IQR(pop))
library(tidyverse) library(keras) library(readr) library(BMTME) #BUILD ANN using PYT TP ## ## create GRM ## TrainingGeno <- pullSegSiteGeno(F5) TrainingPheno <- pheno(F5) X <- as.matrix(TrainingGeno) Y <- as.matrix(TrainingPheno) train_index <- sample(1:nrow(Y), 0.75 * nrow(Y)) X_train <- X[train_index, ] Y_train <...
/AlphaSimR/Model_Optim/ANN_RD_Retrain.R
no_license
McGillHaricots/peas-andlove
R
false
false
1,466
r
library(tidyverse) library(keras) library(readr) library(BMTME) #BUILD ANN using PYT TP ## ## create GRM ## TrainingGeno <- pullSegSiteGeno(F5) TrainingPheno <- pheno(F5) X <- as.matrix(TrainingGeno) Y <- as.matrix(TrainingPheno) train_index <- sample(1:nrow(Y), 0.75 * nrow(Y)) X_train <- X[train_index, ] Y_train <...
#1) load data sumstats <- readRDS(file.path(der.data.dir, "sumstats.rds")) sumstats2 <- readRDS(file.path(der.data.dir, "sumstats2.rds")) varlist <- readRDS(file.path(der.data.dir, "varlist.rds")) sumvars <- readRDS(file.path(der.data.dir, "sumvars.rds")) list2env(varlist, globalenv()) list2env(...
/Code/2 - Analysis/Archive/xWard 0 - (Master) Create ward versions of sienna models.R
no_license
BrianAronson/Peer-Influence-in-Tanzania
R
false
false
12,707
r
#1) load data sumstats <- readRDS(file.path(der.data.dir, "sumstats.rds")) sumstats2 <- readRDS(file.path(der.data.dir, "sumstats2.rds")) varlist <- readRDS(file.path(der.data.dir, "varlist.rds")) sumvars <- readRDS(file.path(der.data.dir, "sumvars.rds")) list2env(varlist, globalenv()) list2env(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getCellbase-methods.R \docType{methods} \name{getCellbase,CellBaseR-method} \alias{getCellbase} \alias{getCellbase,CellBaseR-method} \title{The generic method for getCellbase. This method allows the user to query the cellbase web services wit...
/clients/R/man/getCellbase-CellBaseR-method.Rd
permissive
slimmtl/cellbase
R
false
true
1,941
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getCellbase-methods.R \docType{methods} \name{getCellbase,CellBaseR-method} \alias{getCellbase} \alias{getCellbase,CellBaseR-method} \title{The generic method for getCellbase. This method allows the user to query the cellbase web services wit...
#' @title Pint Data #' @description Pint data. #' @return A list pint.data <- function(data, info, impute = TRUE, replace.inf = TRUE, remove.duplicates = TRUE){ data2 <- as.data.frame(data) info2 <- as.data.frame(info) if (is.null(colnames(data))) { warning("No column names for data matrix given, naming by ...
/R/pint.data.R
no_license
antagomir/pint
R
false
false
4,244
r
#' @title Pint Data #' @description Pint data. #' @return A list pint.data <- function(data, info, impute = TRUE, replace.inf = TRUE, remove.duplicates = TRUE){ data2 <- as.data.frame(data) info2 <- as.data.frame(info) if (is.null(colnames(data))) { warning("No column names for data matrix given, naming by ...
install.packages("dplyr") install.packages("data.table") install.packages("ggplot2") install.packages("plotly") library("dplyr") library(data.table) library(ggplot2) library(plotly) # T-test data(mtcars) mtcars %>% dim() mtcars %>% head() mtcars %>% summary() # mpg:연비, am:1(수동),0(자동) am.mp...
/자동차 연비 t_test.R
no_license
lch5518/OpenDataAnalysis
R
false
false
557
r
install.packages("dplyr") install.packages("data.table") install.packages("ggplot2") install.packages("plotly") library("dplyr") library(data.table) library(ggplot2) library(plotly) # T-test data(mtcars) mtcars %>% dim() mtcars %>% head() mtcars %>% summary() # mpg:연비, am:1(수동),0(자동) am.mp...
## Clear workspace and console rm(list=ls()); cat("\014") # Load required packages library(FSA); library(dplyr);library(magrittr);library(tidyr) # data management library(mgcv);library(nlme); library(lme4) # modeling library(viridisLite); library(gridExtra); library(ggplot2) # data viz library(lubridate) # dealing wi...
/drivers of cf kt.R
no_license
EmilyWhitaker/SL.TB.slides
R
false
false
13,004
r
## Clear workspace and console rm(list=ls()); cat("\014") # Load required packages library(FSA); library(dplyr);library(magrittr);library(tidyr) # data management library(mgcv);library(nlme); library(lme4) # modeling library(viridisLite); library(gridExtra); library(ggplot2) # data viz library(lubridate) # dealing wi...
# # Example R code to install packages # See http://cran.r-project.org/doc/manuals/R-admin.html#Installing-packages for details # ########################################################### # Update this line with the R packages to install: my_packages = c("plyr") ####################################################...
/packages.R
no_license
Jezp27/accidentes-med
R
false
false
597
r
# # Example R code to install packages # See http://cran.r-project.org/doc/manuals/R-admin.html#Installing-packages for details # ########################################################### # Update this line with the R packages to install: my_packages = c("plyr") ####################################################...
setwd("//Users//sonim//desktop//Exploratory-Data-Analysis") library(data.table) url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" file <- "household_power_consumption" download.file(url, file, method = "curl") unzip(file, exdir = "//Users//sonim//desktop//Exploratory-Da...
/Plot2.R
no_license
Mayanksoni20/ExploratoryDataAnalysis
R
false
false
1,213
r
setwd("//Users//sonim//desktop//Exploratory-Data-Analysis") library(data.table) url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" file <- "household_power_consumption" download.file(url, file, method = "curl") unzip(file, exdir = "//Users//sonim//desktop//Exploratory-Da...
# Variable Wrangling: # Analysis and Cleaning by Variable JIC <- ALL.YEARS str(ALL.YEARS) # YEAR ## READY! ALL.YEARS <- ALL.YEARS %>% mutate( YEAR = as.character(YEAR) ) summary(ALL.YEARS$YEAR) # COMMUNITY.EXPECTATION ## THIS ANSWER IS TYPED IN MEANING THAT I SHOULD SEARCH PATTERNS IN THE TEXT ALL.YEAR...
/august/script/_variable_wrangling.R
no_license
Juleees/dvs_challenges
R
false
false
17,538
r
# Variable Wrangling: # Analysis and Cleaning by Variable JIC <- ALL.YEARS str(ALL.YEARS) # YEAR ## READY! ALL.YEARS <- ALL.YEARS %>% mutate( YEAR = as.character(YEAR) ) summary(ALL.YEARS$YEAR) # COMMUNITY.EXPECTATION ## THIS ANSWER IS TYPED IN MEANING THAT I SHOULD SEARCH PATTERNS IN THE TEXT ALL.YEAR...
title: "Viz3" output: html_document: df_print: paged --- # Introduction You will use this code as a template for your Visualization 3 assignment. The first step is to call a set of packages that you *might* use in this assignment. The final choices belong to you. Note that each code chunk is set off with specia...
/Untitled.R
no_license
MauraO/Marketing-Analytics-Project
R
false
false
3,913
r
title: "Viz3" output: html_document: df_print: paged --- # Introduction You will use this code as a template for your Visualization 3 assignment. The first step is to call a set of packages that you *might* use in this assignment. The final choices belong to you. Note that each code chunk is set off with specia...
#R script written by Dr Jing Chen to calculate the narrow sense heritability of #plant height in the S2 autoteraploid potato population #read the data into a data frame #N is the individual plant number (i=1,...,304) and R is the trait phenotype score for the ith individual #in 3 replicate experimental fields...
/Heritability/Heritability.r
no_license
JingChen1114/QuantModelTetra
R
false
false
5,023
r
#R script written by Dr Jing Chen to calculate the narrow sense heritability of #plant height in the S2 autoteraploid potato population #read the data into a data frame #N is the individual plant number (i=1,...,304) and R is the trait phenotype score for the ith individual #in 3 replicate experimental fields...
# @file PackageMaintenance # # Copyright 2015 Observational Health Data Sciences and Informatics # # This file is part of CohortMethod # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # ...
/R/PackageMaintenance.R
permissive
tdbennett/CohortMethod
R
false
false
4,531
r
# @file PackageMaintenance # # Copyright 2015 Observational Health Data Sciences and Informatics # # This file is part of CohortMethod # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # ...
# Load the data library("lubridate") times <- read.csv(file.path("examples", "marathon", "men.tsv"), sep = "\t", stringsAsFactors = FALSE) times <- transform(times, Hours = hms(Time)@hour + hms(Time)@minute / 60) # Show the data ggplot(times, aes(x = Hours)) + geom_histogram() + ...
/talk/examples/marathon/marathon_graph.R
no_license
acycliq/bayesian_nonparametrics
R
false
false
1,058
r
# Load the data library("lubridate") times <- read.csv(file.path("examples", "marathon", "men.tsv"), sep = "\t", stringsAsFactors = FALSE) times <- transform(times, Hours = hms(Time)@hour + hms(Time)@minute / 60) # Show the data ggplot(times, aes(x = Hours)) + geom_histogram() + ...
rm(list=ls()) library(Hmisc) ###############Average 3 Dataset############### Error1 = read.csv("Error632-1p.csv") Error2 = read.csv("Error632-2p.csv") Error3 = read.csv("Error632-3p.csv") #myData = read.csv("myData(manipulate)-1.csv") # Remove row names Error1 = as.matrix(Error1[,2:dim(Error1)[2]]) Error2 = as.matrix(E...
/HW2/Average.R
no_license
afa456/Machine-learning
R
false
false
849
r
rm(list=ls()) library(Hmisc) ###############Average 3 Dataset############### Error1 = read.csv("Error632-1p.csv") Error2 = read.csv("Error632-2p.csv") Error3 = read.csv("Error632-3p.csv") #myData = read.csv("myData(manipulate)-1.csv") # Remove row names Error1 = as.matrix(Error1[,2:dim(Error1)[2]]) Error2 = as.matrix(E...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mi_bootstrap.R \name{mi_bootstrap} \alias{mi_bootstrap} \title{mi_bootstrap} \usage{ mi_bootstrap( data, marginal_description, theta, log_p_y, p_y_given_x_3d, dim_visible, smooth_marginals, n_permutes = 20, logpx_method ) } ...
/man/mi_bootstrap.Rd
permissive
jpkrooney/rcorex
R
false
true
1,626
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mi_bootstrap.R \name{mi_bootstrap} \alias{mi_bootstrap} \title{mi_bootstrap} \usage{ mi_bootstrap( data, marginal_description, theta, log_p_y, p_y_given_x_3d, dim_visible, smooth_marginals, n_permutes = 20, logpx_method ) } ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/synCAA1.R \docType{data} \name{synCAA1} \alias{synCAA1} \title{Synthetic Catch-at-age data I} \format{A list consisting of: \itemize{ \item \code{midAge}: a vector of the mid ages of the age groups, \item \code{catch}: a matrix with the c...
/man/synCAA1.Rd
no_license
lbatts/TropFishR
R
false
true
888
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/synCAA1.R \docType{data} \name{synCAA1} \alias{synCAA1} \title{Synthetic Catch-at-age data I} \format{A list consisting of: \itemize{ \item \code{midAge}: a vector of the mid ages of the age groups, \item \code{catch}: a matrix with the c...
examples.rps.to.wps = function() { ps.name = "WebExample" setwd("D:/libraries/RTutorWeb/examples") rps = knit.all.rps.sol(ps.name=ps.name) save.rps(rps) } preknit.rps = function(rps=read.rps(file=file),precomp=TRUE,file=paste0(ps.name,".rps"), ps.name=NULL, quiet=FALSE, knit.print.opts=make.knit.print.opts()) ...
/R/preknit.r
no_license
anhnguyendepocen/RTutor2
R
false
false
4,889
r
examples.rps.to.wps = function() { ps.name = "WebExample" setwd("D:/libraries/RTutorWeb/examples") rps = knit.all.rps.sol(ps.name=ps.name) save.rps(rps) } preknit.rps = function(rps=read.rps(file=file),precomp=TRUE,file=paste0(ps.name,".rps"), ps.name=NULL, quiet=FALSE, knit.print.opts=make.knit.print.opts()) ...
\name{format_RStudio_CRAN_data} \alias{format_RStudio_CRAN_data} \title{Format the RStudio CRAN mirror data into the data.table format} \source{ \url{http://www.nicebread.de/finally-tracking-cran-packages-downloads/} } \usage{ format_RStudio_CRAN_data(dataset, ...) } \arguments{ \item{dataset}{the RStudio CRAN mi...
/man/format_RStudio_CRAN_data.Rd
no_license
JackStat/installr
R
false
false
1,752
rd
\name{format_RStudio_CRAN_data} \alias{format_RStudio_CRAN_data} \title{Format the RStudio CRAN mirror data into the data.table format} \source{ \url{http://www.nicebread.de/finally-tracking-cran-packages-downloads/} } \usage{ format_RStudio_CRAN_data(dataset, ...) } \arguments{ \item{dataset}{the RStudio CRAN mi...
library('Matrix') library('parallel') library('QUIC') library('WGCNA') args <- commandArgs(trailingOnly=T) if ( length(args) < 3 ) { stop('Usage: run_GLASSO.R [data.file] [output.Rda file] [num.cores]') } data.file <- args[1] output.file <- args[2] n.cores <- as.integer(args[3]) print(sprintf('Will save to %s', out...
/network_construction/glasso/run_GLASSO.R
no_license
dhglab/multiregional-networks
R
false
false
11,939
r
library('Matrix') library('parallel') library('QUIC') library('WGCNA') args <- commandArgs(trailingOnly=T) if ( length(args) < 3 ) { stop('Usage: run_GLASSO.R [data.file] [output.Rda file] [num.cores]') } data.file <- args[1] output.file <- args[2] n.cores <- as.integer(args[3]) print(sprintf('Will save to %s', out...
// build the classificaion tree model only > library(tree) > library(ISLR) > attach(Carseats) > High=ifelse(Sales<=8,"No","Yes") > Carseats=data.frame(Carseats,High) > tree.carseats=tree(High~.-Sales, Carseats) > summary(tree.carseats) Classification tree: tree(formula = High ~ . - Sales, data = Carseats) Variables a...
/src/classification.r
no_license
yanlolo/DecisionTree
R
false
false
6,202
r
// build the classificaion tree model only > library(tree) > library(ISLR) > attach(Carseats) > High=ifelse(Sales<=8,"No","Yes") > Carseats=data.frame(Carseats,High) > tree.carseats=tree(High~.-Sales, Carseats) > summary(tree.carseats) Classification tree: tree(formula = High ~ . - Sales, data = Carseats) Variables a...
context("test-parse_time.R") test_that("parse_time_hytek works correctly", { times <- c("4:23.10#", "23.10", "3.1") expected_times <- hms::hms(c(263.1, 23.1, 3.1)) expect_equal(parse_time_hytek(times), expected_times) }) test_that("parse_time_hytek returns NA for invalid strings", { times <-...
/R/hytek/tests/testthat/test-parse_time.R
no_license
wdearden/hytek
R
false
false
395
r
context("test-parse_time.R") test_that("parse_time_hytek works correctly", { times <- c("4:23.10#", "23.10", "3.1") expected_times <- hms::hms(c(263.1, 23.1, 3.1)) expect_equal(parse_time_hytek(times), expected_times) }) test_that("parse_time_hytek returns NA for invalid strings", { times <-...
#-------------------------------------- HEADER --------------------------------------------# #' @title Model Fitted Values #' @description Computes the fitted values from objects returned by modeling functions. #' @details Considering \code{y} as a response variable and x as study variable, the fitted values are the y-...
/R/ds.test1.R
no_license
StuartWheater/dsMiceClient
R
false
false
1,530
r
#-------------------------------------- HEADER --------------------------------------------# #' @title Model Fitted Values #' @description Computes the fitted values from objects returned by modeling functions. #' @details Considering \code{y} as a response variable and x as study variable, the fitted values are the y-...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/LongRg.R \name{LongRg} \alias{LongRg} \title{Calculates the longitudinal range in degrees and kilometers, assuming a latitude of 45 degrees for all points by default. Accounts for the possibility of wrapping around the globe.} \usage{ L...
/man/LongRg.Rd
no_license
cran/GeoRange
R
false
true
1,127
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/LongRg.R \name{LongRg} \alias{LongRg} \title{Calculates the longitudinal range in degrees and kilometers, assuming a latitude of 45 degrees for all points by default. Accounts for the possibility of wrapping around the globe.} \usage{ L...
pp <- read.table('../../data/pp_control_treatment.tsv', header=T, sep='\t') pp <- within(pp, { date <- as.Date(date) }) siz <- read.table('../../data/ppsize.tsv', header=T, sep='\t')
/reports/active/pp.R
no_license
glciampaglia/MoodBar
R
false
false
199
r
pp <- read.table('../../data/pp_control_treatment.tsv', header=T, sep='\t') pp <- within(pp, { date <- as.Date(date) }) siz <- read.table('../../data/ppsize.tsv', header=T, sep='\t')
rm(list=ls()) library(caret) library(ROCR) library(randomForest) library(pROC) library(car) library(DMwR) library(dplyr) library(reshape2) library(ggplot2) KO1 <- memisc::spss.system.file("...") %>% memisc::as.data.set() %>% as.data.frame() ##DATA PRE-PROCESSING #Significant variables under significan...
/KO1.R
no_license
katielong/KO1
R
false
false
5,643
r
rm(list=ls()) library(caret) library(ROCR) library(randomForest) library(pROC) library(car) library(DMwR) library(dplyr) library(reshape2) library(ggplot2) KO1 <- memisc::spss.system.file("...") %>% memisc::as.data.set() %>% as.data.frame() ##DATA PRE-PROCESSING #Significant variables under significan...
get_curr_date <- function(){ d = Sys.Date() d = as.character(d) d = strsplit(d,"-") d = as.numeric(d[[1]]) d = convert_date(d) return(d) }
/code/get_curr_date.R
no_license
alex-saez/NYT-project
R
false
false
153
r
get_curr_date <- function(){ d = Sys.Date() d = as.character(d) d = strsplit(d,"-") d = as.numeric(d[[1]]) d = convert_date(d) return(d) }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{brfss} \alias{brfss} \title{The Behavioral Risk Factor Surveillance System (BRFSS) Survey Data, 2009.} \source{ \url{http://www.cdc.gov/BRFSS/technical_infodata/surveydata/2009.htm} } \usage{ data(brfss) } \descrip...
/man/brfss.Rd
no_license
umeshach/naniar
R
false
true
8,077
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{brfss} \alias{brfss} \title{The Behavioral Risk Factor Surveillance System (BRFSS) Survey Data, 2009.} \source{ \url{http://www.cdc.gov/BRFSS/technical_infodata/surveydata/2009.htm} } \usage{ data(brfss) } \descrip...
## save the output into the file sink(file="note1.txt") getwd() galton = read.csv("F:\\data\\Galton.csv") #read the data summary(galton) attach(galton) #to use the data easily afterwards galton$Gender <- factor(Gender) # change Gender into DV galton$Family <- factor(Family) # change Family into DV ### first model ...
/R/course1/code1.R
no_license
JiamingPKU/code
R
false
false
1,811
r
## save the output into the file sink(file="note1.txt") getwd() galton = read.csv("F:\\data\\Galton.csv") #read the data summary(galton) attach(galton) #to use the data easily afterwards galton$Gender <- factor(Gender) # change Gender into DV galton$Family <- factor(Family) # change Family into DV ### first model ...
/SCRIPTS_R/09_ANALIZAR_PRED_MODELOS_IND.R
no_license
fazepher/tesis-fn
R
false
false
12,143
r
\name{gpd.prof} \alias{gpd.prof} \alias{gpd.profxi} \title{Profile Log-likelihoods for Stationary GPD Models} \description{ Produce profile log-likelihoods for shape parameters and m year/block return levels for stationary GPD models using the output of the function \code{gpd.fit}. } \usage{ gpd.prof(z, m, xlow,...
/man/gpd.prof.Rd
no_license
cran/ismev
R
false
false
1,359
rd
\name{gpd.prof} \alias{gpd.prof} \alias{gpd.profxi} \title{Profile Log-likelihoods for Stationary GPD Models} \description{ Produce profile log-likelihoods for shape parameters and m year/block return levels for stationary GPD models using the output of the function \code{gpd.fit}. } \usage{ gpd.prof(z, m, xlow,...
library(data.table) library(plyr) library(dplyr) ###################################################################################################################### #Part 1 #Merges the training and the test sets to create one data set. X_train = read.table("UCI HAR Dataset/train/X_train.txt", header=FALSE, sep="")...
/run_analysis.R
no_license
Dirguis/Getting_Cleaning_Data_Project
R
false
false
4,753
r
library(data.table) library(plyr) library(dplyr) ###################################################################################################################### #Part 1 #Merges the training and the test sets to create one data set. X_train = read.table("UCI HAR Dataset/train/X_train.txt", header=FALSE, sep="")...
\name{design.dau} \alias{design.dau} %- design.dau. \title{ Augmented block design } \description{ In these designs, some treatments (checks) are replicate r times and other treatments (new) are replicated once. } \usage{ design.dau(trt1, trt2, r, serie = 2, seed = 0, kinds = "Super-Duper", name="trt") } ...
/man/design.dau.Rd
no_license
velanati/agricolae
R
false
false
1,938
rd
\name{design.dau} \alias{design.dau} %- design.dau. \title{ Augmented block design } \description{ In these designs, some treatments (checks) are replicate r times and other treatments (new) are replicated once. } \usage{ design.dau(trt1, trt2, r, serie = 2, seed = 0, kinds = "Super-Duper", name="trt") } ...
#Calculate performance statistics library(ggplot2) #calculate precision precision <- function(tp, fp){ return(100 * tp/(tp+fp)) } #calculate recall recall <- function(tp, fn){ return(100 * tp/(tp+fn)) } #calculate specificity specificity <- function(tn, fp){ return(100 * tn/(tn+fp)) } ########...
/performance_stats.R
no_license
ypark1018/IoTAMU
R
false
false
3,320
r
#Calculate performance statistics library(ggplot2) #calculate precision precision <- function(tp, fp){ return(100 * tp/(tp+fp)) } #calculate recall recall <- function(tp, fn){ return(100 * tp/(tp+fn)) } #calculate specificity specificity <- function(tn, fp){ return(100 * tn/(tn+fp)) } ########...
# Copyright 2016 The Board of Trustees of the Leland Stanford Junior University. # Direct inquiries to Sam Borgeson (sborgeson@stanford.edu) # or professor Ram Rajagopal (ramr@stanford.edu) #library(sandwich) # Contains the NeweyWest function for calculating a modified vcov #library(lmtest) # provides coeftest, whic...
/R/util-regression.R
permissive
ahmeduncc/visdom-1
R
false
false
55,379
r
# Copyright 2016 The Board of Trustees of the Leland Stanford Junior University. # Direct inquiries to Sam Borgeson (sborgeson@stanford.edu) # or professor Ram Rajagopal (ramr@stanford.edu) #library(sandwich) # Contains the NeweyWest function for calculating a modified vcov #library(lmtest) # provides coeftest, whic...
#' @importFrom readr write_tsv #' @importFrom dplyr left_join select arrange %>% desc mutate WebGestaltROra <- function(organism="hsapiens", enrichDatabase=NULL, enrichDatabaseFile=NULL, enrichDatabaseType=NULL, enrichDatabaseDescriptionFile=NULL, interestGeneFile=NULL, interestGene=NULL, interestGeneType=NULL, collap...
/R/WebGestaltROra.R
no_license
smartgamer/WebGestaltR
R
false
false
8,464
r
#' @importFrom readr write_tsv #' @importFrom dplyr left_join select arrange %>% desc mutate WebGestaltROra <- function(organism="hsapiens", enrichDatabase=NULL, enrichDatabaseFile=NULL, enrichDatabaseType=NULL, enrichDatabaseDescriptionFile=NULL, interestGeneFile=NULL, interestGene=NULL, interestGeneType=NULL, collap...
# Exercise-1: practice with basic syntax # Create a variable `hometown` that stores the city in which you were born hometown <- "Bothell" # Assign your name to the variable `my.name` my.name <- "Jacob Beck" # Assign your height to a variable `my.height` my.height <- 6 # Create a variable `puppies` equal to the number ...
/exercise-1/exercise.R
permissive
jacobsbeck/ch5-r-intro
R
false
false
873
r
# Exercise-1: practice with basic syntax # Create a variable `hometown` that stores the city in which you were born hometown <- "Bothell" # Assign your name to the variable `my.name` my.name <- "Jacob Beck" # Assign your height to a variable `my.height` my.height <- 6 # Create a variable `puppies` equal to the number ...
#' transcript_quantifier_valid #' #' Checks that a \code{transcript_quantifier} object is valid #' @param object a \code{transcript_quantifier} object #' #' @return TRUE if valid, else errors transcript_quantifier_valid <- function(object) { errors <- c() # Check that lists contain only matricies if (!is...
/R/transcript_quantifier-class.R
no_license
ndukler/tuSelecter2
R
false
false
11,499
r
#' transcript_quantifier_valid #' #' Checks that a \code{transcript_quantifier} object is valid #' @param object a \code{transcript_quantifier} object #' #' @return TRUE if valid, else errors transcript_quantifier_valid <- function(object) { errors <- c() # Check that lists contain only matricies if (!is...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/intofact_function.R \name{intofact} \alias{intofact} \title{Turn multiple variables into numeric factors} \usage{ intofact(df, columns) } \arguments{ \item{df}{Data frame} \item{columns}{Numeric vector} } \value{ New structure of data frame ...
/coercer/man/intofact.Rd
no_license
smeiyin/coercer
R
false
true
364
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/intofact_function.R \name{intofact} \alias{intofact} \title{Turn multiple variables into numeric factors} \usage{ intofact(df, columns) } \arguments{ \item{df}{Data frame} \item{columns}{Numeric vector} } \value{ New structure of data frame ...
## Export: inla.pc.multvar.h.default ## Export: inla.pc.multvar.simplex.d ## Export: inla.pc.multvar.simplex.r ## Export: inla.pc.multvar.sphere.d ## Export: inla.pc.multvar.sphere.r ## ! \name{pc.multvar} ## ! \alias{pc.multvar} ## ! \alias{inla.pc.multvar} ## ! \alias{inla.pc.multvar.simplex} ## ! \alias{inla.pc.mul...
/R/pc-multvar.R
no_license
jdsimkin04/shinyinla
R
false
false
11,456
r
## Export: inla.pc.multvar.h.default ## Export: inla.pc.multvar.simplex.d ## Export: inla.pc.multvar.simplex.r ## Export: inla.pc.multvar.sphere.d ## Export: inla.pc.multvar.sphere.r ## ! \name{pc.multvar} ## ! \alias{pc.multvar} ## ! \alias{inla.pc.multvar} ## ! \alias{inla.pc.multvar.simplex} ## ! \alias{inla.pc.mul...
# ============================================================================= #### Info #### # ============================================================================= # simple reinforcement learning model # single true parameters, true lr = 0.6, tau = 1.5, pRew = 0.7 # # Lei Zhang, UKE, Hamburg, DE # lei.zhang...
/06.reinforcement_learning/_scripts/reinforcement_learning_single_parm_main_master.R
permissive
anhnguyendepocen/BayesCog_v0.2
R
false
false
3,477
r
# ============================================================================= #### Info #### # ============================================================================= # simple reinforcement learning model # single true parameters, true lr = 0.6, tau = 1.5, pRew = 0.7 # # Lei Zhang, UKE, Hamburg, DE # lei.zhang...
ifelse(1==2, print("there"), {function(){ print("hello") print("sdsdsere") }}())
/src/ssds.R
permissive
HypoChloremic/R_learning
R
false
false
83
r
ifelse(1==2, print("there"), {function(){ print("hello") print("sdsdsere") }}())
library(nCal) ### Name: read.luminex.xls ### Title: Read a Luminex File ### Aliases: read.luminex.xls ### Keywords: ~kwd1 ~kwd2 ### ** Examples #begin=Sys.time() # example from https://www.labkey.org/wiki/home/Documentation/page.view?name=luminexFileFormats dat = read.luminex.xls(paste(system.file(package="nCal")...
/data/genthat_extracted_code/nCal/examples/read.luminex.xls.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
515
r
library(nCal) ### Name: read.luminex.xls ### Title: Read a Luminex File ### Aliases: read.luminex.xls ### Keywords: ~kwd1 ~kwd2 ### ** Examples #begin=Sys.time() # example from https://www.labkey.org/wiki/home/Documentation/page.view?name=luminexFileFormats dat = read.luminex.xls(paste(system.file(package="nCal")...
setwd("/omics/groups/OE0246/internal/guz/cola_hc/examples/LaMannoBrain_mouse_embryo") library(cola) process_counts = function(data, column = NULL) { mat = assays(data)$counts mat = as.matrix(mat) s = colSums(mat) fa = s/mean(s) for(i in 1:ncol(mat)) mat[, i]/fa[i] mat = adjust_matrix(log2(mat +...
/LaMannoBrain_mouse_embryo_cola_rh.R
no_license
cola-rh/LaMannoBrain_mouse_embryo
R
false
false
1,016
r
setwd("/omics/groups/OE0246/internal/guz/cola_hc/examples/LaMannoBrain_mouse_embryo") library(cola) process_counts = function(data, column = NULL) { mat = assays(data)$counts mat = as.matrix(mat) s = colSums(mat) fa = s/mean(s) for(i in 1:ncol(mat)) mat[, i]/fa[i] mat = adjust_matrix(log2(mat +...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(9.02448795870939e-304, 6.74930128462603e-67, 9.88783948536559e-67, 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), .Dim = 7:8)) result <- do...
/CNull/inst/testfiles/communities_individual_based_sampling_beta_interleaved_matrices/AFL_communities_individual_based_sampling_beta_interleaved_matrices/communities_individual_based_sampling_beta_interleaved_matrices_valgrind_files/1615840190-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
419
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(9.02448795870939e-304, 6.74930128462603e-67, 9.88783948536559e-67, 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), .Dim = 7:8)) result <- do...
# Authors: Clémentine Decamps, UGA # clementine.decamps@univ-grenoble-alpes.fr # #--------------------------------------------- #'Simplified simulation of data dysregulation. #' #' This function simulates the dysregulation (up and down) of datas. #' #'@param data The vector or matrix of original data to edit. #'@param ...
/R/simu.R
no_license
mrliuw/penda
R
false
false
10,430
r
# Authors: Clémentine Decamps, UGA # clementine.decamps@univ-grenoble-alpes.fr # #--------------------------------------------- #'Simplified simulation of data dysregulation. #' #' This function simulates the dysregulation (up and down) of datas. #' #'@param data The vector or matrix of original data to edit. #'@param ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tests.R \name{test.na} \alias{test.na} \title{Test NA values} \usage{ \method{test}{na}(setup, df, ...) } \arguments{ \item{setup}{the setup class} \item{df}{the dataframe} \item{...}{other arguments passed to the function} } \description{ ...
/man/test.na.Rd
no_license
holmesjoli/validR
R
false
true
635
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tests.R \name{test.na} \alias{test.na} \title{Test NA values} \usage{ \method{test}{na}(setup, df, ...) } \arguments{ \item{setup}{the setup class} \item{df}{the dataframe} \item{...}{other arguments passed to the function} } \description{ ...
load_clean_public_private_data <- function() { public.private.data <- getwd() %>% paste0("/data/all-ashe-private-public-2018.csv") %>% read_csv() %>% subset(!(Median %in% c("x", NA))) %>% subset(!(Mean %in% c("x", NA))) public.private.data$Region %<>% gsub(pattern = " and ", replacement = " &...
/R/public_private_differential.R
no_license
cbi-ni/migration-ashe-analysis
R
false
false
2,990
r
load_clean_public_private_data <- function() { public.private.data <- getwd() %>% paste0("/data/all-ashe-private-public-2018.csv") %>% read_csv() %>% subset(!(Median %in% c("x", NA))) %>% subset(!(Mean %in% c("x", NA))) public.private.data$Region %<>% gsub(pattern = " and ", replacement = " &...
# Day 4 Tutorial num <- 500 nw <- network.initialize(num, directed = FALSE) nw %v% "race" <- rep(0:1, each = 250) formation <- ~edges + nodematch("race") + degree(0) + concurrent target.stats <- c(225, 187, 180, 90) dissolution <- ~offset(edges) duration <- 20 coef.diss <- diss.coefs(dissolution, duration) coef.diss...
/dayFourCode.R
no_license
ngopal/EpiModelWorkshop
R
false
false
7,143
r
# Day 4 Tutorial num <- 500 nw <- network.initialize(num, directed = FALSE) nw %v% "race" <- rep(0:1, each = 250) formation <- ~edges + nodematch("race") + degree(0) + concurrent target.stats <- c(225, 187, 180, 90) dissolution <- ~offset(edges) duration <- 20 coef.diss <- diss.coefs(dissolution, duration) coef.diss...
# Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate context("Test ObservationUnitSearchRequest") model.instance <- ObservationUnitSearchRequest$new() test_that("page", { # tests for the property `page` (integer) # Which result page is requested. ...
/tests/testthat/test_observation_unit_search_request.R
no_license
Breeding-Insight/brapi-r-v2
R
false
false
6,032
r
# Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate context("Test ObservationUnitSearchRequest") model.instance <- ObservationUnitSearchRequest$new() test_that("page", { # tests for the property `page` (integer) # Which result page is requested. ...
library(minfiData) library(digest) GMsetEx <- mapToGenome(MsetEx) gr.cor <- createCorMatrix(GMsetEx, res=500*1000) gr.ab <- extractAB(gr.cor) digest_compartments <- list(cor.matrix = minfi:::.digestMatrix(gr.cor$cor.matrix), pc = minfi:::.digestVector(gr.ab$pc)) save(digest_compartments, fi...
/inst/testData/testData_compartments.R
no_license
dtenenba/minfi-1
R
false
false
421
r
library(minfiData) library(digest) GMsetEx <- mapToGenome(MsetEx) gr.cor <- createCorMatrix(GMsetEx, res=500*1000) gr.ab <- extractAB(gr.cor) digest_compartments <- list(cor.matrix = minfi:::.digestMatrix(gr.cor$cor.matrix), pc = minfi:::.digestVector(gr.ab$pc)) save(digest_compartments, fi...
#' itertools.accumulate #' #' @param p #' @param func #' @return list or vector #' @export #' @examples #' iter.accumulate(c(1, 2, 3, 4, 5)) #' iter.accumulate(c('A', 'B', 'C')) #' iter.accumulate(c(1, 2, 3, 4, 5), func = function(x, y) { x * y }) iter.accumulate <- function(p, func = NULL) { if (is.null(func)) { ...
/R/iter.R
permissive
sinhrks/pythonic
R
false
false
3,833
r
#' itertools.accumulate #' #' @param p #' @param func #' @return list or vector #' @export #' @examples #' iter.accumulate(c(1, 2, 3, 4, 5)) #' iter.accumulate(c('A', 'B', 'C')) #' iter.accumulate(c(1, 2, 3, 4, 5), func = function(x, y) { x * y }) iter.accumulate <- function(p, func = NULL) { if (is.null(func)) { ...
adrs <- tribble( ~Extranjero, ~Local, ~Factor, 'BMA', 'BMA', 10, 'SUPV', 'SUPV', 5, 'CEPU', 'CEPU', 10, 'CRESY', 'CRES', 10, 'EDN', 'EDN', 20, 'GGAL', 'GGAL', 10, 'IRS', 'IRSA', 10, 'PAM', 'PAMP', 25, 'TEO', 'TECO2', 5, 'TGS', 'TGSU2', 5, 'YPF', 'YPFD', 1 )
/app/data/adrs.R
no_license
augustohassel/Demo-ShinyDockerRun
R
false
false
282
r
adrs <- tribble( ~Extranjero, ~Local, ~Factor, 'BMA', 'BMA', 10, 'SUPV', 'SUPV', 5, 'CEPU', 'CEPU', 10, 'CRESY', 'CRES', 10, 'EDN', 'EDN', 20, 'GGAL', 'GGAL', 10, 'IRS', 'IRSA', 10, 'PAM', 'PAMP', 25, 'TEO', 'TECO2', 5, 'TGS', 'TGSU2', 5, 'YPF', 'YPFD', 1 )
testlist <- list(m = NULL, repetitions = -1454859615L, in_m = structure(c(2.99939408229484e-241, 1.97274569258757e-154), .Dim = 2:1)) result <- do.call(CNull:::communities_individual_based_sampling_beta_interleaved_matrices,testlist) str(result)
/CNull/inst/testfiles/communities_individual_based_sampling_beta_interleaved_matrices/AFL_communities_individual_based_sampling_beta_interleaved_matrices/communities_individual_based_sampling_beta_interleaved_matrices_valgrind_files/1615841018-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
246
r
testlist <- list(m = NULL, repetitions = -1454859615L, in_m = structure(c(2.99939408229484e-241, 1.97274569258757e-154), .Dim = 2:1)) result <- do.call(CNull:::communities_individual_based_sampling_beta_interleaved_matrices,testlist) str(result)
library(ggstatsplot) ### Name: lm_effsize_standardizer ### Title: Standardize a dataframe with effect sizes for 'aov', 'lm', ### 'aovlist', etc. objects. ### Aliases: lm_effsize_standardizer ### Keywords: internal ### ** Examples ## Not run: ##D ggstatsplot:::lm_effsize_standardizer( ##D object = stats::lm(for...
/data/genthat_extracted_code/ggstatsplot/examples/lm_effsize_standardizer.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
481
r
library(ggstatsplot) ### Name: lm_effsize_standardizer ### Title: Standardize a dataframe with effect sizes for 'aov', 'lm', ### 'aovlist', etc. objects. ### Aliases: lm_effsize_standardizer ### Keywords: internal ### ** Examples ## Not run: ##D ggstatsplot:::lm_effsize_standardizer( ##D object = stats::lm(for...
library(shiny) library(shinythemes) shinyUI(fluidPage(theme = shinytheme("slate"), h1("Volcano Disaster and Deaths analysis dashboard", style="color:silver", Position="center"), p("Application developed by Ravinthiran Partheepan", style = "color:grey"), em("Application Developed Date : ...
/ui.R
no_license
codecsX/Volcanic-Disaster-Analysis-Dashboard-Ravinthiran-Partheepan
R
false
false
794
r
library(shiny) library(shinythemes) shinyUI(fluidPage(theme = shinytheme("slate"), h1("Volcano Disaster and Deaths analysis dashboard", style="color:silver", Position="center"), p("Application developed by Ravinthiran Partheepan", style = "color:grey"), em("Application Developed Date : ...
##################################################################### # NAME: Chris Bilder # # DATE: 3-13-09 # # UPDATE: 10-19-09 - made this a read-in file only and added MP and # # halving ...
/R/SterrettFunctions.R
no_license
cran/binGroup2
R
false
false
49,604
r
##################################################################### # NAME: Chris Bilder # # DATE: 3-13-09 # # UPDATE: 10-19-09 - made this a read-in file only and added MP and # # halving ...
#' @title Raw Accelerometry Data Sample #' #' @description Sample raw accelerometry data collected during 25 minutes of an #' outdoor run. Data were collected at frequency 100 Hz with two #' ActiGraph GT9X Link sensors located at left hip and left ankle. #' #' @format A \code{data.frame} with 300000 observations of 5 v...
/R/acc_running.R
no_license
oslerinhealth-releases/adept
R
false
false
2,374
r
#' @title Raw Accelerometry Data Sample #' #' @description Sample raw accelerometry data collected during 25 minutes of an #' outdoor run. Data were collected at frequency 100 Hz with two #' ActiGraph GT9X Link sensors located at left hip and left ankle. #' #' @format A \code{data.frame} with 300000 observations of 5 v...
testlist <- list(doy = c(-1.72131968218895e+83, -7.88781071482505e+93, 1.0823131123826e-105, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), latitude = numeric(0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211,...
/meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615830485-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
715
r
testlist <- list(doy = c(-1.72131968218895e+83, -7.88781071482505e+93, 1.0823131123826e-105, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), latitude = numeric(0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211,...
testlist <- list(testX = c(191493125665849920, 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, 0, 0, 0), trainX ...
/dann/inst/testfiles/calc_distance_C/AFL_calc_distance_C/calc_distance_C_valgrind_files/1609868096-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
1,199
r
testlist <- list(testX = c(191493125665849920, 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, 0, 0, 0), trainX ...
plot.ptw <- function(x, what = c("signal", "function"), type = c("simultaneous", "individual"), ask = TRUE, ...) { what <- match.arg(what) type <- match.arg(type) switch(type, simultaneous = { if (what == "signal") { matplot(t(rbind(x$ref...
/ptw/R/plot.ptw.R
no_license
BioinformaticsArchive/ptw
R
false
false
2,786
r
plot.ptw <- function(x, what = c("signal", "function"), type = c("simultaneous", "individual"), ask = TRUE, ...) { what <- match.arg(what) type <- match.arg(type) switch(type, simultaneous = { if (what == "signal") { matplot(t(rbind(x$ref...
title <- "Mapping Artistic Attention in Amsterdam, 1550-1750" shortitle <- "Depicting Amsterdam" year_slider <- sliderInput("year_slider", label = "Year Range", min = 1550, max = 1750, value = c(1600, 1650), step = 5, sep = "") place_types <- checkboxGroupInput("place_types", label = "Plac...
/ui.R
no_license
mdlincoln/shiny_amsterdam
R
false
false
1,783
r
title <- "Mapping Artistic Attention in Amsterdam, 1550-1750" shortitle <- "Depicting Amsterdam" year_slider <- sliderInput("year_slider", label = "Year Range", min = 1550, max = 1750, value = c(1600, 1650), step = 5, sep = "") place_types <- checkboxGroupInput("place_types", label = "Plac...
#code to generate plot2 consomation=read.table("household_power_consumption.txt",sep=";",header=TRUE,stringsAsFactors=FALSE) DateTimeFunction=function(x,y) {paste(x,y,sep=" ")} consomation$Date_Time1=mapply(DateTimeFunction,consomation$Date,consomation$Time) consomation$Date_Time=strptime(consomation$Date_Time1,format=...
/plot3.R
no_license
diruss/ExData_Plotting1
R
false
false
1,399
r
#code to generate plot2 consomation=read.table("household_power_consumption.txt",sep=";",header=TRUE,stringsAsFactors=FALSE) DateTimeFunction=function(x,y) {paste(x,y,sep=" ")} consomation$Date_Time1=mapply(DateTimeFunction,consomation$Date,consomation$Time) consomation$Date_Time=strptime(consomation$Date_Time1,format=...
# For your information, briefly, the model is that, as below, # Y_ij = intercept + dummyX_ij * (beta + beta_i) + Z_ij * (b + b_i) + error_ij, # where 'beta' and 'b' are fixed effects while 'b and 'b_i' are random slope effects. # We conduct the test that H_0: variance of b_i = 0 v.s. H_a: variance of b_i > 0 through e...
/full simulation/12.7.2017/5000simu/seed3/5_seed3_grp20_rep20.R
no_license
wma9/FMRI-project
R
false
false
8,301
r
# For your information, briefly, the model is that, as below, # Y_ij = intercept + dummyX_ij * (beta + beta_i) + Z_ij * (b + b_i) + error_ij, # where 'beta' and 'b' are fixed effects while 'b and 'b_i' are random slope effects. # We conduct the test that H_0: variance of b_i = 0 v.s. H_a: variance of b_i > 0 through e...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dataproc_functions.R \name{operations.list} \alias{operations.list} \title{Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.} \usage{ operatio...
/googledataprocv1alpha1.auto/man/operations.list.Rd
permissive
GVersteeg/autoGoogleAPI
R
false
true
1,036
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dataproc_functions.R \name{operations.list} \alias{operations.list} \title{Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.} \usage{ operatio...
\name{printabs} \alias{printabs} %- Also NEED an '\alias' for EACH other topic documented here. \title{To prind the total number of abstracts in an S4 object of class Abstracts , its start and end} \description{It gives overview of the abstracts in an S4 object of class Abstracts.} \usage{ printabs(object) } \arguments...
/man/printabs.Rd
no_license
cran/pubmed.mineR
R
false
false
597
rd
\name{printabs} \alias{printabs} %- Also NEED an '\alias' for EACH other topic documented here. \title{To prind the total number of abstracts in an S4 object of class Abstracts , its start and end} \description{It gives overview of the abstracts in an S4 object of class Abstracts.} \usage{ printabs(object) } \arguments...
#' Analyze a dataset and search for anomalies #' #' If any anomalous columns are found, they are reported as a warning and returned in a data.frame. To interpret the output, we are getting these anomalies: #' \itemize{ #' \item NA values: NA #' \item 0 values: Zero #' \item Blank strings: Blank #' \item Infinite number...
/R/anomalies.R
no_license
cran/xray
R
false
false
4,978
r
#' Analyze a dataset and search for anomalies #' #' If any anomalous columns are found, they are reported as a warning and returned in a data.frame. To interpret the output, we are getting these anomalies: #' \itemize{ #' \item NA values: NA #' \item 0 values: Zero #' \item Blank strings: Blank #' \item Infinite number...
# Loads death rates and exposures and turn them into demography data objects # Note: Contains values for both men and women library("demography") # Load Malenes mortality data grouped ---- mx_M0 <- "C:/Users/Dorthe B/OneDrive/Speciale/R_Code/Data/DataNy/Men/Mx/Mx0.txt" mx_M1 <- "C:/Users/Dorthe B/OneDrive/Spe...
/1-LoadRawDemogDataN.R
no_license
DortheB/MasterThesisMortalityRates
R
false
false
3,797
r
# Loads death rates and exposures and turn them into demography data objects # Note: Contains values for both men and women library("demography") # Load Malenes mortality data grouped ---- mx_M0 <- "C:/Users/Dorthe B/OneDrive/Speciale/R_Code/Data/DataNy/Men/Mx/Mx0.txt" mx_M1 <- "C:/Users/Dorthe B/OneDrive/Spe...
#' @title Deriving the second partial derivatives of the log likelihood function of the log-binomial model in \code{bsw()} (Hessian matrix) #' @description \code{hess()} derives the second partial derivatives of the log likelihood function of the log-binomial model. #' @usage hess(theta, y, x) #' @param theta A numeric...
/R/hess.R
no_license
adam-bec/BSW
R
false
false
952
r
#' @title Deriving the second partial derivatives of the log likelihood function of the log-binomial model in \code{bsw()} (Hessian matrix) #' @description \code{hess()} derives the second partial derivatives of the log likelihood function of the log-binomial model. #' @usage hess(theta, y, x) #' @param theta A numeric...
#' Make a map library(maps) library(plyr) library(PBSmapping) data(worldLLhigh) # Starting with code from the cod crab analysis: # if you want to re-read all the data - this takes a while: # insert new file here: #d <- read.table("../map-data/clim_7971/clim_7971_j.txt", sep = ",", header = TRUE) #d <- read.table(".....
/r/map.r
no_license
seananderson/lobsters-predators
R
false
false
4,410
r
#' Make a map library(maps) library(plyr) library(PBSmapping) data(worldLLhigh) # Starting with code from the cod crab analysis: # if you want to re-read all the data - this takes a while: # insert new file here: #d <- read.table("../map-data/clim_7971/clim_7971_j.txt", sep = ",", header = TRUE) #d <- read.table(".....
#' Parametric Bootstrapping of Jaatha Estimates #' #' This function is a helper function for using the \code{\link[boot]{boot}} #' function to bootstrap Jaatha estimates. Each bootstap replication requires #' a complete jaatha estimation on data simulated with the original parameter #' estimates. Therefore, bootstrapp...
/R/boot_jaatha.R
no_license
statgenlmu/jaatha
R
false
false
4,300
r
#' Parametric Bootstrapping of Jaatha Estimates #' #' This function is a helper function for using the \code{\link[boot]{boot}} #' function to bootstrap Jaatha estimates. Each bootstap replication requires #' a complete jaatha estimation on data simulated with the original parameter #' estimates. Therefore, bootstrapp...
\name{BCoValid} \alias{BCoValid} \title{Validate installed package versions against BCoInstall versions.} \description{ Check whether local installed packages are consistent (neither outdated nor too new) with the version of R and BrainConductor in the local system, using \code{BCoInstall} to reinstall invali...
/BrainCoSetup/man/BCoValid.Rd
no_license
haixiao990/BrainConductor
R
false
false
2,663
rd
\name{BCoValid} \alias{BCoValid} \title{Validate installed package versions against BCoInstall versions.} \description{ Check whether local installed packages are consistent (neither outdated nor too new) with the version of R and BrainConductor in the local system, using \code{BCoInstall} to reinstall invali...
# Chapter 07 Reshape2 cast() install.packages("reshape2") library(reshape2) names(airquality) <- tolower(names(airquality)) # 소문자로 변환한 변수명으로 기존 변수명 대체 head(airquality) # airquality 데이터 세트 확인 # airquality 데이터를 변형한 후 aq_melt 변수에 할당 aq_melt <- melt(airquality, id = c("month", "day"), na.rm = TRUE) head(aq_melt) # aq...
/Code/Chapter07/p172.R
no_license
newstars/HelloR
R
false
false
868
r
# Chapter 07 Reshape2 cast() install.packages("reshape2") library(reshape2) names(airquality) <- tolower(names(airquality)) # 소문자로 변환한 변수명으로 기존 변수명 대체 head(airquality) # airquality 데이터 세트 확인 # airquality 데이터를 변형한 후 aq_melt 변수에 할당 aq_melt <- melt(airquality, id = c("month", "day"), na.rm = TRUE) head(aq_melt) # aq...