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
#Set working directory setwd("~/Documents/Projects/PoritesRADseq/P.ast-transplant/analyses/SymbiontGenoytping/") #Get list of filenames to import with *.blast suffix filenames <- list.files(pattern="*.blast", full.names=TRUE) #import files as a list of dataframes sym <- lapply(filenames, read.delim, sep = "\t", skip =1...
/analyses/SymbiontGenoytping/CladeCount.R
no_license
jldimond/P.ast-transplant
R
false
false
3,296
r
#Set working directory setwd("~/Documents/Projects/PoritesRADseq/P.ast-transplant/analyses/SymbiontGenoytping/") #Get list of filenames to import with *.blast suffix filenames <- list.files(pattern="*.blast", full.names=TRUE) #import files as a list of dataframes sym <- lapply(filenames, read.delim, sep = "\t", skip =1...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{Discrete_Occupations_Stations} \alias{Discrete_Occupations_Stations} \title{Discrete Occupation Station data} \format{ A dataframe \describe{ \item{station}{The name of the station where data was collected} ...
/man/Discrete_Occupations_Stations.Rd
permissive
casaultb/azmpdata
R
false
true
2,464
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{Discrete_Occupations_Stations} \alias{Discrete_Occupations_Stations} \title{Discrete Occupation Station data} \format{ A dataframe \describe{ \item{station}{The name of the station where data was collected} ...
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #### SEAK Chinook Spring Troll 2010-2017 #### # Kyle Shedd Tue Nov 07 14:08:51 2017 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ date() #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
/SpringTroll2010-2017.R
no_license
krshedd/Chinook-Spring-Troll-Retro-2010-2017
R
false
false
44,385
r
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #### SEAK Chinook Spring Troll 2010-2017 #### # Kyle Shedd Tue Nov 07 14:08:51 2017 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ date() #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/reproduces.r \name{mate.clone} \alias{mate.clone} \title{Clone process} \usage{ mate.clone(pop1, pop1.geno.id, pop1.geno, incols = 2, ind.stay, num.prog) } \arguments{ \item{pop1}{population information of population1} \item{pop1.geno.id}{ge...
/man/mate.clone.Rd
permissive
kant/SIMER
R
false
true
1,168
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/reproduces.r \name{mate.clone} \alias{mate.clone} \title{Clone process} \usage{ mate.clone(pop1, pop1.geno.id, pop1.geno, incols = 2, ind.stay, num.prog) } \arguments{ \item{pop1}{population information of population1} \item{pop1.geno.id}{ge...
setwd("myDirectory") #Sets the working directory #Reads the file #Separatory is ";" #Header is present in the file, therefore, arg header is set to TRUE #Missing values encoded as "?", therefore "?" read as NA x <- read.table("household_power_consumption.txt", sep = ";", header = TRUE, stringsAsFactor...
/plot1.R
no_license
iWaNtToLeArNmOrE/ExData_Plotting1
R
false
false
1,233
r
setwd("myDirectory") #Sets the working directory #Reads the file #Separatory is ";" #Header is present in the file, therefore, arg header is set to TRUE #Missing values encoded as "?", therefore "?" read as NA x <- read.table("household_power_consumption.txt", sep = ";", header = TRUE, stringsAsFactor...
#generate initial graph set as linear numerical code a<-alkenum(wordlength,maxedgevec) #convert codes in a to connectivity matrices, marking ill-written codes with remaining zeros. The matrices are "igraph-ready" b<-code2cm(a,wordlength) #Use igraph package to filter out isomorphic graphs c<-isofilter(b,a) #display all...
/workflow.R
no_license
matthewmaclennan/R-WLN-DAST-BC
R
false
false
343
r
#generate initial graph set as linear numerical code a<-alkenum(wordlength,maxedgevec) #convert codes in a to connectivity matrices, marking ill-written codes with remaining zeros. The matrices are "igraph-ready" b<-code2cm(a,wordlength) #Use igraph package to filter out isomorphic graphs c<-isofilter(b,a) #display all...
# Dirty data project # Task 4 - Halloween Candy # This is an R script to clean the raw input data ------------------------------------------------- # 1 Reading in the raw data ## installing packages in the terminal: e.g. install.packages("here") ## uploading the libraries library(here) library(readr) library(r...
/task_4/data_cleaning_scripts/data_cleaning_script_task_4.R
no_license
LenkaRo/dirty_data_project
R
false
false
19,356
r
# Dirty data project # Task 4 - Halloween Candy # This is an R script to clean the raw input data ------------------------------------------------- # 1 Reading in the raw data ## installing packages in the terminal: e.g. install.packages("here") ## uploading the libraries library(here) library(readr) library(r...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/for_fst_coerce_date_to_character.R \name{for_fst_coerce_date_to_character} \alias{for_fst_coerce_date_to_character} \title{Coerce timestamps to write out to fst} \usage{ for_fst_coerce_date_to_character(.ds) } \arguments{ \item{.ds}{Opensky-N...
/man/for_fst_coerce_date_to_character.Rd
permissive
rainer-rq-koelle/COVID19airtraffic
R
false
true
508
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/for_fst_coerce_date_to_character.R \name{for_fst_coerce_date_to_character} \alias{for_fst_coerce_date_to_character} \title{Coerce timestamps to write out to fst} \usage{ for_fst_coerce_date_to_character(.ds) } \arguments{ \item{.ds}{Opensky-N...
# List files that are present before the start of testing if (!exists("okfiles")) { okfiles <- list.files(here::here("tests/"), ".Rdata", full.names = T) } `%>%` <- magrittr::`%>%` testthat::setup({ # Download data if it is not present if (!dir.exists(here::here("tests/Bullet1")) | !dir.exists(here::here("te...
/tests/testthat/setup.R
no_license
heike/bulletxtrctr
R
false
false
7,894
r
# List files that are present before the start of testing if (!exists("okfiles")) { okfiles <- list.files(here::here("tests/"), ".Rdata", full.names = T) } `%>%` <- magrittr::`%>%` testthat::setup({ # Download data if it is not present if (!dir.exists(here::here("tests/Bullet1")) | !dir.exists(here::here("te...
library(rethinking) data(Howell1) d <- Howell1 d2 <- d[ d$age >= 18, ] sample_mu <- rnorm( 1e4, 178, 20) sample_sig <- runif( 1e4, 0, 50) prior_h <- rnorm( 1e4, sample_mu, sample_sig) mu.list <- seq(from = 120, to = 160, length.out = 200) sig.list <- seq(from = 4, to = 9, length.out = 200) post <- expand.grid(mu = mu...
/Howell1.r
no_license
RedGeryon/Bayesian-Modeling-HMC-NUTS
R
false
false
1,029
r
library(rethinking) data(Howell1) d <- Howell1 d2 <- d[ d$age >= 18, ] sample_mu <- rnorm( 1e4, 178, 20) sample_sig <- runif( 1e4, 0, 50) prior_h <- rnorm( 1e4, sample_mu, sample_sig) mu.list <- seq(from = 120, to = 160, length.out = 200) sig.list <- seq(from = 4, to = 9, length.out = 200) post <- expand.grid(mu = mu...
# #print(y) z=read.xlsx("h.xlsx",sheetIndex = 1) print(z) write.xlsx(z,"g.xlsx",sheetName = "Sheet1")
/x.R
no_license
bishal145/AP_LAB6
R
false
false
111
r
# #print(y) z=read.xlsx("h.xlsx",sheetIndex = 1) print(z) write.xlsx(z,"g.xlsx",sheetName = "Sheet1")
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Utils_formula_parser.R \name{formula_to_list} \alias{formula_to_list} \title{Parse a chemical formula into a named list This function parses a chemical chem_formula into a named vector} \usage{ formula_to_list(chem_formula) } \arguments{ \it...
/man/formula_to_list.Rd
no_license
michaelwitting/metabolomicsUtils
R
false
true
726
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Utils_formula_parser.R \name{formula_to_list} \alias{formula_to_list} \title{Parse a chemical formula into a named list This function parses a chemical chem_formula into a named vector} \usage{ formula_to_list(chem_formula) } \arguments{ \it...
library(car) ### Name: linearHypothesis ### Title: Test Linear Hypothesis ### Aliases: linearHypothesis lht linearHypothesis.lm linearHypothesis.glm ### linearHypothesis.mlm linearHypothesis.polr linearHypothesis.default ### linearHypothesis.mer linearHypothesis.merMod linearHypothesis.lme ### linearHypothesis....
/data/genthat_extracted_code/car/examples/linearHypothesis.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
3,814
r
library(car) ### Name: linearHypothesis ### Title: Test Linear Hypothesis ### Aliases: linearHypothesis lht linearHypothesis.lm linearHypothesis.glm ### linearHypothesis.mlm linearHypothesis.polr linearHypothesis.default ### linearHypothesis.mer linearHypothesis.merMod linearHypothesis.lme ### linearHypothesis....
testlist <- list(rates = numeric(0), thresholds = c(3.45845952088873e-323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), x = NaN) result <- do.call(grattan::IncomeTax,testlist) str(result)
/grattan/inst/testfiles/IncomeTax/libFuzzer_IncomeTax/IncomeTax_valgrind_files/1610052643-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
192
r
testlist <- list(rates = numeric(0), thresholds = c(3.45845952088873e-323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), x = NaN) result <- do.call(grattan::IncomeTax,testlist) str(result)
\name{plotMeProtein} \alias{plotMeProtein} \title{Plot interaction plots of proteins} \usage{ plotMeProtein(datP) } \arguments{ \item{datP}{subframe of protein data} } \description{ Plot interaction plots of proteins }
/man/plotMeProtein.Rd
no_license
pariswu1988/proteomics
R
false
false
226
rd
\name{plotMeProtein} \alias{plotMeProtein} \title{Plot interaction plots of proteins} \usage{ plotMeProtein(datP) } \arguments{ \item{datP}{subframe of protein data} } \description{ Plot interaction plots of proteins }
#'x' is the column of a data.frame that holds 2 digit state codes stateFromLower <-function(x) { #read 52 state codes into local variable [includes DC (Washington D.C. and PR (Puerto Rico)] st.codes<-data.frame( state=as.factor(c("AK", "AL", "AR", "AZ", "CA", "CO", "CT", "DC", "DE", "FL", "GA", ...
/function_stateFromLower.R
no_license
besio1/bi_project
R
false
false
1,844
r
#'x' is the column of a data.frame that holds 2 digit state codes stateFromLower <-function(x) { #read 52 state codes into local variable [includes DC (Washington D.C. and PR (Puerto Rico)] st.codes<-data.frame( state=as.factor(c("AK", "AL", "AR", "AZ", "CA", "CO", "CT", "DC", "DE", "FL", "GA", ...
#' Remove left and right full and partial patterns #' @param subject \code{\link[Biostrings:DNAString-class]{DNAString}} or #' \code{\link[Biostrings:XStringSet-class]{DNAStringSet}} object #' @param Lpattern 5' pattern, #' \code{\link[Biostrings:DNAString-class]{DNAString}} object #' @param Rpattern 3' pattern, #' ...
/FastqCleaner Filters/matching.R
no_license
imanemessak/Projet-R-Fastq-quality-filtering
R
false
false
7,000
r
#' Remove left and right full and partial patterns #' @param subject \code{\link[Biostrings:DNAString-class]{DNAString}} or #' \code{\link[Biostrings:XStringSet-class]{DNAStringSet}} object #' @param Lpattern 5' pattern, #' \code{\link[Biostrings:DNAString-class]{DNAString}} object #' @param Rpattern 3' pattern, #' ...
NULL #' FAO Consumer Price Indices #' #' A dataset containing consumer price indices from FAOSTAT. #' @section Keys: #' \itemize{ #' \item Area #' \item Date #' \item Year #' \item MonthNum #' \item Month #' \item Measurement #' \item Unit #' \item Value #' } #' @section Measurement (Unit): #' \itemize{...
/R/Datasets_FAO.R
no_license
derekmichaelwright/agData
R
false
false
6,486
r
NULL #' FAO Consumer Price Indices #' #' A dataset containing consumer price indices from FAOSTAT. #' @section Keys: #' \itemize{ #' \item Area #' \item Date #' \item Year #' \item MonthNum #' \item Month #' \item Measurement #' \item Unit #' \item Value #' } #' @section Measurement (Unit): #' \itemize{...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/stats.R \name{existsSavedNlStat} \alias{existsSavedNlStat} \title{Check whether an nlStat exists in the saved nlStats} \usage{ existsSavedNlStat(nlStatSig, nlStatHash) } \arguments{ \item{nlStatHash}{character The hash of the nlStat to check}...
/man/existsSavedNlStat.Rd
no_license
mjdhasan/Rnightlights
R
false
true
746
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/stats.R \name{existsSavedNlStat} \alias{existsSavedNlStat} \title{Check whether an nlStat exists in the saved nlStats} \usage{ existsSavedNlStat(nlStatSig, nlStatHash) } \arguments{ \item{nlStatHash}{character The hash of the nlStat to check}...
source("subset_selection.R") X = load_data("Data/prostate.data") train_data = X$train_data test_data = X$test_data n = X$num_of_train_sample p = X$num_of_predictors for(k in 0:p){ cat("Testing", k, "-predictor models \n\n") stats = best_subset(k, p, train_data, 10) complexity_parame...
/best_subset.R
no_license
qubiroot/ESL
R
false
false
902
r
source("subset_selection.R") X = load_data("Data/prostate.data") train_data = X$train_data test_data = X$test_data n = X$num_of_train_sample p = X$num_of_predictors for(k in 0:p){ cat("Testing", k, "-predictor models \n\n") stats = best_subset(k, p, train_data, 10) complexity_parame...
### Jinliang Yang ### march 22th, 2016 library(farmeR) ### downloading data hmp2 <- read.delim("data/SraRunTable_hmp2.txt") library("plyr") res <- ddply(hmp2, .(Sample_Name_s), summarise, mbase = sum(MBases_l)) res <- res[order(res$mbase),] res$mbase <- res$mbase/1000*2/2.5 hist(res$mbase/1000*2/2.5) ...
/profiling/0.SRA_align/0.D.1_B73_Mo17_Hapmap2.R
no_license
RILAB/methylation
R
false
false
1,420
r
### Jinliang Yang ### march 22th, 2016 library(farmeR) ### downloading data hmp2 <- read.delim("data/SraRunTable_hmp2.txt") library("plyr") res <- ddply(hmp2, .(Sample_Name_s), summarise, mbase = sum(MBases_l)) res <- res[order(res$mbase),] res$mbase <- res$mbase/1000*2/2.5 hist(res$mbase/1000*2/2.5) ...
##Workspace: beta_master6 #summaries BM #BM summary DS_pred #predicted data #for paper resize.win(6,6) #PIC vs sinkvel cell, real data, saved SI with lm and no lm PIC$group <- reorder.factor (PIC$group, new.order = c("Nc", "Cc")) PIC_newdata$group <- reorder.factor (PIC_newdata$group, new.order = c("Nc"...
/Sep 2020/beta master7_plots.R
no_license
kaye11/Postdoc-R
R
false
false
28,966
r
##Workspace: beta_master6 #summaries BM #BM summary DS_pred #predicted data #for paper resize.win(6,6) #PIC vs sinkvel cell, real data, saved SI with lm and no lm PIC$group <- reorder.factor (PIC$group, new.order = c("Nc", "Cc")) PIC_newdata$group <- reorder.factor (PIC_newdata$group, new.order = c("Nc"...
source("incl/start,load-only.R") message("*** Tweaking future strategies ...") message("*** y <- tweak(future::sequential) ...") sequential2 <- future::tweak(future::sequential) print(args(sequential2)) stopifnot(identical(sequential2, future::sequential)) stopifnot(!inherits(sequential2, "tweaked")) message("*** y...
/tests/tweak.R
no_license
jcheng5/future
R
false
false
4,059
r
source("incl/start,load-only.R") message("*** Tweaking future strategies ...") message("*** y <- tweak(future::sequential) ...") sequential2 <- future::tweak(future::sequential) print(args(sequential2)) stopifnot(identical(sequential2, future::sequential)) stopifnot(!inherits(sequential2, "tweaked")) message("*** y...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ps_pairsPlot.R \name{ps_pairsPlot} \alias{ps_pairsPlot} \title{ps_pairsPlot} \usage{ ps_pairsPlot( doc = "ps_pairsPlot", data, GroupVar, Groups, AnalyticVars, Span = 2/3 ) } \arguments{ \item{doc}{A string documenting use added to...
/man/ps_pairsPlot.Rd
permissive
benmarwick/predictSource
R
false
true
2,539
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ps_pairsPlot.R \name{ps_pairsPlot} \alias{ps_pairsPlot} \title{ps_pairsPlot} \usage{ ps_pairsPlot( doc = "ps_pairsPlot", data, GroupVar, Groups, AnalyticVars, Span = 2/3 ) } \arguments{ \item{doc}{A string documenting use added to...
###Machine Learning Final Project### ###Spotify Song Attributes### library(ISLR) library(MASS) library(class) require(boot) rm(list = ls()) data <- read.csv(file = "data.csv", header = T) n <- nrow(data) #Logistic Regression glm.fit <- glm(target ~ acousticness+danceability+duration_ms+energy+instrumentalness...
/final.R
no_license
rmmaw/MachineLearning-Final
R
false
false
3,295
r
###Machine Learning Final Project### ###Spotify Song Attributes### library(ISLR) library(MASS) library(class) require(boot) rm(list = ls()) data <- read.csv(file = "data.csv", header = T) n <- nrow(data) #Logistic Regression glm.fit <- glm(target ~ acousticness+danceability+duration_ms+energy+instrumentalness...
# Exercise 5: dplyr grouped operations # Install the `nycflights13` package. Load (`library()`) the package. # You'll also need to load `dplyr` #install.packages("nycflights13") # should be done already library(nycflights13) library(dplyr) # What was the average departure delay in each month? # Save this as a data f...
/exercise-5/exercise.R
permissive
tleung22/ch10-dplyr
R
false
false
1,373
r
# Exercise 5: dplyr grouped operations # Install the `nycflights13` package. Load (`library()`) the package. # You'll also need to load `dplyr` #install.packages("nycflights13") # should be done already library(nycflights13) library(dplyr) # What was the average departure delay in each month? # Save this as a data f...
#' relatedProject #' #' relatedProject #' #' #' @inheritParams common_attributes #' @param title Title of the project. See [title()] #' @param personnel Contact and role information for people involved in the research project. See [personnel()] #' @param abstract Project Abstract. See [abstract()] #' @param funding ...
/R/relatedProject.R
permissive
cboettig/build.eml
R
false
false
1,556
r
#' relatedProject #' #' relatedProject #' #' #' @inheritParams common_attributes #' @param title Title of the project. See [title()] #' @param personnel Contact and role information for people involved in the research project. See [personnel()] #' @param abstract Project Abstract. See [abstract()] #' @param funding ...
##' transparent background theme ##' ##' ##' @title theme_transparent ##' @param ... additional parameter to tweak the theme ##' @return ggplot object ##' @importFrom ggplot2 theme ##' @importFrom ggplot2 element_rect ##' @export ##' @author Guangchuang Yu with contributions from Hugo Gruson theme_transparent <- functi...
/R/theme.R
no_license
GuangchuangYu/ggimage
R
false
false
1,262
r
##' transparent background theme ##' ##' ##' @title theme_transparent ##' @param ... additional parameter to tweak the theme ##' @return ggplot object ##' @importFrom ggplot2 theme ##' @importFrom ggplot2 element_rect ##' @export ##' @author Guangchuang Yu with contributions from Hugo Gruson theme_transparent <- functi...
drawObs <- function(){ file <- list.files(path="./vis")[1] vis.jpeg <- readJPEG(paste("./vis/",file,sep="")) vis.red <- raster(vis.jpeg[,,1]) vis.green <- raster(vis.jpeg[,,2]) vis.blue <- raster(vis.jpeg[,,3]) rgb <- stack(vis.red, vis.green, vis.blue) options(warn = -1) plotRGB(rgb, scale = 1, as...
/R/drawObs.R
no_license
mosscoder/crustCover
R
false
false
737
r
drawObs <- function(){ file <- list.files(path="./vis")[1] vis.jpeg <- readJPEG(paste("./vis/",file,sep="")) vis.red <- raster(vis.jpeg[,,1]) vis.green <- raster(vis.jpeg[,,2]) vis.blue <- raster(vis.jpeg[,,3]) rgb <- stack(vis.red, vis.green, vis.blue) options(warn = -1) plotRGB(rgb, scale = 1, as...
beta<-1 expit<-function(eta) exp(eta)/(1+exp(eta)) logit<-function(p) log(p/(1-p)) one.sim<-function(beta,m=1) replicate(1500,{ y<-rep(0:1,c(5000*m,5000)) x<-c(rnorm(5000*m,mean=-beta/(m+1)),rnorm(5000,mean=beta*m/(m+1))) w<-1+(1-y)*100 X<-cbind(1,x) m1<-glm(y~x,family=binomial) m1w<-glm(y~x,family=binomial,wei...
/cc-eff-scoreconv.R
no_license
tslumley/cc-efficiency
R
false
false
2,229
r
beta<-1 expit<-function(eta) exp(eta)/(1+exp(eta)) logit<-function(p) log(p/(1-p)) one.sim<-function(beta,m=1) replicate(1500,{ y<-rep(0:1,c(5000*m,5000)) x<-c(rnorm(5000*m,mean=-beta/(m+1)),rnorm(5000,mean=beta*m/(m+1))) w<-1+(1-y)*100 X<-cbind(1,x) m1<-glm(y~x,family=binomial) m1w<-glm(y~x,family=binomial,wei...
#load packages and data source("src/packages.R") # Extract conditional posteriors # diet model -------------------------------------------------------------- diet_brms <- readRDS("models/diet_brms.rds") fish_totals <- read_csv(file = "data/raw_data/fish_totals.csv") diet_brm_postpreds <- diet_brms$data %>% distin...
/code/3) extract posteriors.R
no_license
jswesner/reu_bcra
R
false
false
4,662
r
#load packages and data source("src/packages.R") # Extract conditional posteriors # diet model -------------------------------------------------------------- diet_brms <- readRDS("models/diet_brms.rds") fish_totals <- read_csv(file = "data/raw_data/fish_totals.csv") diet_brm_postpreds <- diet_brms$data %>% distin...
## Put comments here that give an overall description of what your ## functions do ## makeCacheMatrix creates a list of four functions ## these functions either get or set the value of the ## matrix or inverse. These functions are then used ## by the function below. makeCacheMatrix <- function(x = matrix()) { ...
/cachematrix.R
no_license
achaldo/ProgrammingAssignment2
R
false
false
1,232
r
## Put comments here that give an overall description of what your ## functions do ## makeCacheMatrix creates a list of four functions ## these functions either get or set the value of the ## matrix or inverse. These functions are then used ## by the function below. makeCacheMatrix <- function(x = matrix()) { ...
## ---- qchunk #analyze qualtrics religion representative sample rm(list=ls()) library(lattice) library(stargazer) library(tidyverse) library(lme4) library(lavaan) library(semPlot) #**-------------- define working directory but don't change to it so all output files end up in folder where paper is being...
/religionQualtrics.r
no_license
StephanLewandowsky/Norms-of-Science
R
false
false
30,299
r
## ---- qchunk #analyze qualtrics religion representative sample rm(list=ls()) library(lattice) library(stargazer) library(tidyverse) library(lme4) library(lavaan) library(semPlot) #**-------------- define working directory but don't change to it so all output files end up in folder where paper is being...
model_detectability_abundance <- function(crab_tbl, collection_event, habitat_pca_components, dist_shore){ counts <- crab_tbl col_event <- collection_event hab <- habitat_pca_components loc_dist <- dist_shore counts %<>% dplyr::inner_join(col_event, by = "col_id") %>% dplyr::filter(!is.na(date)...
/code/density.R
no_license
efcaguab/aldabra-coconut-crabs
R
false
false
17,127
r
model_detectability_abundance <- function(crab_tbl, collection_event, habitat_pca_components, dist_shore){ counts <- crab_tbl col_event <- collection_event hab <- habitat_pca_components loc_dist <- dist_shore counts %<>% dplyr::inner_join(col_event, by = "col_id") %>% dplyr::filter(!is.na(date)...
\name{DropEmpty} \alias{DropEmpty} \title{ \code{DropEmpty} pseudo-function } \description{ Pseudo-function to indicate that rows or columns containing no observations should be dropped. } \usage{ DropEmpty(empty = "", which = c("row", "col", "cell")) } \arguments{ \item{empty}{ String to use in empty cells. } \i...
/man/DropEmpty.Rd
no_license
dmurdoch/tables
R
false
false
1,335
rd
\name{DropEmpty} \alias{DropEmpty} \title{ \code{DropEmpty} pseudo-function } \description{ Pseudo-function to indicate that rows or columns containing no observations should be dropped. } \usage{ DropEmpty(empty = "", which = c("row", "col", "cell")) } \arguments{ \item{empty}{ String to use in empty cells. } \i...
library(shiny) library(leaflet) library(leaflet.extras) library(scales) library(shinycssloaders) library(sf) library(raster) library(htmltools) library(rgdal) library(dplyr) library(zoo) library(rowr) library(precintcon) library(gridExtra) library(fitdistrplus) library(tictoc) library(ncdf4) library(lubridate) library...
/spi_app/R/global.R
no_license
LMXB/drought_indicators
R
false
false
2,839
r
library(shiny) library(leaflet) library(leaflet.extras) library(scales) library(shinycssloaders) library(sf) library(raster) library(htmltools) library(rgdal) library(dplyr) library(zoo) library(rowr) library(precintcon) library(gridExtra) library(fitdistrplus) library(tictoc) library(ncdf4) library(lubridate) library...
#' RACEseqR dataframe function #' #' Function to generate and output the RACE seq dataframe of the specified start and end positions. #' @param str The start position of the binding region. #' @param end The end position of the binding region. #' @param replicon_ref The reference sequence used in the alignment. #' @pa...
/R/df_out.r
no_license
pantastheo/RACEseqR
R
false
false
2,384
r
#' RACEseqR dataframe function #' #' Function to generate and output the RACE seq dataframe of the specified start and end positions. #' @param str The start position of the binding region. #' @param end The end position of the binding region. #' @param replicon_ref The reference sequence used in the alignment. #' @pa...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/GAN.R \name{FixedGANSwitcher} \alias{FixedGANSwitcher} \title{FixedGANSwitcher} \usage{ FixedGANSwitcher(n_crit = 1, n_gen = 1) } \arguments{ \item{n_crit}{n_crit} \item{n_gen}{n_gen} } \description{ Switcher to do `n_crit` iterations of the...
/man/FixedGANSwitcher.Rd
permissive
ysnghr/fastai
R
false
true
385
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/GAN.R \name{FixedGANSwitcher} \alias{FixedGANSwitcher} \title{FixedGANSwitcher} \usage{ FixedGANSwitcher(n_crit = 1, n_gen = 1) } \arguments{ \item{n_crit}{n_crit} \item{n_gen}{n_gen} } \description{ Switcher to do `n_crit` iterations of the...
# -------------------------------------------------- # Carbon Cycle Exercises. # Computer Lab. # Author: Benjamin Stocker <beni@climate.unibe.ch> # Responsible: Fortunat Joos <joos@climate.unibe.ch> # Feb. 2012 # -------------------------------------------------- # 2-Box Model Atmosphere-Ocean # Set parameters lsim ...
/lab_bern/2box.R
no_license
stineb/teaching
R
false
false
2,255
r
# -------------------------------------------------- # Carbon Cycle Exercises. # Computer Lab. # Author: Benjamin Stocker <beni@climate.unibe.ch> # Responsible: Fortunat Joos <joos@climate.unibe.ch> # Feb. 2012 # -------------------------------------------------- # 2-Box Model Atmosphere-Ocean # Set parameters lsim ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{voting} \alias{voting} \alias{voting.tr} \alias{voting.te} \title{Congressional Voting Records Data Set} \format{\code{X} is a data frame with 434 congress members and 16 attributes: 16 key votes identified by the ...
/man/voting.Rd
no_license
cran/SVMMaj
R
false
true
2,294
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{voting} \alias{voting} \alias{voting.tr} \alias{voting.te} \title{Congressional Voting Records Data Set} \format{\code{X} is a data frame with 434 congress members and 16 attributes: 16 key votes identified by the ...
library(devtools) install_github("jennybc/gapminder") library(gapminder) data(gapminder) head(gapminder) #Create a vector 'x' of the life expectancies of each country for the year 1952. #Plot a histogram of these life expectancies to see the spread of the different countries. x<-gapminder$lifeExp[gapminder$year=="195...
/project1/week2.R
no_license
ragak/classes
R
false
false
1,695
r
library(devtools) install_github("jennybc/gapminder") library(gapminder) data(gapminder) head(gapminder) #Create a vector 'x' of the life expectancies of each country for the year 1952. #Plot a histogram of these life expectancies to see the spread of the different countries. x<-gapminder$lifeExp[gapminder$year=="195...
<?xml version="1.0" encoding="utf-8"?> <serviceModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="AzureMultipleDeploy.CloudService" generation="1" functional="0" release="0" Id="24f668c8-97b5-479d-9eb5-a7dab4940268" dslVersion="1.2.0.0" xmlns="http://schemas....
/AzureMultipleDeploy.CloudService/csx/Release/ServiceDefinition.rd
no_license
michaeldeongreen/AzureMultipleDeploy
R
false
false
6,123
rd
<?xml version="1.0" encoding="utf-8"?> <serviceModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="AzureMultipleDeploy.CloudService" generation="1" functional="0" release="0" Id="24f668c8-97b5-479d-9eb5-a7dab4940268" dslVersion="1.2.0.0" xmlns="http://schemas....
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common get_config new_operation new_request send_request #' @include ecs_service.R NULL #' Creates a new capacity provider #' #' @description #' Creates a new capacity provider. Capacity providers are associated with #' an Amazon ECS c...
/paws/R/ecs_operations.R
permissive
jfontestad/paws
R
false
false
211,985
r
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common get_config new_operation new_request send_request #' @include ecs_service.R NULL #' Creates a new capacity provider #' #' @description #' Creates a new capacity provider. Capacity providers are associated with #' an Amazon ECS c...
#' Plot an enmtools.model object on an interactive map #' #' Function that take an \code{enmtools.model} object and plots an #' interactive map of the presence points, background points (if applicable), and #' species suitability map. This function uses \code{\link{leaflet}} for mapping #' and will only function proper...
/R/interactive.plot.enmtools.model.R
no_license
helixcn/ENMTools
R
false
false
3,475
r
#' Plot an enmtools.model object on an interactive map #' #' Function that take an \code{enmtools.model} object and plots an #' interactive map of the presence points, background points (if applicable), and #' species suitability map. This function uses \code{\link{leaflet}} for mapping #' and will only function proper...
#RECODE SELECT MULTIPLE VARIABLES FROM T/F TO BINARY VARIABLE #raw_data_first[c(which(startsWith(names(raw_data_first), "stop_points")))] <- # ifelse(raw_data_first[c(which(startsWith(names(raw_data_first), "stop_points")))] == "TRUE", 1, 0) #raw_data_first[c(which(startsWith(names(raw_data_first), "difficulties"))...
/Recoding.R
no_license
michaelbly/RapidAssessment_Border
R
false
false
9,581
r
#RECODE SELECT MULTIPLE VARIABLES FROM T/F TO BINARY VARIABLE #raw_data_first[c(which(startsWith(names(raw_data_first), "stop_points")))] <- # ifelse(raw_data_first[c(which(startsWith(names(raw_data_first), "stop_points")))] == "TRUE", 1, 0) #raw_data_first[c(which(startsWith(names(raw_data_first), "difficulties"))...
data <- read.csv('Datasets/loan_dataset.csv') train = data[1:nrow(data)-1,] test = data[nrow(data),] k = 3 distances = c() train$dist = sqrt((train$cred_card-test[1,2])^2 + (train$balance-test[1,3])^2) train <- train[order(train$dist),] count = 0 for(i in 1:k){ if(train[i, 4]=='Y') count = count + ...
/Question_3.R
no_license
AshwinHarish/Data-Analytics
R
false
false
405
r
data <- read.csv('Datasets/loan_dataset.csv') train = data[1:nrow(data)-1,] test = data[nrow(data),] k = 3 distances = c() train$dist = sqrt((train$cred_card-test[1,2])^2 + (train$balance-test[1,3])^2) train <- train[order(train$dist),] count = 0 for(i in 1:k){ if(train[i, 4]=='Y') count = count + ...
% Generated by roxygen2 (4.0.0): do not edit by hand \name{install_gitorious} \alias{install_gitorious} \title{Attempts to install a package directly from gitorious.} \usage{ install_gitorious(repo, project = repo, ref = "master", subdir = NULL, branch = NULL, ...) } \arguments{ \item{project}{Gitorious project nam...
/man/install_gitorious.Rd
no_license
BrunoVilela/devtools
R
false
false
988
rd
% Generated by roxygen2 (4.0.0): do not edit by hand \name{install_gitorious} \alias{install_gitorious} \title{Attempts to install a package directly from gitorious.} \usage{ install_gitorious(repo, project = repo, ref = "master", subdir = NULL, branch = NULL, ...) } \arguments{ \item{project}{Gitorious project nam...
# Multiple plot function # # ggplot objects can be passed in ..., or to plotlist (as a list of ggplot objects) # - cols: Number of columns in layout # - layout: A matrix specifying the layout. If present, 'cols' is ignored. # # If the layout is something like matrix(c(1,2,3,3), nrow=2, byrow=TRUE), # then plot...
/Functions_Fonctions/PlotScripts/InfoPlotsFUN/Mulitplot.r
no_license
martinjeanphd/CABIN_vv_RCBA
R
false
false
1,577
r
# Multiple plot function # # ggplot objects can be passed in ..., or to plotlist (as a list of ggplot objects) # - cols: Number of columns in layout # - layout: A matrix specifying the layout. If present, 'cols' is ignored. # # If the layout is something like matrix(c(1,2,3,3), nrow=2, byrow=TRUE), # then plot...
# make heat maps for paper library(ggplot2) library(reshape2) library(RColorBrewer) library(scales) # read in files OTUtables <- list.files(path='.', pattern='.csv', full.names=T) Data1_OTU_wgs_16s <- read.csv(OTUtables[1], header=T) Data2_OTU_wgs_microb <- read.csv(OTUtables[2], header=T) Data3_OTU_metabar <- read.c...
/Scripts_to_compare_dats/heatmap_plts.r
permissive
marisalim/Everest-eDNA-biodiversity-survey
R
false
false
6,315
r
# make heat maps for paper library(ggplot2) library(reshape2) library(RColorBrewer) library(scales) # read in files OTUtables <- list.files(path='.', pattern='.csv', full.names=T) Data1_OTU_wgs_16s <- read.csv(OTUtables[1], header=T) Data2_OTU_wgs_microb <- read.csv(OTUtables[2], header=T) Data3_OTU_metabar <- read.c...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/FootprintFinder.R \docType{methods} \name{getFootprintsForGene,FootprintFinder-method} \alias{getFootprintsForGene,FootprintFinder-method} \alias{getFootprintsForGene} \title{Get Footprints for Gene} \usage{ \S4method{getFootprintsForGene}{Fo...
/man/getFootprintsForGene.Rd
no_license
noahmclean1/TReNA
R
false
true
2,196
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/FootprintFinder.R \docType{methods} \name{getFootprintsForGene,FootprintFinder-method} \alias{getFootprintsForGene,FootprintFinder-method} \alias{getFootprintsForGene} \title{Get Footprints for Gene} \usage{ \S4method{getFootprintsForGene}{Fo...
# Generated by roxytest: Do not edit by hand! context("File R/setup_vars.R: @testexamples") test_that("Function setup_vars() @ L24", { x <- system.file("extdata/COLO829-replay.json.gz", package = "dracarys") (v <- setup_vars(x)) expect_equal(class(v), "list") expect_equal(length(v), 1) expect_equal(le...
/tests/testthat/test-roxytest-testexamples-setup_vars.R
permissive
umccr/old_dracarys
R
false
false
566
r
# Generated by roxytest: Do not edit by hand! context("File R/setup_vars.R: @testexamples") test_that("Function setup_vars() @ L24", { x <- system.file("extdata/COLO829-replay.json.gz", package = "dracarys") (v <- setup_vars(x)) expect_equal(class(v), "list") expect_equal(length(v), 1) expect_equal(le...
MAPsig1<-function(unique.pat,value.dis, iter=1000) { cat("Permutation: \n") n <- apply(value.dis, 2, sum) n.soft <- patternMatch(value.dis, unique.pat) n.strong <- patternMatch.strong(value.dis, unique.pat) n.pat <- length(unique.pat) res.random <- matrix(0, length(unique.pat), iter) re...
/R/MAPsig1.R
no_license
cran/MAMA
R
false
false
1,233
r
MAPsig1<-function(unique.pat,value.dis, iter=1000) { cat("Permutation: \n") n <- apply(value.dis, 2, sum) n.soft <- patternMatch(value.dis, unique.pat) n.strong <- patternMatch.strong(value.dis, unique.pat) n.pat <- length(unique.pat) res.random <- matrix(0, length(unique.pat), iter) re...
cor.BF <- function(x, y, iterations = 10000) { # Take two vectors as input: Compute the correlation coefficent and the corresponding BF # Return a named vector of length two: the Bayes factor and estimated coefficient rho library(BayesFactor) cor <- correlationBF(x, y) BF <- extractBF(cor)$bf coeff <-...
/R_functions/cor_heatmap_BF.R
no_license
VanRijnLab/speak-smart-1
R
false
false
3,826
r
cor.BF <- function(x, y, iterations = 10000) { # Take two vectors as input: Compute the correlation coefficent and the corresponding BF # Return a named vector of length two: the Bayes factor and estimated coefficient rho library(BayesFactor) cor <- correlationBF(x, y) BF <- extractBF(cor)$bf coeff <-...
#' @import data.table aggregateByDocAndRegID <- function(frequencies){ #Step to avoid CRAN check error with data.table selection docID <- regID <- word <- NULL agg <- frequencies[, lapply(.SD,sum), by = list(docID, regID, word)] return(agg[,c("docID", "regID", "word", "NormalizedScore", "NormalizedFrequen...
/R/utils.R
no_license
josepedro/GWP
R
false
false
1,884
r
#' @import data.table aggregateByDocAndRegID <- function(frequencies){ #Step to avoid CRAN check error with data.table selection docID <- regID <- word <- NULL agg <- frequencies[, lapply(.SD,sum), by = list(docID, regID, word)] return(agg[,c("docID", "regID", "word", "NormalizedScore", "NormalizedFrequen...
#' Greates common divisor #' #' Gets greatest common divisor of two numbers. #' @param a,b numbers. #' @return A number that is the greatest common divisor of \code{a} & \code{b}. #' @keywords gcd #' @export #' @examples #' greatest_common_div(27,30) greatest_common_div <- function(a,b) { while (b != 0) { # euclid...
/R/greatest_common_div.R
no_license
erwinrmendez/EulerFunctions
R
false
false
413
r
#' Greates common divisor #' #' Gets greatest common divisor of two numbers. #' @param a,b numbers. #' @return A number that is the greatest common divisor of \code{a} & \code{b}. #' @keywords gcd #' @export #' @examples #' greatest_common_div(27,30) greatest_common_div <- function(a,b) { while (b != 0) { # euclid...
# SPI and SPEI plots using nClimDiv data # MAC 12/7/19 # # To do: latest date update in selector, plotly heatmap colors don't match, plotly legend names # load shiny libraries library(shiny) library(shinythemes) # load code libraries library(reshape2) library(RCurl) #library(maps) library(raster) #library(ggplot2) l...
/app.R
no_license
mcrimmins/SDIVizTool
R
false
false
43,085
r
# SPI and SPEI plots using nClimDiv data # MAC 12/7/19 # # To do: latest date update in selector, plotly heatmap colors don't match, plotly legend names # load shiny libraries library(shiny) library(shinythemes) # load code libraries library(reshape2) library(RCurl) #library(maps) library(raster) #library(ggplot2) l...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/package.R \docType{package} \name{SRTtools} \alias{SRTtools} \alias{SRTtools-package} \title{Adjust srt file to get better experience in watching movie.} \description{ Srt file is a common subtitle format for videos, it contains subti...
/man/SRTtools.Rd
no_license
cran/SRTtools
R
false
true
605
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/package.R \docType{package} \name{SRTtools} \alias{SRTtools} \alias{SRTtools-package} \title{Adjust srt file to get better experience in watching movie.} \description{ Srt file is a common subtitle format for videos, it contains subti...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tar_script.R \name{tar_script} \alias{tar_script} \title{Write a \verb{_targets.R} script to the current working directory.} \usage{ tar_script(code = NULL, library_targets = TRUE, ask = NULL) } \arguments{ \item{code}{R code to write to \ver...
/man/tar_script.Rd
permissive
Robinlovelace/targets
R
false
true
3,205
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tar_script.R \name{tar_script} \alias{tar_script} \title{Write a \verb{_targets.R} script to the current working directory.} \usage{ tar_script(code = NULL, library_targets = TRUE, ask = NULL) } \arguments{ \item{code}{R code to write to \ver...
#' @@inheritParams: Inherit parameters from another function. #' #' This tag will bring in all documentation for parameters that are #' undocumented in the current function, but documented in the source #' function. The source can be a function in the current package, #' \code{function}, or another package \code{packag...
/R/tag-inherit-params.r
no_license
kashenfelter/roxygen3
R
false
false
1,520
r
#' @@inheritParams: Inherit parameters from another function. #' #' This tag will bring in all documentation for parameters that are #' undocumented in the current function, but documented in the source #' function. The source can be a function in the current package, #' \code{function}, or another package \code{packag...
############################################################################# ############################################################################# ## Mohamed Omar ## 10/4/2019 ## Goal: Getting and organizing the data for the next step ###########################################################################...
/Code/1_DataCollection_NCvsC.R
no_license
MohamedOmar2020/Malaria
R
false
false
18,568
r
############################################################################# ############################################################################# ## Mohamed Omar ## 10/4/2019 ## Goal: Getting and organizing the data for the next step ###########################################################################...
e_mat <- matrix(c(2,0),ncol=1) p_vec <- c(1, 1) z0 <- c(1000) # initial population vector times <- seq(1,20) func_deps <- c('c[1]','c[2]') priors <- rep(list(list(name="uniform",params=c(0, 1), bounds=c(0,2))),2) mod <- bp_model_simple_birth_death(func_deps, 2, 0) simulation_params <- c(0.1, 0.05) simulation_dat <...
/examples/one_type.R
no_license
jproney/bpinference
R
false
false
832
r
e_mat <- matrix(c(2,0),ncol=1) p_vec <- c(1, 1) z0 <- c(1000) # initial population vector times <- seq(1,20) func_deps <- c('c[1]','c[2]') priors <- rep(list(list(name="uniform",params=c(0, 1), bounds=c(0,2))),2) mod <- bp_model_simple_birth_death(func_deps, 2, 0) simulation_params <- c(0.1, 0.05) simulation_dat <...
t<-list( t0=c( 5 , 1 , 45 ), lowert=c( 5 , 0 , 10 ), swfirst=c( 16 ), swlast=c( 17 ), phases=matrix(c( 1 , 3 , 4 , 3 , 4 , 6 ),2), maxl=200,phasemax=c(100,0,100,100),cap=defaultcap,daycap=defaultdaycap,comment=1,sowreq=-0.0)
/scenarios/Amedwuha/payout.data/contract.R
no_license
zachary62/data
R
false
false
225
r
t<-list( t0=c( 5 , 1 , 45 ), lowert=c( 5 , 0 , 10 ), swfirst=c( 16 ), swlast=c( 17 ), phases=matrix(c( 1 , 3 , 4 , 3 , 4 , 6 ),2), maxl=200,phasemax=c(100,0,100,100),cap=defaultcap,daycap=defaultdaycap,comment=1,sowreq=-0.0)
# rm(list=ls(all=TRUE)) loadData <- function(location='/home/wijnand/R_workspace/8_Practical_Machine_Learning/course_project/resources/train.csv') { library(caret); set.seed(1234) data <- read.csv(location, na.strings = c("NA", "#DIV/0!", "")) # remove column with unique number ...
/8_Practical_Machine_Learning/course_project/activity_prediction.R
no_license
WijnandNuij/DataScience
R
false
false
1,920
r
# rm(list=ls(all=TRUE)) loadData <- function(location='/home/wijnand/R_workspace/8_Practical_Machine_Learning/course_project/resources/train.csv') { library(caret); set.seed(1234) data <- read.csv(location, na.strings = c("NA", "#DIV/0!", "")) # remove column with unique number ...
" nox: nitrogen oxides concentration (parts per 10 million). dis: weighted mean of distances to five Boston employment centres. " cor(Boston$nox, Boston$dis) #-0.7692301 "Why is the negative correlation between the concentration of Nitrogen oxides and distance to employment centres so so strong?" "First of all we ne...
/script/nox dis.R
no_license
JonathanRyanW/MASS_Boston
R
false
false
2,701
r
" nox: nitrogen oxides concentration (parts per 10 million). dis: weighted mean of distances to five Boston employment centres. " cor(Boston$nox, Boston$dis) #-0.7692301 "Why is the negative correlation between the concentration of Nitrogen oxides and distance to employment centres so so strong?" "First of all we ne...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/trades.R \name{getPortNameByAccount} \alias{getPortNameByAccount} \title{A function to map portfolio info to a trades data frame by account id, referenced as "account".} \usage{ getPortNameByAccount(data, session) } \arguments{ \item{data}{a ...
/man/getPortNameByAccount.Rd
no_license
beatnaut/remaputils
R
false
true
440
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/trades.R \name{getPortNameByAccount} \alias{getPortNameByAccount} \title{A function to map portfolio info to a trades data frame by account id, referenced as "account".} \usage{ getPortNameByAccount(data, session) } \arguments{ \item{data}{a ...
library(tidyverse) library(pcldar) library(magrittr) nr_topics <- 20 ds_fn <- "na" iterations <- 1000 cnf <- new_simple_lda_config(ds_fn, nr_topics = nr_topics, alpha = 0.01, beta = (nr_topics / 50), iterations = iterations, rarewor...
/inst/examples/lda_from_text.R
no_license
lejon/pcldar
R
false
false
1,556
r
library(tidyverse) library(pcldar) library(magrittr) nr_topics <- 20 ds_fn <- "na" iterations <- 1000 cnf <- new_simple_lda_config(ds_fn, nr_topics = nr_topics, alpha = 0.01, beta = (nr_topics / 50), iterations = iterations, rarewor...
corr <- function(directory, threshold = 0) { ## 'directory' is a character vector of length 1 indicating ## the location of the CSV files ## 'threshold' is a numeric vector of length 1 indicating the ## number of completely observed observations (on all ## variables) required to compute the correlation bet...
/R_prj1/corr.R
no_license
eyedvabny/coursera-ds-main
R
false
false
1,409
r
corr <- function(directory, threshold = 0) { ## 'directory' is a character vector of length 1 indicating ## the location of the CSV files ## 'threshold' is a numeric vector of length 1 indicating the ## number of completely observed observations (on all ## variables) required to compute the correlation bet...
.onAttach <- function(libname, pkgname) { packageStartupMessage("Thanks to use naverapi package. for more information about Naver Open API, visit to 'https://developers.naver.com'") }
/R/zzz.R
no_license
KimByoungmo/naverapi
R
false
false
186
r
.onAttach <- function(libname, pkgname) { packageStartupMessage("Thanks to use naverapi package. for more information about Naver Open API, visit to 'https://developers.naver.com'") }
library(datasets) ##lm <- lsfit(x = airquality$Ozone, y = airquality$Temp*airquality$Temp) ##with(airquality, plot(Ozone, Temp)) ##abline(lm) x <- cbind(airquality$Ozone, airquality$Temp) y <- as.data.frame(x[complete.cases(x), ]) names(y) <- c("Ozone", "Temp") Time <- as.vector(y$Temp) Counts <- as.vector(y$...
/R/Quadratic Formula.R
no_license
BJWiley233/Practical-Computer-Concepts-Files
R
false
false
1,297
r
library(datasets) ##lm <- lsfit(x = airquality$Ozone, y = airquality$Temp*airquality$Temp) ##with(airquality, plot(Ozone, Temp)) ##abline(lm) x <- cbind(airquality$Ozone, airquality$Temp) y <- as.data.frame(x[complete.cases(x), ]) names(y) <- c("Ozone", "Temp") Time <- as.vector(y$Temp) Counts <- as.vector(y$...
% % Copyright 2007-2018 by the individuals mentioned in the source code history % % 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 % % http://www.apache.org/licenses/LICENSE-2.0 ...
/man/mxBootstrapEval.Rd
no_license
bgoodri/OpenMx
R
false
false
5,041
rd
% % Copyright 2007-2018 by the individuals mentioned in the source code history % % 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 % % http://www.apache.org/licenses/LICENSE-2.0 ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/methods-optimizer-player-setting.R \name{update_fpts,optimizer-method} \alias{update_fpts,optimizer-method} \alias{update_fpts} \title{Method for updating fantasy points in an object} \usage{ \S4method{update_fpts}{optimizer}(object, fpts_dat...
/man/update_fpts-optimizer-method.Rd
permissive
jkope892/dfsOptimizer
R
false
true
659
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/methods-optimizer-player-setting.R \name{update_fpts,optimizer-method} \alias{update_fpts,optimizer-method} \alias{update_fpts} \title{Method for updating fantasy points in an object} \usage{ \S4method{update_fpts}{optimizer}(object, fpts_dat...
library(tidyverse) library(seqinr) df_IEDB_binders <- read_csv(file = "IEDB_HLAI_epitopes.csv", skip = 1) df_IEDB_11mers <- df_IEDB_binders %>% filter(nchar(Description) == 11) write.fasta(as.list(df_IEDB_11mers$Description), names = 1:length(df_IEDB_11mers), file.out = "IEDB_11mers.fasta") IEDB_11mer_consensus...
/TCR_pMHC_binding/get_consensus.R
no_license
andy90/mutations_immunogenicity
R
false
false
339
r
library(tidyverse) library(seqinr) df_IEDB_binders <- read_csv(file = "IEDB_HLAI_epitopes.csv", skip = 1) df_IEDB_11mers <- df_IEDB_binders %>% filter(nchar(Description) == 11) write.fasta(as.list(df_IEDB_11mers$Description), names = 1:length(df_IEDB_11mers), file.out = "IEDB_11mers.fasta") IEDB_11mer_consensus...
############################################################################## ### Table A.8: Regression of prosocial behavior on destruction controlling ### ### for confounders (Manski bound imputation for migrants) ### ############################################################################## rm(...
/Original Paper and Code/Original Code/TableA8.R
no_license
CianStryker/Prosocial_Behavior
R
false
false
3,286
r
############################################################################## ### Table A.8: Regression of prosocial behavior on destruction controlling ### ### for confounders (Manski bound imputation for migrants) ### ############################################################################## rm(...
####### Functions ##### Function 1: Make a summary of the number of genes of each scRNA-seq cell type summary_background<-function(single_cell, list_clouds, output) { #selected<-single_cell[single_cell$cluster %in% list_clouds,] #clouds<-as.vector(selected$cluster) #clouds<-sort(unique(clouds)) #list_clouds<-...
/191125_functions_SCREAM.R
no_license
AnaliMigueles/SCREAM
R
false
false
7,697
r
####### Functions ##### Function 1: Make a summary of the number of genes of each scRNA-seq cell type summary_background<-function(single_cell, list_clouds, output) { #selected<-single_cell[single_cell$cluster %in% list_clouds,] #clouds<-as.vector(selected$cluster) #clouds<-sort(unique(clouds)) #list_clouds<-...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/predict.R \name{predict.model_list} \alias{predict.model_list} \title{Make predictions using the best-performing model from tuning} \usage{ \method{predict}{model_list}(object, newdata, prepdata, ...) } \arguments{ \item{object}{model_list ob...
/man/predict.model_list.Rd
permissive
magesa/healthcareai-r
R
false
true
2,422
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/predict.R \name{predict.model_list} \alias{predict.model_list} \title{Make predictions using the best-performing model from tuning} \usage{ \method{predict}{model_list}(object, newdata, prepdata, ...) } \arguments{ \item{object}{model_list ob...
library(sf) library(tidyverse) setwd("~/Documents/R Studio/macrocystis/julio/hornillo") kelp_pal <- readRDS("~/Documents/R Studio/palette/k_pal.rds") coquimbo <- readRDS("~/Documents/R Studio/macrocystis/mapa/coquimbo.rds") kelp_hornillo_data <- readRDS("~/Documents/R Studio/macrocystis/data/KD/hornillo") kelp_horni...
/plot_hornillo.R
no_license
ddrojass/kelp_distribution
R
false
false
12,420
r
library(sf) library(tidyverse) setwd("~/Documents/R Studio/macrocystis/julio/hornillo") kelp_pal <- readRDS("~/Documents/R Studio/palette/k_pal.rds") coquimbo <- readRDS("~/Documents/R Studio/macrocystis/mapa/coquimbo.rds") kelp_hornillo_data <- readRDS("~/Documents/R Studio/macrocystis/data/KD/hornillo") kelp_horni...
library(party) library(ROCR) # Load the kyphosis data set. require(rpart) # Split randomly x <- kyphosis[sample(1:nrow(kyphosis), nrow(kyphosis), replace = F),] x.train <- kyphosis[1:floor(nrow(x)*.75), ] x.evaluate <- kyphosis[(floor(nrow(x)*.75)+1):nrow(x), ] # Create a model using "random forest and bagging ensem...
/cran/party/kyphosis.r
no_license
bikong2/data-science-notebook
R
false
false
1,590
r
library(party) library(ROCR) # Load the kyphosis data set. require(rpart) # Split randomly x <- kyphosis[sample(1:nrow(kyphosis), nrow(kyphosis), replace = F),] x.train <- kyphosis[1:floor(nrow(x)*.75), ] x.evaluate <- kyphosis[(floor(nrow(x)*.75)+1):nrow(x), ] # Create a model using "random forest and bagging ensem...
baltimore <- subset(NEI, NEI$fips == "24510") baltimoreType <- aggregate(Emissions ~ year + type, baltimore, sum) ggplot(baltimoreType, aes(year, Emissions, col = type)) + geom_line() + geom_point() + ggtitle(expression("Total Baltimore " ~ PM[2.5] ~ "Emissions by Type and Year")) + ylab(expression("To...
/plot3.R
no_license
Karishma-Yadav/Exploratory-data-analysis-project-2
R
false
false
492
r
baltimore <- subset(NEI, NEI$fips == "24510") baltimoreType <- aggregate(Emissions ~ year + type, baltimore, sum) ggplot(baltimoreType, aes(year, Emissions, col = type)) + geom_line() + geom_point() + ggtitle(expression("Total Baltimore " ~ PM[2.5] ~ "Emissions by Type and Year")) + ylab(expression("To...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/generate_kernel.R \name{kernel_matern} \alias{kernel_matern} \title{Generating A Single Matrix-wise Function Using Matern} \usage{ kernel_matern(l, p, sigma) } \arguments{ \item{l}{(numeric) A numeric number indicating the hyperparameter (fle...
/man/kernel_matern.Rd
no_license
cran/CVEK
R
false
true
982
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/generate_kernel.R \name{kernel_matern} \alias{kernel_matern} \title{Generating A Single Matrix-wise Function Using Matern} \usage{ kernel_matern(l, p, sigma) } \arguments{ \item{l}{(numeric) A numeric number indicating the hyperparameter (fle...
## PA 434 ## Assignment 3 ## Alexis Kwan # loading data from working directory library(tidyverse) migration <- read_csv("MigrationFlows.csv") origin <- read_csv("Origin.csv") population <- read_csv("Population.csv") refugees <- read_csv("Refugees.csv") ## TASK 1 # A tidy dataset containing all common observations (e...
/week3_ex/Class3_Ex.r
no_license
alexkcode/pa-434
R
false
false
5,692
r
## PA 434 ## Assignment 3 ## Alexis Kwan # loading data from working directory library(tidyverse) migration <- read_csv("MigrationFlows.csv") origin <- read_csv("Origin.csv") population <- read_csv("Population.csv") refugees <- read_csv("Refugees.csv") ## TASK 1 # A tidy dataset containing all common observations (e...
setwd("/data1_2/jiap/projects/18-CCLE-VAE/new/V15.2/NOPEER.RANK.Sigmoid/result.EN/dr.CCLE/04-mix/09.Expr/") ############################################################################### drug.ccle = read.table(file="/data1_2/jiap/projects/18-CCLE-VAE/new/V15.2/NOPEER.RANK.Sigmoid/result.EN/dr.CCLE/01/MIX-F1-W5-P...
/result.EN/dr.CCLE/Analysis/09.Expr/04.09.02.R
no_license
hegu2692/VAEN
R
false
false
9,537
r
setwd("/data1_2/jiap/projects/18-CCLE-VAE/new/V15.2/NOPEER.RANK.Sigmoid/result.EN/dr.CCLE/04-mix/09.Expr/") ############################################################################### drug.ccle = read.table(file="/data1_2/jiap/projects/18-CCLE-VAE/new/V15.2/NOPEER.RANK.Sigmoid/result.EN/dr.CCLE/01/MIX-F1-W5-P...
%% %% WARNING! DO NOT EDIT! %% This file is automatically generated from set.default.arguments.R %% \name{control.bgev.default} \alias{control.bgev.default} \alias{inla.control.bgev.default} \alias{inla.set.control.bgev.default.default} \alias{set.control.bgev.default.default} \alias{control.bgev.default.default} \titl...
/man/control.bgev.default.Rd
no_license
jdsimkin04/shinyinla
R
false
false
1,839
rd
%% %% WARNING! DO NOT EDIT! %% This file is automatically generated from set.default.arguments.R %% \name{control.bgev.default} \alias{control.bgev.default} \alias{inla.control.bgev.default} \alias{inla.set.control.bgev.default.default} \alias{set.control.bgev.default.default} \alias{control.bgev.default.default} \titl...
#' Run Broad-Enrich on broad genomic regions #' #' Broad-Enrich is designed for use with broad peaks that may intersect multiple #' gene loci, and cumulatively cover greater than 5\% of the genome. For example, #' ChIP-seq experiments for histone modifications. For more details, see the #' 'Broad-Enrich Method' section...
/R/broadenrich.R
no_license
cotton-lab/chipenrich
R
false
false
16,560
r
#' Run Broad-Enrich on broad genomic regions #' #' Broad-Enrich is designed for use with broad peaks that may intersect multiple #' gene loci, and cumulatively cover greater than 5\% of the genome. For example, #' ChIP-seq experiments for histone modifications. For more details, see the #' 'Broad-Enrich Method' section...
#################################################### ### Cross-link FIA plots with climatic variables ### #################################################### # This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A...
/clim_extract.R
no_license
renjianning/TDM
R
false
false
1,575
r
#################################################### ### Cross-link FIA plots with climatic variables ### #################################################### # This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{teams_links} \alias{teams_links} \title{Teams Dictionary Team link reference lookup for the package} \format{ A data frame with 357 rows and 6 variables:\ \describe{ \item{\code{Team}}{character.} \item{\code{Team....
/man/teams_links.Rd
permissive
mrcaseb/hoopR
R
false
true
635
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{teams_links} \alias{teams_links} \title{Teams Dictionary Team link reference lookup for the package} \format{ A data frame with 357 rows and 6 variables:\ \describe{ \item{\code{Team}}{character.} \item{\code{Team....
library(ggplot2) library(gridExtra) N <- seq(10, 150, by = 10) D <- seq(1:8) error_plot_avg <- data.frame(n = integer(), pse = numeric(), d = character()) ## PSE seeds <- seq(1:200) for(seed in seeds){ # sample data set.seed(seed) X_i <- runif(max(N), 0, 1) e_i <- rnorm(max(N), 0, 0.2) Y_i <- sin(2*pi*X_i^...
/R_code/sieves_simulation.R
no_license
matthewrw/Sieves_Project
R
false
false
3,979
r
library(ggplot2) library(gridExtra) N <- seq(10, 150, by = 10) D <- seq(1:8) error_plot_avg <- data.frame(n = integer(), pse = numeric(), d = character()) ## PSE seeds <- seq(1:200) for(seed in seeds){ # sample data set.seed(seed) X_i <- runif(max(N), 0, 1) e_i <- rnorm(max(N), 0, 0.2) Y_i <- sin(2*pi*X_i^...
context("Test subset function") test_that("Checking subset on object of class mpcross by markers, with a single dataset", { #Test function for an object with a single dataset testSingle <- function(cross, subsetted, marker) { expect_identical(validObject(subsetted, complete=TRUE), TRUE) expect_identical(s...
/tests/testthat/test-subset.mpcross.R
no_license
rohan-shah/mpMap2
R
false
false
5,836
r
context("Test subset function") test_that("Checking subset on object of class mpcross by markers, with a single dataset", { #Test function for an object with a single dataset testSingle <- function(cross, subsetted, marker) { expect_identical(validObject(subsetted, complete=TRUE), TRUE) expect_identical(s...
library(tidyverse) library(grid) library(gridExtra) library(scales) #<-- for plot colors library(ggpubr) library(ggthemes) library(ggplot2) setwd("C:/github/MIMICS_HiRes/MCMC") ### Load all MCMC output csv files from directory filenames <- list.files(path="Output/",pattern=".*csv") ## Create list of dat...
/MCMC/Post_MCMC_Analysis/MCMC_results_plot.R
permissive
piersond/MIMICS_HiRes
R
false
false
9,513
r
library(tidyverse) library(grid) library(gridExtra) library(scales) #<-- for plot colors library(ggpubr) library(ggthemes) library(ggplot2) setwd("C:/github/MIMICS_HiRes/MCMC") ### Load all MCMC output csv files from directory filenames <- list.files(path="Output/",pattern=".*csv") ## Create list of dat...
\name{combineRgn} \alias{combineRgn} \title{ Combine Genomic Regions } \description{ Combine genomic regions from BED files } \usage{ combineRgn(files) } \arguments{ \item{files}{ Genomic region filenames in BED format. } } \details{ This function computes the union of genomic regions if input files are more than on...
/man/combineRgn.Rd
permissive
qwang-big/irene
R
false
false
469
rd
\name{combineRgn} \alias{combineRgn} \title{ Combine Genomic Regions } \description{ Combine genomic regions from BED files } \usage{ combineRgn(files) } \arguments{ \item{files}{ Genomic region filenames in BED format. } } \details{ This function computes the union of genomic regions if input files are more than on...
# Atmpspheric carbon dioxide data from Mauna Loa Observatory since 1958 library(readr) co2level <- read_csv("data-raw/co2level.csv") devtools::use_data(co2level, overwrite = TRUE)
/data-raw/co2level.R
no_license
PHP2560-Statistical-Programming-R/r-package-beautiful-day
R
false
false
181
r
# Atmpspheric carbon dioxide data from Mauna Loa Observatory since 1958 library(readr) co2level <- read_csv("data-raw/co2level.csv") devtools::use_data(co2level, overwrite = TRUE)
## Word frequency analysis # aim is to take the submissions, look at the most frequenct words, and try and use this to filter submissions that are the same # Make a list of submissions whose top 10 most frequent words are the same? # references: http://onepager.togaware.com/TextMiningO.pdf # https://gist.github.com/be...
/WaterAct_wordanalysis.R
no_license
ashjolly/SpecScripts
R
false
false
9,497
r
## Word frequency analysis # aim is to take the submissions, look at the most frequenct words, and try and use this to filter submissions that are the same # Make a list of submissions whose top 10 most frequent words are the same? # references: http://onepager.togaware.com/TextMiningO.pdf # https://gist.github.com/be...
## setwd to the folder that contains the unzipped household power consumption dataset plot2 <- function() { library(dplyr) library(lubridate) data <- read.table("household_power_consumption.txt", header = FALSE, sep = ";", na.strings = "?", skip = 66637, nrows = 2880) names(data) ...
/plot2.R
no_license
CesarTC14/ExData_Plotting1
R
false
false
905
r
## setwd to the folder that contains the unzipped household power consumption dataset plot2 <- function() { library(dplyr) library(lubridate) data <- read.table("household_power_consumption.txt", header = FALSE, sep = ";", na.strings = "?", skip = 66637, nrows = 2880) names(data) ...
check.vars(c("uof.for.year")) ######################################################################################################## ######################################################################################################## title <- "Victim injuries during UOF" uof.by.victim.injury <- uof.for.year %>%...
/data-analysis/force/outcome/uof-by-public-injury.R
permissive
marvinmarnold/oipm_annual_report_2019
R
false
false
959
r
check.vars(c("uof.for.year")) ######################################################################################################## ######################################################################################################## title <- "Victim injuries during UOF" uof.by.victim.injury <- uof.for.year %>%...
### Create inclusion probabilities #### ## for multibeam and lidar ####### #install.packages("MBHdesign") library( MBHdesign) library( parallel) library( class) library( fields) #install.packages("pdist") library( pdist) library( raster) library( rgdal) library( sp) # clear environment ---- rm(list = ls()) # Set wor...
/3.SW-BRUVs-design_Fish-HWY.R
no_license
anitas-giraldo/MBH-SW-Oct2020
R
false
false
17,118
r
### Create inclusion probabilities #### ## for multibeam and lidar ####### #install.packages("MBHdesign") library( MBHdesign) library( parallel) library( class) library( fields) #install.packages("pdist") library( pdist) library( raster) library( rgdal) library( sp) # clear environment ---- rm(list = ls()) # Set wor...
library("knitr") library("rgl") #knit("sulfentrazone.Rmd") #markdownToHTML('sulfentrazone.md', 'sulfentrazone.html', options=c("use_xhml")) #system("pandoc -s sulfentrazone.html -o sulfentrazone.pdf") knit2html('sulfentrazone.Rmd')
/FDA_Pesticide_Glossary/sulfentrazone.R
permissive
andrewdefries/andrewdefries.github.io
R
false
false
234
r
library("knitr") library("rgl") #knit("sulfentrazone.Rmd") #markdownToHTML('sulfentrazone.md', 'sulfentrazone.html', options=c("use_xhml")) #system("pandoc -s sulfentrazone.html -o sulfentrazone.pdf") knit2html('sulfentrazone.Rmd')
#' MLModel Class Constructor #' #' Create a model for use with the \pkg{MachineShop} package. #' #' @param name character name of the object to which the model is assigned. #' @param label optional character descriptor for the model. #' @param packages character vector of packages required to use the model. #' @param r...
/R/MLModel.R
no_license
chen061218/MachineShop
R
false
false
6,090
r
#' MLModel Class Constructor #' #' Create a model for use with the \pkg{MachineShop} package. #' #' @param name character name of the object to which the model is assigned. #' @param label optional character descriptor for the model. #' @param packages character vector of packages required to use the model. #' @param r...
source('data.R') source('theme.R') ## TODO drop y text image_device("daily1") m <- nn5[, c(1, 110)] r <- nrow(m) labels <- make.unique(colnames(m)) df <- data.frame( index(m)[rep.int(1:r, ncol(m))], factor(rep(1:ncol(m), each = r), levels = 1:ncol(m), labels = labels), as.vector(coredata(m))) names(df) <- c("Ind...
/R/images.R
permissive
gridl/arima-vs-long-forecasts-2017
R
false
false
5,143
r
source('data.R') source('theme.R') ## TODO drop y text image_device("daily1") m <- nn5[, c(1, 110)] r <- nrow(m) labels <- make.unique(colnames(m)) df <- data.frame( index(m)[rep.int(1:r, ncol(m))], factor(rep(1:ncol(m), each = r), levels = 1:ncol(m), labels = labels), as.vector(coredata(m))) names(df) <- c("Ind...
library(mclust) library(latex2exp) library(ghibli) path_cvx <- "./data/" load("./data/rand_config_p40_n20_tree_set1.RData") load("./data/rand_config_tree_set2_28simus_tvmax10.RData") load("./data/rand_config_tree_set3_27simus_tvmax5.RData") load("./data/rand_config_tree_set4_35simus_tvmax2_5.RData") load("./data/rand...
/scripts/supplemental/supp4-performances-hierarchically-structured-model.R.R
permissive
computorg/published-202306-sanou-multiscale_glasso
R
false
false
820
r
library(mclust) library(latex2exp) library(ghibli) path_cvx <- "./data/" load("./data/rand_config_p40_n20_tree_set1.RData") load("./data/rand_config_tree_set2_28simus_tvmax10.RData") load("./data/rand_config_tree_set3_27simus_tvmax5.RData") load("./data/rand_config_tree_set4_35simus_tvmax2_5.RData") load("./data/rand...
library(e1071) > library(e1071) > data(Ozone, package="mlbench") > ## split data into a train and test set > index <- 1:nrow(Ozone) > testindex <- sample(index, trunc(length(index)/3)) > testset <- na.omit(Ozone[testindex,-3]) > trainset <- na.omit(Ozone[-testindex,-3]) > ## svm > svm.model <- svm(V4 ~ ., data ...
/aquarius DA/lab1_svmreg1.R
no_license
priteshmaheshwari/DataAnalytics2021_Pritesh_Maheshwari
R
false
false
648
r
library(e1071) > library(e1071) > data(Ozone, package="mlbench") > ## split data into a train and test set > index <- 1:nrow(Ozone) > testindex <- sample(index, trunc(length(index)/3)) > testset <- na.omit(Ozone[testindex,-3]) > trainset <- na.omit(Ozone[-testindex,-3]) > ## svm > svm.model <- svm(V4 ~ ., data ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/umxACEnew.R \name{umxACEnew} \alias{umxACEnew} \title{Build and run a 2-group Cholesky twin model (uni-variate or multi-variate)} \usage{ umxACEnew(name = "ACE", selDVs, selCovs = NULL, covMethod = c("fixed", "random"), dzData, mzData, sep ...
/man/umxACEnew.Rd
no_license
guhjy/umx
R
false
true
14,319
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/umxACEnew.R \name{umxACEnew} \alias{umxACEnew} \title{Build and run a 2-group Cholesky twin model (uni-variate or multi-variate)} \usage{ umxACEnew(name = "ACE", selDVs, selCovs = NULL, covMethod = c("fixed", "random"), dzData, mzData, sep ...