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
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/searching.R \name{list_paths} \alias{list_paths} \title{List mastergrid paths} \usage{ list_paths() } \description{ A data frame containing names of mastergrid paths available in the \code{mastergrid_paths} object and the respective values. }...
/mastergrids/man/list_paths.Rd
permissive
jgjuarez/chagas-vector-sdm
R
false
true
321
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/searching.R \name{list_paths} \alias{list_paths} \title{List mastergrid paths} \usage{ list_paths() } \description{ A data frame containing names of mastergrid paths available in the \code{mastergrid_paths} object and the respective values. }...
## # ANN Implemenation / OR AT LEAST IM TRYING GUYS :() ## #install.packages('neuralnet') library("neuralnet") #Going to create a neural network to perform sqare rooting #Type ?neuralnet for more information on the neuralnet library #Generate 50 random numbers uniformly distributed between 0 and 100 #And store them ...
/ann_demo.r
no_license
LennartOlsen/datascience_project
R
false
false
1,440
r
## # ANN Implemenation / OR AT LEAST IM TRYING GUYS :() ## #install.packages('neuralnet') library("neuralnet") #Going to create a neural network to perform sqare rooting #Type ?neuralnet for more information on the neuralnet library #Generate 50 random numbers uniformly distributed between 0 and 100 #And store them ...
library(plyr) library(parallel) library(tidyverse) library(Rgadget) bootDir <- "~/gadget/models/atlantis/varTest/errBootRuns/bootrun_var0.147" setwd(bootDir) bs_models <- list.dirs(paste(bootDir, "BS.WGTS", sep = "/"), full.names = FALSE, recursive = FALSE) mclapply(bs_models, function(x) { ...
/varTest/results/halfBoot/halfErrBootFit.R
no_license
inspktrgadget/atlantis
R
false
false
1,011
r
library(plyr) library(parallel) library(tidyverse) library(Rgadget) bootDir <- "~/gadget/models/atlantis/varTest/errBootRuns/bootrun_var0.147" setwd(bootDir) bs_models <- list.dirs(paste(bootDir, "BS.WGTS", sep = "/"), full.names = FALSE, recursive = FALSE) mclapply(bs_models, function(x) { ...
library(tidyverse) hiv <- read.csv("HIVprev.csv",stringsAsFactors = FALSE) head(hiv) hiv <- select(hiv,Country, year, prevalence) head(hiv) tail(hiv) summary(hiv) ##hiv <- filter(hiv,Country == "Botswana") cc <- c("Botswana","Central African Republic","Congo","Kenya","Lesotho","Malawi", "Namibia"...
/Data Visualization 1.R
no_license
dawu29/RStudio-exersices
R
false
false
1,668
r
library(tidyverse) hiv <- read.csv("HIVprev.csv",stringsAsFactors = FALSE) head(hiv) hiv <- select(hiv,Country, year, prevalence) head(hiv) tail(hiv) summary(hiv) ##hiv <- filter(hiv,Country == "Botswana") cc <- c("Botswana","Central African Republic","Congo","Kenya","Lesotho","Malawi", "Namibia"...
library(MortalityTables) ### Name: baseYear ### Title: Return the base year of the life table ### Aliases: baseYear baseYear,mortalityTable-method ### baseYear,mortalityTable.mixed-method ### baseYear,mortalityTable.jointLives-method ### ** Examples mortalityTables.load("Austria_Annuities") baseYear(AVOe2005R.m...
/data/genthat_extracted_code/MortalityTables/examples/baseYear.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
329
r
library(MortalityTables) ### Name: baseYear ### Title: Return the base year of the life table ### Aliases: baseYear baseYear,mortalityTable-method ### baseYear,mortalityTable.mixed-method ### baseYear,mortalityTable.jointLives-method ### ** Examples mortalityTables.load("Austria_Annuities") baseYear(AVOe2005R.m...
geometricboot <- function(j=NULL,wr1,wr2,x.pred,y.pred,n,cbb,joint){ if (is.numeric(cbb)==TRUE) { xresid2 <- c(wr1,wr1) yresid2 <- c(wr2,wr2) k <- n/cbb xblocks <- sample(1:n,k,replace=TRUE) if (joint==FALSE) yblocks <- sample(1:n,k,replace=TRUE) else yblocks <- xblocks xressamp <- c(t(out...
/R/geometricboot.R
no_license
spencerm89/hysteresis6
R
false
false
2,448
r
geometricboot <- function(j=NULL,wr1,wr2,x.pred,y.pred,n,cbb,joint){ if (is.numeric(cbb)==TRUE) { xresid2 <- c(wr1,wr1) yresid2 <- c(wr2,wr2) k <- n/cbb xblocks <- sample(1:n,k,replace=TRUE) if (joint==FALSE) yblocks <- sample(1:n,k,replace=TRUE) else yblocks <- xblocks xressamp <- c(t(out...
##' drawing phylogenetic tree from phylo object ##' ##' ##' @title ggtree ##' @param tr phylo object ##' @param mapping aes mapping ##' @param layout one of 'rectangular', 'slanted', 'fan', 'circular', 'radial', 'equal_angle' or 'daylight' ##' @param open.angle open angle, only for 'fan' layout ##' @param mrsd most rec...
/R/ggtree.R
no_license
smyang2018/ggtree
R
false
false
3,068
r
##' drawing phylogenetic tree from phylo object ##' ##' ##' @title ggtree ##' @param tr phylo object ##' @param mapping aes mapping ##' @param layout one of 'rectangular', 'slanted', 'fan', 'circular', 'radial', 'equal_angle' or 'daylight' ##' @param open.angle open angle, only for 'fan' layout ##' @param mrsd most rec...
periodo<-function(x) { n<-length(x) ##print(n) m<-floor(n/2) ##print(m) t<-1:n w<-t[1:m]*2*pi/n ## e<-rep(1,n) c<-cos(t%*%t(w)) ##print(c) s<-sin(t%*%t(w)) mat<-cbind(c,s) ##print(mat) coef<-as.vector((t(x)%*%mat)) print(length(coef)) I<-(2*n/pi)*(coef[1:m]^2+coef[(m+1):(2*m)]^2) print(length(I)) w1<-t[1:m] print(lengt...
/periodo.R
no_license
ettabib/TimeSeries
R
false
false
339
r
periodo<-function(x) { n<-length(x) ##print(n) m<-floor(n/2) ##print(m) t<-1:n w<-t[1:m]*2*pi/n ## e<-rep(1,n) c<-cos(t%*%t(w)) ##print(c) s<-sin(t%*%t(w)) mat<-cbind(c,s) ##print(mat) coef<-as.vector((t(x)%*%mat)) print(length(coef)) I<-(2*n/pi)*(coef[1:m]^2+coef[(m+1):(2*m)]^2) print(length(I)) w1<-t[1:m] print(lengt...
## Deterministic SEIR model ## five periods: Jan 1-9 (index 1-9), Jan 10-22 (index 10-22), Jan 23-Feb 1 (index 23-32), Feb 2-16 (index 33-47), Feb 17- (index 48-60) #' @param pars a vetor of parameters: c(b12, b3, b3, b5, r12, delta3, delta4, delta5) #' @param init_settings a list of initia...
/R/fun_SEIRpred_alpha.R
no_license
andrewhaoyu/SEIR
R
false
false
3,631
r
## Deterministic SEIR model ## five periods: Jan 1-9 (index 1-9), Jan 10-22 (index 10-22), Jan 23-Feb 1 (index 23-32), Feb 2-16 (index 33-47), Feb 17- (index 48-60) #' @param pars a vetor of parameters: c(b12, b3, b3, b5, r12, delta3, delta4, delta5) #' @param init_settings a list of initia...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ols-data-rivers.R \docType{data} \name{rivers} \alias{rivers} \title{Test Data Set} \format{An object of class \code{data.frame} with 20 rows and 6 columns.} \usage{ rivers } \description{ Test Data Set } \keyword{datasets}
/man/rivers.Rd
no_license
topepo/olsrr
R
false
true
302
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ols-data-rivers.R \docType{data} \name{rivers} \alias{rivers} \title{Test Data Set} \format{An object of class \code{data.frame} with 20 rows and 6 columns.} \usage{ rivers } \description{ Test Data Set } \keyword{datasets}
library(shiny) shinyServer(function(input,output){ output$image <- renderPlot({ library(kohonen) require(kohonen) df <- read.csv('uscitiesCsv.csv', header = TRUE, sep = ",") # DATA FRAME de Delaware com 2 Vari?veis (latitude e longitude), 77 exemplares df_del <- df[621:697, c(9,10)] ...
/src/shiny/server.R
permissive
samuelwuw/Scientific_Initiation
R
false
false
1,713
r
library(shiny) shinyServer(function(input,output){ output$image <- renderPlot({ library(kohonen) require(kohonen) df <- read.csv('uscitiesCsv.csv', header = TRUE, sep = ",") # DATA FRAME de Delaware com 2 Vari?veis (latitude e longitude), 77 exemplares df_del <- df[621:697, c(9,10)] ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/testlib.R \docType{package} \name{testlib} \alias{testlib} \alias{testlib-package} \title{testlib: A package for cross tabulation of data} \description{ The testlib package provides functions for cross tabulation of categorical data and visul...
/man/testlib.Rd
permissive
aravindhebbali/testlib
R
false
true
415
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/testlib.R \docType{package} \name{testlib} \alias{testlib} \alias{testlib-package} \title{testlib: A package for cross tabulation of data} \description{ The testlib package provides functions for cross tabulation of categorical data and visul...
#Multivariable Linear Regression #Start by just using pneumonia data model1 <- lm(Prop.Covered.by.Medicare ~ Median.Income.County + Density.County, data = medicare.pneumonia) summary(model1) model2 <- lm(sqrt.Prop.Covered.by.Medicare ~ log.Median.Income.County + log.Density.County, data = medicare.pneumonia) summa...
/Capstone Linear Regression.R
no_license
sharding1023/Harding-Capstone
R
false
false
488
r
#Multivariable Linear Regression #Start by just using pneumonia data model1 <- lm(Prop.Covered.by.Medicare ~ Median.Income.County + Density.County, data = medicare.pneumonia) summary(model1) model2 <- lm(sqrt.Prop.Covered.by.Medicare ~ log.Median.Income.County + log.Density.County, data = medicare.pneumonia) summa...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/scale-continuous.R \name{add_continuous_breaks} \alias{add_continuous_breaks} \title{Add continuous scale to a map} \usage{ add_continuous_breaks(map, var, palette = "viridis", direction = 1, n_breaks = 5, style = "pretty", na_color = "#b8b...
/man/add_continuous_breaks.Rd
no_license
dreamRs/r2d3maps
R
false
true
2,466
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/scale-continuous.R \name{add_continuous_breaks} \alias{add_continuous_breaks} \title{Add continuous scale to a map} \usage{ add_continuous_breaks(map, var, palette = "viridis", direction = 1, n_breaks = 5, style = "pretty", na_color = "#b8b...
onecv.jpex <- function(image, bandwidth) { n1 <- nrow(image) z <- as.double(c(t(image))) LLK <- double(n1 * n1) k <- as.integer(bandwidth) out <- .C("LOOCV", Zin = z, nin = n1, kin = k, LLK = LLK, cv = as.double(0)) return(out$cv) } cv.jpex <- function(image, bandwidths, ncpus = 1) { ncores <- detectCore...
/R/cv.jpex.R
no_license
cran/DRIP
R
false
false
1,140
r
onecv.jpex <- function(image, bandwidth) { n1 <- nrow(image) z <- as.double(c(t(image))) LLK <- double(n1 * n1) k <- as.integer(bandwidth) out <- .C("LOOCV", Zin = z, nin = n1, kin = k, LLK = LLK, cv = as.double(0)) return(out$cv) } cv.jpex <- function(image, bandwidths, ncpus = 1) { ncores <- detectCore...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/get.trait.data.R \name{get.trait.data} \alias{get.trait.data} \title{Gets trait data from the database} \usage{ get.trait.data(pfts, modeltype, dbfiles, database, forceupdate, trait.names = NULL) } \arguments{ \item{pfts}{the list o...
/db/man/get.trait.data.Rd
permissive
davidjpmoore/pecan
R
false
false
1,074
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/get.trait.data.R \name{get.trait.data} \alias{get.trait.data} \title{Gets trait data from the database} \usage{ get.trait.data(pfts, modeltype, dbfiles, database, forceupdate, trait.names = NULL) } \arguments{ \item{pfts}{the list o...
#' Half-hourly electricity demand #' #' Half-hourly electricity demand in England and Wales from Monday 5 June 2000 #' to Sunday 27 August 2000. Discussed in Taylor (2003). #' #' @format A tibble: 4,032 x 2 #' - `date`: A date-time variable in 30-minute increments #' - `value`: Electricity demand in Megawatts #' #' @re...
/R/data-taylor_30_min.R
no_license
business-science/timetk
R
false
false
596
r
#' Half-hourly electricity demand #' #' Half-hourly electricity demand in England and Wales from Monday 5 June 2000 #' to Sunday 27 August 2000. Discussed in Taylor (2003). #' #' @format A tibble: 4,032 x 2 #' - `date`: A date-time variable in 30-minute increments #' - `value`: Electricity demand in Megawatts #' #' @re...
#clean up the temperature data to prepare for GDD analysis #all data from site A2 #20 GCMs, downscaled using RCP8.5, 2016-2099 library(lubridate) library(plyr) library(dplyr) setwd('~/Growing-Degree-Days/Raw-MACA-data') #specify own filepath evens <- seq(2,61362,2) #temps odds <- seq(1,61362,2) #dates #start by get...
/Data-Clean-Up.R
no_license
NSafarali/Growing-Degree-Days
R
false
false
2,259
r
#clean up the temperature data to prepare for GDD analysis #all data from site A2 #20 GCMs, downscaled using RCP8.5, 2016-2099 library(lubridate) library(plyr) library(dplyr) setwd('~/Growing-Degree-Days/Raw-MACA-data') #specify own filepath evens <- seq(2,61362,2) #temps odds <- seq(1,61362,2) #dates #start by get...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/read_csv.R \name{read_csv} \alias{read_csv} \title{Read a csv file into a data frame.} \usage{ read_csv(file, col_names = TRUE, col_types = NULL, na = "NA", skip = 0, n_max = -1) } \arguments{ \item{file}{Either a path to a file, a ...
/man/read_csv.Rd
no_license
jjallaire/readr
R
false
false
2,534
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/read_csv.R \name{read_csv} \alias{read_csv} \title{Read a csv file into a data frame.} \usage{ read_csv(file, col_names = TRUE, col_types = NULL, na = "NA", skip = 0, n_max = -1) } \arguments{ \item{file}{Either a path to a file, a ...
#This version of pvculst can be used to run a spearman correlation. Downloaded 12/4/14 pvclust <- function(data, method.hclust="average", method.dist="correlation", use.cor="pairwise.complete.obs", nboot=1000, r=seq(.5,1.4,by=.1), store=FALSE, weight=FALSE) { # data: (n,p) mat...
/Files/pvclust_spearman.R
no_license
bdulken/SVZ_NSC_Dulken_2
R
false
false
13,479
r
#This version of pvculst can be used to run a spearman correlation. Downloaded 12/4/14 pvclust <- function(data, method.hclust="average", method.dist="correlation", use.cor="pairwise.complete.obs", nboot=1000, r=seq(.5,1.4,by=.1), store=FALSE, weight=FALSE) { # data: (n,p) mat...
#' Marginal plot on scatter plot #' #' @description Membuat marginal plot untuk menunjukkan distribusi variabel #' dalam scatter plot #' #' @param data data frame #' @param x character of column name for x axis #' @param y character of column name for y axis #' @param title character for plot title #' @par...
/R/plot_mrg.R
no_license
eppofahmi/dataplot
R
false
false
1,614
r
#' Marginal plot on scatter plot #' #' @description Membuat marginal plot untuk menunjukkan distribusi variabel #' dalam scatter plot #' #' @param data data frame #' @param x character of column name for x axis #' @param y character of column name for y axis #' @param title character for plot title #' @par...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/table1.r \name{table1} \alias{table1} \title{Print table 1} \usage{ table1(contacts, ...) } \arguments{ \item{contacts}{a contact matrix} \item{...}{any further parameters to pass to \code{\link{sk_projected_seroprevalence}}} } \value{ wide ...
/man/table1.Rd
no_license
sbfnk/sk.measles
R
false
true
486
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/table1.r \name{table1} \alias{table1} \title{Print table 1} \usage{ table1(contacts, ...) } \arguments{ \item{contacts}{a contact matrix} \item{...}{any further parameters to pass to \code{\link{sk_projected_seroprevalence}}} } \value{ wide ...
library("dplyr") library("ggplot2") library("lubridate") ciber <- read.csv("~/Downloads/CIBER_BCN.csv") %>% mutate( FechaInicio = dmy(FechaInicio), FechaNacimiento = dmy(FechaNacimiento), EdadInicio = (FechaInicio-FechaNacimiento)/as.duration(years(1)), Ciber = toupper(Ciber), ...
/R/hello.R
permissive
llrs/histime
R
false
false
1,176
r
library("dplyr") library("ggplot2") library("lubridate") ciber <- read.csv("~/Downloads/CIBER_BCN.csv") %>% mutate( FechaInicio = dmy(FechaInicio), FechaNacimiento = dmy(FechaNacimiento), EdadInicio = (FechaInicio-FechaNacimiento)/as.duration(years(1)), Ciber = toupper(Ciber), ...
summary_file = "gwasqc_summaries.txt" args = commandArgs(trailingOnly=T) if (length(args) > 0) { summary_file = args[1] } print(paste("Using summary file:", summary_file)) input_files = read.table("input-file-list.txt", h=F) if (ncol(input_files) == 2) { print("detected binary trait") colnames(input_files) = c("F...
/generate-summaries.R
no_license
genepi-freiburg/ckdgen-metaanalysis
R
false
false
12,327
r
summary_file = "gwasqc_summaries.txt" args = commandArgs(trailingOnly=T) if (length(args) > 0) { summary_file = args[1] } print(paste("Using summary file:", summary_file)) input_files = read.table("input-file-list.txt", h=F) if (ncol(input_files) == 2) { print("detected binary trait") colnames(input_files) = c("F...
#Simple R Graph showing x^2 # Sep 2014 x <- seq(0,1,0.1) y <- x^2 #or use ggplot? plot(x,y)
/RTest.R
no_license
kevparry12/sandpit
R
false
false
94
r
#Simple R Graph showing x^2 # Sep 2014 x <- seq(0,1,0.1) y <- x^2 #or use ggplot? plot(x,y)
args = commandArgs() if (length(args)!=12) { stop("At least two arguments must be supplied.") } else { dataset = args[6] numThreads = as.integer(args[7]) nTimes = as.integer(args[8]) nClass = as.integer(args[9]) nSamples = as.integer(args[10]) nfeats = as.integer(args[11]) testName = as.character(args[12]) } librar...
/IO_Chapter/test5/Ranger.R
no_license
jbrowne6/fpExperiments
R
false
false
3,605
r
args = commandArgs() if (length(args)!=12) { stop("At least two arguments must be supplied.") } else { dataset = args[6] numThreads = as.integer(args[7]) nTimes = as.integer(args[8]) nClass = as.integer(args[9]) nSamples = as.integer(args[10]) nfeats = as.integer(args[11]) testName = as.character(args[12]) } librar...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ppt_ph_with.R \name{ph_with_text} \alias{ph_with_text} \title{add text into a new shape} \usage{ ph_with_text(x, str, type = "title", index = 1) } \arguments{ \item{x}{a pptx device} \item{str}{text to add} \item{type}{placeholder type} \i...
/man/ph_with_text.Rd
no_license
toolsforresearch/officer
R
false
true
1,257
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ppt_ph_with.R \name{ph_with_text} \alias{ph_with_text} \title{add text into a new shape} \usage{ ph_with_text(x, str, type = "title", index = 1) } \arguments{ \item{x}{a pptx device} \item{str}{text to add} \item{type}{placeholder type} \i...
# clean working directory rm(list = ls(all = TRUE)) # Set working directory setwd("~/code/r/gasLog/") ## @knitr libraries library(googlesheets); library(tidyverse); library(leaflet); library(RCurl); library(lubridate) ## @knitr getData # scrape travel log data # Access google sheets (my_sheets <- gs_ls()) glimpse...
/scripts/scrape.R
no_license
jvcasillas/gasLog
R
false
false
1,662
r
# clean working directory rm(list = ls(all = TRUE)) # Set working directory setwd("~/code/r/gasLog/") ## @knitr libraries library(googlesheets); library(tidyverse); library(leaflet); library(RCurl); library(lubridate) ## @knitr getData # scrape travel log data # Access google sheets (my_sheets <- gs_ls()) glimpse...
## Put comments here that give an overall description of what your ## functions do ## makeCacheMatix creates a special "matrix", which is really a list containing functions that: ## set the value of the matrix ## get the value of the matrix ## set the value of the inverse of the matrix ## get the value of the inverse ...
/cachematrix.R
no_license
inteq/ProgrammingAssignment2
R
false
false
1,224
r
## Put comments here that give an overall description of what your ## functions do ## makeCacheMatix creates a special "matrix", which is really a list containing functions that: ## set the value of the matrix ## get the value of the matrix ## set the value of the inverse of the matrix ## get the value of the inverse ...
\name{Test_data} \docType{data} \alias{Test_data} \title{Example infile for diveRsity package} \description{ Test_data is a typical genepop (Rousset, 2008) three digit format input file for the package diveRsity. This is empirical data for six brown trout population first presented in 'Beaufort Trout MicroPlex: A hi...
/man/Test_data.rd
no_license
kkeenan02/diveRsity
R
false
false
830
rd
\name{Test_data} \docType{data} \alias{Test_data} \title{Example infile for diveRsity package} \description{ Test_data is a typical genepop (Rousset, 2008) three digit format input file for the package diveRsity. This is empirical data for six brown trout population first presented in 'Beaufort Trout MicroPlex: A hi...
# fillParam: Fill in other objects based on the parameter values of current objects fillParam <- function(param, modelType) { library(lavaan) LY <- param@LY VTE <- param@VTE TE <- param@TE RTE <- param@RTE VY <- param@VY TY <- param@TY MY <- param@MY BE <- param@BE V...
/simsem/R/fillParam.R
no_license
pairach/simsem
R
false
false
8,009
r
# fillParam: Fill in other objects based on the parameter values of current objects fillParam <- function(param, modelType) { library(lavaan) LY <- param@LY VTE <- param@VTE TE <- param@TE RTE <- param@RTE VY <- param@VY TY <- param@TY MY <- param@MY BE <- param@BE V...
#PCA pca <- function(x,...){UseMethod('pca')} pca1 <- function(A,rank=0,ifscale=TRUE){ A <- A[,colMeans(is.na(A))<1,drop=F] A <- apply(A,2,function(x){ x[is.na(x)] <- median(x,na.rm=T) x }) if(ncol(A)>0){ A <- A[,apply(A,2,var)>0,drop=F] } if(ifscale){A <- scale(as.matrix(A))[,]} A.svd <- svd(...
/pcca/R/pca.R
no_license
wenrurumon/mysrc
R
false
false
1,068
r
#PCA pca <- function(x,...){UseMethod('pca')} pca1 <- function(A,rank=0,ifscale=TRUE){ A <- A[,colMeans(is.na(A))<1,drop=F] A <- apply(A,2,function(x){ x[is.na(x)] <- median(x,na.rm=T) x }) if(ncol(A)>0){ A <- A[,apply(A,2,var)>0,drop=F] } if(ifscale){A <- scale(as.matrix(A))[,]} A.svd <- svd(...
library(GPLTR) ### Name: best.tree.bootstrap ### Title: parametric bootstrap on a pltr model ### Aliases: best.tree.bootstrap ### Keywords: documentation test ### ** Examples #load the data set data(data_pltr) args.rpart <- list(minbucket = 40, maxdepth = 10, cp = 0) family <- "binomial" Y.name <- "Y" X.names <- "G...
/data/genthat_extracted_code/GPLTR/examples/best.tree.bootstrap.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,003
r
library(GPLTR) ### Name: best.tree.bootstrap ### Title: parametric bootstrap on a pltr model ### Aliases: best.tree.bootstrap ### Keywords: documentation test ### ** Examples #load the data set data(data_pltr) args.rpart <- list(minbucket = 40, maxdepth = 10, cp = 0) family <- "binomial" Y.name <- "Y" X.names <- "G...
library(colourpicker) library(wordcloud2) create_wordcloud <- function(data, num_words = 100, background = "white") { # If text is provided, convert it to a dataframe of word frequencies if (is.character(data)) { corpus <- Corpus(VectorSource(data)) corpus <- tm_map(corpus, tolower) ...
/shiny/wordcloud with text input.R
no_license
jyeazell/DataCamp_practice
R
false
false
1,749
r
library(colourpicker) library(wordcloud2) create_wordcloud <- function(data, num_words = 100, background = "white") { # If text is provided, convert it to a dataframe of word frequencies if (is.character(data)) { corpus <- Corpus(VectorSource(data)) corpus <- tm_map(corpus, tolower) ...
\name{diameter.linnet} \alias{circumradius.linnet} \alias{diameter.linnet} \title{ Circumradius and Diameter of a Linear Network } \description{ Compute the circumradius or diameter of a linear network measured using the shortest path distance. } \usage{ \method{circumradius}{linnet}(x, \dots) \method{diameter}{...
/man/diameter.linnet.Rd
no_license
chenjiaxun9/spatstat
R
false
false
1,370
rd
\name{diameter.linnet} \alias{circumradius.linnet} \alias{diameter.linnet} \title{ Circumradius and Diameter of a Linear Network } \description{ Compute the circumradius or diameter of a linear network measured using the shortest path distance. } \usage{ \method{circumradius}{linnet}(x, \dots) \method{diameter}{...
#Loading all libraries packages <- c("caret", "data.table", "ggplot2") suppressPackageStartupMessages(invisible(lapply(packages, library, character.only = TRUE))) #Importing Dataset dataset <- fread("Automobile_data.csv") head(dataset) #Converting all missing values to NA dataset[dataset == "?"] <- NA head(dataset) ...
/price.R
no_license
arshharkial/Automobile
R
false
false
3,907
r
#Loading all libraries packages <- c("caret", "data.table", "ggplot2") suppressPackageStartupMessages(invisible(lapply(packages, library, character.only = TRUE))) #Importing Dataset dataset <- fread("Automobile_data.csv") head(dataset) #Converting all missing values to NA dataset[dataset == "?"] <- NA head(dataset) ...
\name{feature_selection} \alias{feature_selection} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Perform feature selection } \description{ Perform feature selection on the dataset. } \usage{ feature_selection(dataset, column.class, method = "rfe", functions, validation = "cv", repeats = 5, n...
/man/feature_selection.Rd
no_license
BioSystemsUM/specmine
R
false
false
2,047
rd
\name{feature_selection} \alias{feature_selection} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Perform feature selection } \description{ Perform feature selection on the dataset. } \usage{ feature_selection(dataset, column.class, method = "rfe", functions, validation = "cv", repeats = 5, n...
testlist <- list(lambda = numeric(0), logq = c(2.12196341385537e-314, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
/COMPoissonReg/inst/testfiles/qzicmp_cpp/libFuzzer_qzicmp_cpp/qzicmp_cpp_valgrind_files/1612729182-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
445
r
testlist <- list(lambda = numeric(0), logq = c(2.12196341385537e-314, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
library(readr) library(dplyr) annot <- read.delim("data/Biomart_EnsemblG94_GRCh38_p12_karyotype.txt", col.names = c("ensemblID", "chr", "start", "end", "band"), stringsAsFactors = F) annot <- annot[!duplicated(annot$ensemblID), ] conds <- c("luma", "healthy") n <- lapply(conds, function(cond){ c...
/1_getNetworkTables.R
no_license
ddiannae/luma
R
false
false
2,734
r
library(readr) library(dplyr) annot <- read.delim("data/Biomart_EnsemblG94_GRCh38_p12_karyotype.txt", col.names = c("ensemblID", "chr", "start", "end", "band"), stringsAsFactors = F) annot <- annot[!duplicated(annot$ensemblID), ] conds <- c("luma", "healthy") n <- lapply(conds, function(cond){ c...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/coin_history.R \name{coin_history} \alias{coin_history} \title{Get historical market data} \usage{ coin_history( coin_id, vs_currency = "usd", days, interval = NULL, max_attempts = 3 ) } \arguments{ \item{coin_id}{(character): ID of...
/man/coin_history.Rd
permissive
anoop-garg/geckor
R
false
true
3,068
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/coin_history.R \name{coin_history} \alias{coin_history} \title{Get historical market data} \usage{ coin_history( coin_id, vs_currency = "usd", days, interval = NULL, max_attempts = 3 ) } \arguments{ \item{coin_id}{(character): ID of...
# ALADYM Age length based dynamic model - version 12.3 # Authors: G. Lembo, I. Bitetto, M.T. Facchini, M.T. Spedicato 2018 # COISPA Tecnologia & Ricerca, Via dei Trulli 18/20 - (Bari), Italy # In case of use of the model, the Authors should be cited. # If you have any comments or suggestions please contact the follow...
/BEMTOOL-ver2.5-2018_0901/src/biol/bmtALADYM/ALADYM-ver12.3-2017_0501/gui/guicontrols/fisheryControls/deactivate_Pproduction_unused_params.r
no_license
gresci/BEMTOOL2.5
R
false
false
2,516
r
# ALADYM Age length based dynamic model - version 12.3 # Authors: G. Lembo, I. Bitetto, M.T. Facchini, M.T. Spedicato 2018 # COISPA Tecnologia & Ricerca, Via dei Trulli 18/20 - (Bari), Italy # In case of use of the model, the Authors should be cited. # If you have any comments or suggestions please contact the follow...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/analysisProb.R \name{analysisProb} \alias{analysisProb} \title{Calculate the Probability of an Observed p-value for a miRNA Family for a subset of RNAseq Genes} \usage{ analysisProb(mockAnalysisTable, analysisTable, miRNAFamily) } \arguments{...
/man/analysisProb.Rd
no_license
SRHilz/miRsift
R
false
true
1,422
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/analysisProb.R \name{analysisProb} \alias{analysisProb} \title{Calculate the Probability of an Observed p-value for a miRNA Family for a subset of RNAseq Genes} \usage{ analysisProb(mockAnalysisTable, analysisTable, miRNAFamily) } \arguments{...
unexpandURL <- function(twitter.text) { require('httr') api_key <- 'f5GJD0bch0Gna3xpEKvVKcDzW04rDUBM' api_endpoint <- 'http://api.unshorten.it?shortURL=' link <- paste0(api_endpoint, twitter.text,'&apiKey=', api_key) response <- GET(link) if (is.na(twitter.text)) { return("false") } else { url <- ...
/R/part18.R
no_license
jeffchang5/ISISTwitter
R
false
false
1,560
r
unexpandURL <- function(twitter.text) { require('httr') api_key <- 'f5GJD0bch0Gna3xpEKvVKcDzW04rDUBM' api_endpoint <- 'http://api.unshorten.it?shortURL=' link <- paste0(api_endpoint, twitter.text,'&apiKey=', api_key) response <- GET(link) if (is.na(twitter.text)) { return("false") } else { url <- ...
#Assignment1 R programming library(plyr) #load the dataset df <- read.csv("heights_weights_genders2.csv",header = TRUE) #1) #a:first 10 rows firstTenRows <- df[1:10,] #a:last 10 rows nrow <- nrow(df) lastTenRows <- df[(nrow-9):nrow,] #b:nrow and ncol nrow <- nrow(df) ncol <- ncol(df) #c:type of v...
/Data_Analytics/Assignment/Assignment1/Assignment1.R
no_license
Sean858/18_Fall
R
false
false
1,772
r
#Assignment1 R programming library(plyr) #load the dataset df <- read.csv("heights_weights_genders2.csv",header = TRUE) #1) #a:first 10 rows firstTenRows <- df[1:10,] #a:last 10 rows nrow <- nrow(df) lastTenRows <- df[(nrow-9):nrow,] #b:nrow and ncol nrow <- nrow(df) ncol <- ncol(df) #c:type of v...
#read data (is allready subsetted because of lack of space on vritual machine) library(readr) df <- read_delim("household_power_consumption_2007_02-01_untill_2007_02_02.txt", ";", escape_double = FALSE, col_types = cols(Date = col_date(format = ...
/plot1.R
no_license
sandravandebeld/ExData_Plotting1
R
false
false
1,523
r
#read data (is allready subsetted because of lack of space on vritual machine) library(readr) df <- read_delim("household_power_consumption_2007_02-01_untill_2007_02_02.txt", ";", escape_double = FALSE, col_types = cols(Date = col_date(format = ...
write("Hello, World!","")
/spec/assets/hello.r
permissive
hakatashi/esolang-box
R
false
false
26
r
write("Hello, World!","")
#Loading necessary libraries and Setting Working Directory library(data.table) setwd("C:/Users/anupam.acharya/DataScience/4. Exploratory Data Analysis/Week 1 assignment/") #Reading all data from the text file and setting the date format alldata <- fread("./Household Power Consumption/household_power_consumption.t...
/Exploratory_Data_Analysis/Week 1 Assignment/plot1.R
no_license
acharyaanupam17/datasciencecoursera
R
false
false
778
r
#Loading necessary libraries and Setting Working Directory library(data.table) setwd("C:/Users/anupam.acharya/DataScience/4. Exploratory Data Analysis/Week 1 assignment/") #Reading all data from the text file and setting the date format alldata <- fread("./Household Power Consumption/household_power_consumption.t...
#basic data seq<-NULL r<-c("A","T","C","G","-") st<-matrix(c(0.25,0.25,0.25,0.25,0),nrow = 1,ncol = 5) pro<-matrix(c(0.25,0.2,0.2,0.2,0.15,0.2,0.25,0.2,0.2,0.15,0.2,0.2,0.25,0.2,0.15,0.2,0.2,0.2,0.25,0.15,0,0,0,0,0),nrow = 5,ncol = 5,byrow = T) #first letter let1<-function(){ le1<-sample(x=r,size = 1,repla...
/random seq.R
no_license
lightbluue/random-sequence-
R
false
false
1,521
r
#basic data seq<-NULL r<-c("A","T","C","G","-") st<-matrix(c(0.25,0.25,0.25,0.25,0),nrow = 1,ncol = 5) pro<-matrix(c(0.25,0.2,0.2,0.2,0.15,0.2,0.25,0.2,0.2,0.15,0.2,0.2,0.25,0.2,0.15,0.2,0.2,0.2,0.25,0.15,0,0,0,0,0),nrow = 5,ncol = 5,byrow = T) #first letter let1<-function(){ le1<-sample(x=r,size = 1,repla...
% Generated by roxygen2 (4.0.1): do not edit by hand \name{togeojson_create_gist} \alias{togeojson_create_gist} \title{Function that takes a list of files and creates payload for API} \usage{ togeojson_create_gist(filenames, description = "", public = TRUE) } \arguments{ \item{filenames}{names of files to post} \item{...
/man/togeojson_create_gist.Rd
permissive
landsurveyorsunited/togeojson-1
R
false
false
531
rd
% Generated by roxygen2 (4.0.1): do not edit by hand \name{togeojson_create_gist} \alias{togeojson_create_gist} \title{Function that takes a list of files and creates payload for API} \usage{ togeojson_create_gist(filenames, description = "", public = TRUE) } \arguments{ \item{filenames}{names of files to post} \item{...
### Explorary Graph - Assignment 1 ### Create graph 1 and save as plot1.png ### Fendy Huang ####read data after download to local dir data<-read.table("./household_power_consumption.txt", sep=";", header = TRUE, na.strings = "?") ### convert date factor to Date class data$Date<-as.Date(data$Date, format = "%d/%m/%Y") ...
/plot3.R
no_license
Fendy1999/ExData_Plotting1
R
false
false
1,116
r
### Explorary Graph - Assignment 1 ### Create graph 1 and save as plot1.png ### Fendy Huang ####read data after download to local dir data<-read.table("./household_power_consumption.txt", sep=";", header = TRUE, na.strings = "?") ### convert date factor to Date class data$Date<-as.Date(data$Date, format = "%d/%m/%Y") ...
context("ezvolcano") test_that("non-vdiffr", { set.seed(0) ezvol <- ezvolcano(tab=res.df, comparison = "First3", name=NA, ntop.sig = 1, ntop.lfc = 1, cut.lfc=1, cut.sig=0.01, cut.color = "green", ann.rnames=c("gene1", "gene25"), plot = FALSE) #Validating the location of the specific point ...
/tests/testthat/test-ezvolcano.R
permissive
jdreyf/ezlimmaplot
R
false
false
9,735
r
context("ezvolcano") test_that("non-vdiffr", { set.seed(0) ezvol <- ezvolcano(tab=res.df, comparison = "First3", name=NA, ntop.sig = 1, ntop.lfc = 1, cut.lfc=1, cut.sig=0.01, cut.color = "green", ann.rnames=c("gene1", "gene25"), plot = FALSE) #Validating the location of the specific point ...
# gbm{gbm} # generalized boosting algorithm # can alter number ot trees in intial fit # also alter interaction depth (SL.gbm.1 and SL.gbm.2) SL.gbm <- function(Y, X, newX, family, obsWeights, gbm.trees = 10000, interaction.depth = 2, shrinkage = 0.001, bag.fraction = 0.5, cv.folds = 5, n.minobsinnode = 10, n.cores = NU...
/R/SL.gbm.R
no_license
ecpolley/SuperLearner
R
false
false
1,618
r
# gbm{gbm} # generalized boosting algorithm # can alter number ot trees in intial fit # also alter interaction depth (SL.gbm.1 and SL.gbm.2) SL.gbm <- function(Y, X, newX, family, obsWeights, gbm.trees = 10000, interaction.depth = 2, shrinkage = 0.001, bag.fraction = 0.5, cv.folds = 5, n.minobsinnode = 10, n.cores = NU...
#R code to reproduce FIgure 7 in the inla manual smooth=read.table("results-0/smoother/summary.dat") deriv=smooth[513:1024,] xx=deriv[,2] split.screen( rbind(c(0,1,0.3,1), c(0,1,0,0.3))) screen(1) par( mar=c(2,2,2,2), oma=c(3,3,2,3) ) plot(xx[,2],type="l",ylab="",xlab="",xaxs="i") screen(2) par( mar=c(2,2,2,2), om...
/inlaprog/examples/4_MULTISCALE-ANALYSIS/plots.R
no_license
HughParsonage/R-INLA-mirror
R
false
false
385
r
#R code to reproduce FIgure 7 in the inla manual smooth=read.table("results-0/smoother/summary.dat") deriv=smooth[513:1024,] xx=deriv[,2] split.screen( rbind(c(0,1,0.3,1), c(0,1,0,0.3))) screen(1) par( mar=c(2,2,2,2), oma=c(3,3,2,3) ) plot(xx[,2],type="l",ylab="",xlab="",xaxs="i") screen(2) par( mar=c(2,2,2,2), om...
################################# ########## Lecture 1 ############ ################################# ### Basics ### 2 + 2 1:40 x <- 2 + 2 y <- 6 * 3 x/y ### Vectors ### x <- c(1, 10, 8) x class(x) x <- c("Hi", "there") x class(x) rep(1, times = 3) # Repeat 1 three times seq(2, 4) # Create a sequence from 2 to 4 ...
/Lecture_1(Intro to R prog).R
no_license
magan6/R-course-statisticians
R
false
false
2,104
r
################################# ########## Lecture 1 ############ ################################# ### Basics ### 2 + 2 1:40 x <- 2 + 2 y <- 6 * 3 x/y ### Vectors ### x <- c(1, 10, 8) x class(x) x <- c("Hi", "there") x class(x) rep(1, times = 3) # Repeat 1 three times seq(2, 4) # Create a sequence from 2 to 4 ...
library(shiny) library(ggplot2) shinyUI(bootstrapPage( div(style="text-align:center",h3("리소스 타입 별 Usage Data간의 상관 관계 분석")), plotOutput("corplot"), div(style="text-align:center",h3("Usage Data 분포 요약")), div(class="row-fluid",div(class="span6",plotOutput("radarchart")),div(class="span6",plotOutput("boxplot"))) ...
/rstatus_summary/ui.R
no_license
starwinds/rscript
R
false
false
482
r
library(shiny) library(ggplot2) shinyUI(bootstrapPage( div(style="text-align:center",h3("리소스 타입 별 Usage Data간의 상관 관계 분석")), plotOutput("corplot"), div(style="text-align:center",h3("Usage Data 분포 요약")), div(class="row-fluid",div(class="span6",plotOutput("radarchart")),div(class="span6",plotOutput("boxplot"))) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/generation_gap.R \name{generation_gap} \alias{generation_gap} \title{Replace a proportion G of the old generation with their offspring.} \usage{ generation_gap(old_gen, children, G = 1) } \arguments{ \item{old_gen}{Output of ranked_models() o...
/man/generation_gap.Rd
no_license
Shixindatiancai/GA
R
false
true
704
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/generation_gap.R \name{generation_gap} \alias{generation_gap} \title{Replace a proportion G of the old generation with their offspring.} \usage{ generation_gap(old_gen, children, G = 1) } \arguments{ \item{old_gen}{Output of ranked_models() o...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/se_estimates_naive.R \name{naive_se} \alias{naive_se} \title{Naive standard error estimates} \usage{ naive_se(setting = "GLM", Y = NULL, X = NULL, K = NULL, L = NULL, C = NULL) } \arguments{ \item{setting}{String with value \code{...
/man/naive_se.Rd
no_license
cran/CIEE
R
false
true
2,719
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/se_estimates_naive.R \name{naive_se} \alias{naive_se} \title{Naive standard error estimates} \usage{ naive_se(setting = "GLM", Y = NULL, X = NULL, K = NULL, L = NULL, C = NULL) } \arguments{ \item{setting}{String with value \code{...
1f87a9c35740fbefc6a4ce28e23441d2 mult_bool_matrix_12_11_11.sat.qdimacs 22303 65742
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1+A1/Database/Tentrup/mult-matrix/mult_bool_matrix_12_11_11.sat/mult_bool_matrix_12_11_11.sat.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
82
r
1f87a9c35740fbefc6a4ce28e23441d2 mult_bool_matrix_12_11_11.sat.qdimacs 22303 65742
## # Test out the var() functionality # If H2O dataset x, get back square data frame with dimension ncol(x) # If NAs in the frame, they are skipped in calculation unless na.rm = F # If any categorical columns, throw an error ## setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source('../../h2o-ru...
/h2o-r/tests/testdir_munging/unop/runit_sdev.R
permissive
mrgloom/h2o-3
R
false
false
1,050
r
## # Test out the var() functionality # If H2O dataset x, get back square data frame with dimension ncol(x) # If NAs in the frame, they are skipped in calculation unless na.rm = F # If any categorical columns, throw an error ## setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source('../../h2o-ru...
#42364 T <- 1000 k1 <- 0.006998 k2 <- 0.0188728493 k_true <- c(k1*rep(1,T/2), k2*rep(1,T/2)) c_true <- c(2.90238432*rep(1,T/2), 2.90238432*rep(1,T/2) + (k1-k2)*(T/2+1)) t <- seq(1,T) y_true <- k_true*t + c_true y_noisy <- y_true + rnorm(T)*0.1 k_hat <- rep(0,T...
/R/Q42364/Q42364.R
permissive
kootsoop/DSP.SE
R
false
false
936
r
#42364 T <- 1000 k1 <- 0.006998 k2 <- 0.0188728493 k_true <- c(k1*rep(1,T/2), k2*rep(1,T/2)) c_true <- c(2.90238432*rep(1,T/2), 2.90238432*rep(1,T/2) + (k1-k2)*(T/2+1)) t <- seq(1,T) y_true <- k_true*t + c_true y_noisy <- y_true + rnorm(T)*0.1 k_hat <- rep(0,T...
context("ts programs") con <- ba_db()$testserver test_that("Programs are present", { res <- ba_programs(con = con) expect_true( nrow(res) >= 6 ) }) test_that("Programs output formats work", { res <- ba_programs(con = con, rclass = "json") expect_that("json" %in% class(res), is_true()) })
/tests/testserver/test_ts_programs.R
no_license
khaled-alshamaa/brapi
R
false
false
304
r
context("ts programs") con <- ba_db()$testserver test_that("Programs are present", { res <- ba_programs(con = con) expect_true( nrow(res) >= 6 ) }) test_that("Programs output formats work", { res <- ba_programs(con = con, rclass = "json") expect_that("json" %in% class(res), is_true()) })
{############################################################################### # base.patterns.R # This file is part of the R package lint. # # Copyright 2012 Andrew Redd # Date: 7/30/2012 # # DESCRIPTION # =========== # Base Patterns for building off. # # LICENSE # ======== # lint is free software: you can redis...
/lint/R/base.patterns.R
no_license
ingted/R-Examples
R
false
false
3,359
r
{############################################################################### # base.patterns.R # This file is part of the R package lint. # # Copyright 2012 Andrew Redd # Date: 7/30/2012 # # DESCRIPTION # =========== # Base Patterns for building off. # # LICENSE # ======== # lint is free software: you can redis...
# 程序说明:欠采样建模函数集群 # 时间:2016.5.25 RemoveSmallVar <- function(preData, pct=1.0/3){ # 函数说明:滤除预处理后数据方差较小的位点 # # Args: # preData:数据 # pct:滤除数据所占百分比 # # Return: # varPreData:滤除方差较小位点后的数据 var.data <- apply(preData,1,var) #var.data <- unlist(var.data) newvar <- var.data[!(names(var.data) %in% c("ta...
/DMRsData_model_v2.R
no_license
sawyer619/code_DMRs
R
false
false
11,883
r
# 程序说明:欠采样建模函数集群 # 时间:2016.5.25 RemoveSmallVar <- function(preData, pct=1.0/3){ # 函数说明:滤除预处理后数据方差较小的位点 # # Args: # preData:数据 # pct:滤除数据所占百分比 # # Return: # varPreData:滤除方差较小位点后的数据 var.data <- apply(preData,1,var) #var.data <- unlist(var.data) newvar <- var.data[!(names(var.data) %in% c("ta...
# Hannah Lee # Madison Smith # Justin Chang # Zale de Jong # Section AF - Team 2 # Final Project # server file source("SourceCode.R") server <- function(input, output) { # reactive element that changes the data set everytime the widgets are changed d <- reactive({ current.unit <- rlang::sym(input$unit) #...
/server.R
no_license
MadisonCSmith/INFO201_FinalProject
R
false
false
6,728
r
# Hannah Lee # Madison Smith # Justin Chang # Zale de Jong # Section AF - Team 2 # Final Project # server file source("SourceCode.R") server <- function(input, output) { # reactive element that changes the data set everytime the widgets are changed d <- reactive({ current.unit <- rlang::sym(input$unit) #...
testlist <- list(m = NULL, repetitions = -1454859615L, in_m = structure(c(3.18612391054606e-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/1615841152-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
246
r
testlist <- list(m = NULL, repetitions = -1454859615L, in_m = structure(c(3.18612391054606e-241, 1.97274569258757e-154), .Dim = 2:1)) result <- do.call(CNull:::communities_individual_based_sampling_beta_interleaved_matrices,testlist) str(result)
install.packages("ggplot2") library(ggplot2) #The concept behind ggplot2 divides plot into three different fundamental parts: Plot = data + Aesthetics + Geometry. #the principal components of every plot can be defined as follow: #data is a data frame #Aesthetics is used to indicate x and y variables. It ...
/week 7 Info Viz/viz-inclass-7.R
no_license
jashmehta89/IST-687-Applied-Data-Science-LabWork
R
false
false
7,392
r
install.packages("ggplot2") library(ggplot2) #The concept behind ggplot2 divides plot into three different fundamental parts: Plot = data + Aesthetics + Geometry. #the principal components of every plot can be defined as follow: #data is a data frame #Aesthetics is used to indicate x and y variables. It ...
#' Correlation network calculation of microbial community data #' #' @param ps phyloseq Object, contains OTU tables, tax table and map table, represented sequences,phylogenetic tree. #' @param N filter OTU tables by abundance.The defult, N=0.02, extract the top 0.02 relative abundance of OTU. #' @param r.threshold The ...
/R/corMicro.R
no_license
AnnaChen-Beijing/ggClusterNet
R
false
false
4,095
r
#' Correlation network calculation of microbial community data #' #' @param ps phyloseq Object, contains OTU tables, tax table and map table, represented sequences,phylogenetic tree. #' @param N filter OTU tables by abundance.The defult, N=0.02, extract the top 0.02 relative abundance of OTU. #' @param r.threshold The ...
setwd("/Users/nikaz/Desktop") #Import snp frequency file (should be species specific) snp_freqs = read.table(file = "SFS_plots/snps_freqs/snps_ref_freq_macleodii.txt", as.is = T, header = T) #Delete unnecessary column snp_freqs = subset(snp_freqs, select = -(site_id)) ## SFS Plot per Sample ## prep_snps = function(...
/TARA_scripts/SFS.R
no_license
alkaZeltser/garud_lab
R
false
false
4,450
r
setwd("/Users/nikaz/Desktop") #Import snp frequency file (should be species specific) snp_freqs = read.table(file = "SFS_plots/snps_freqs/snps_ref_freq_macleodii.txt", as.is = T, header = T) #Delete unnecessary column snp_freqs = subset(snp_freqs, select = -(site_id)) ## SFS Plot per Sample ## prep_snps = function(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/scidbutil.R \name{isLeapYear} \alias{isLeapYear} \title{Test for leap year} \usage{ isLeapYear(year) } \arguments{ \item{year}{Numeric year} } \value{ TRUE is the year is leap, FALSE otherwise } \description{ DEPRECATED. Is the given year is ...
/man/isLeapYear.Rd
permissive
albhasan/scidbutil
R
false
true
388
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/scidbutil.R \name{isLeapYear} \alias{isLeapYear} \title{Test for leap year} \usage{ isLeapYear(year) } \arguments{ \item{year}{Numeric year} } \value{ TRUE is the year is leap, FALSE otherwise } \description{ DEPRECATED. Is the given year is ...
# Clear memory rm(list = ls()) fft_dit = function(X, inverse = FALSE) { N = length(X) if (N <= 1) { return(X) } else { if (log2(N) != trunc(log2(N))) stop("Number of obs is not a power of 2") even = fft_dit(X[seq(1, length(X), by = 2)], inverse = inverse) odd =...
/NIC_FFTAlogrithm/NIC_FFTAlgorithm.R
no_license
MichaelAlthof/NIC_class_2015
R
false
false
660
r
# Clear memory rm(list = ls()) fft_dit = function(X, inverse = FALSE) { N = length(X) if (N <= 1) { return(X) } else { if (log2(N) != trunc(log2(N))) stop("Number of obs is not a power of 2") even = fft_dit(X[seq(1, length(X), by = 2)], inverse = inverse) odd =...
#fix what's one the menu ordering csvPath = "F:\\myProjects\\cmps121\\Interim Presentations - Thursday (Responses) - Form Responses 1.csv" outputPath = "F:\\myProjects\\cmps121\\interim-thursday-attendance.csv" csvPath = "F:\\myProjects\\cmps121\\Interim Presentations - Tuesday (Responses) - Form Responses 1.csv" out...
/attendance.R
no_license
adhocmaster/cmps121
R
false
false
1,326
r
#fix what's one the menu ordering csvPath = "F:\\myProjects\\cmps121\\Interim Presentations - Thursday (Responses) - Form Responses 1.csv" outputPath = "F:\\myProjects\\cmps121\\interim-thursday-attendance.csv" csvPath = "F:\\myProjects\\cmps121\\Interim Presentations - Tuesday (Responses) - Form Responses 1.csv" out...
#' pairwiseTable #' #' pairwiseTable provides a table explicating all pairwise comparisons made, along with their pairwise number found in the multGroup function. #' #' @param levels A Vector of levels to use for the pairwise table #' @param printOutput If TRUE, pairwise table will be printed to a word document #' @par...
/R/pairwiseTable.R
no_license
TaylorAndrew/atPostAnalyze
R
false
false
3,550
r
#' pairwiseTable #' #' pairwiseTable provides a table explicating all pairwise comparisons made, along with their pairwise number found in the multGroup function. #' #' @param levels A Vector of levels to use for the pairwise table #' @param printOutput If TRUE, pairwise table will be printed to a word document #' @par...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.servicediscovery_operations.R \name{delete_namespace} \alias{delete_namespace} \title{Deletes a namespace from the current account} \usage{ delete_namespace(Id) } \arguments{ \item{Id}{[required] The ID of the namespace that you want to ...
/service/paws.servicediscovery/man/delete_namespace.Rd
permissive
CR-Mercado/paws
R
false
true
552
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.servicediscovery_operations.R \name{delete_namespace} \alias{delete_namespace} \title{Deletes a namespace from the current account} \usage{ delete_namespace(Id) } \arguments{ \item{Id}{[required] The ID of the namespace that you want to ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/class-pred.R \name{class_pred} \alias{class_pred} \title{Create a class prediction object} \usage{ class_pred(x = factor(), which = integer(), equivocal = "[EQ]") } \arguments{ \item{x}{A factor or ordered factor.} \item{which}{An integer ve...
/man/class_pred.Rd
permissive
tidymodels/probably
R
false
true
1,123
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/class-pred.R \name{class_pred} \alias{class_pred} \title{Create a class prediction object} \usage{ class_pred(x = factor(), which = integer(), equivocal = "[EQ]") } \arguments{ \item{x}{A factor or ordered factor.} \item{which}{An integer ve...
/6 mediana, quartis e percentis.R
no_license
arielgustavoletti/R_Enbio
R
false
false
1,063
r
\name{inpboxlist} \alias{inpboxlist} \title{Input Box with a list box} \description{Input box for multiple selection among many possibilities} \usage{inpboxlist(vnames, ltitle)} \arguments{ \item{vnames }{character vector with the text label of the box} \item{ltitle }{title of the vector} } \details{See example for...
/man/inpboxlist.Rd
no_license
polgia0/Menucollection
R
false
false
780
rd
\name{inpboxlist} \alias{inpboxlist} \title{Input Box with a list box} \description{Input box for multiple selection among many possibilities} \usage{inpboxlist(vnames, ltitle)} \arguments{ \item{vnames }{character vector with the text label of the box} \item{ltitle }{title of the vector} } \details{See example for...
# ********************************* # CRUZADAS PARA ENSAMBLADO DEPENDIENTE CONTINUA # ********************************* # VALIDACIÓN CRUZADA REPETIDA Y BOXPLOT para # # LOGISTICA # AVNNET # RF # GBM # XGBM # SVM # ********************************* library(plyr) detach(package:plyr) library(dummies) libr...
/Modelos/cruzadas ensamblado continuas fuente.R
no_license
crisng4/TFM
R
false
false
15,503
r
# ********************************* # CRUZADAS PARA ENSAMBLADO DEPENDIENTE CONTINUA # ********************************* # VALIDACIÓN CRUZADA REPETIDA Y BOXPLOT para # # LOGISTICA # AVNNET # RF # GBM # XGBM # SVM # ********************************* library(plyr) detach(package:plyr) library(dummies) libr...
#' Fit Functional Concurrent Regression #' #' @description #' This function implements functional concurrent regression for sparse functional responses with both functional and scalar covariates. #' This function is a wrapper for mgcv's \code{\link{gam}}/\code{\link{bam}}. #' #' @param formula #' formula wil...
/R/fcr.R
no_license
cran/fcr
R
false
false
11,472
r
#' Fit Functional Concurrent Regression #' #' @description #' This function implements functional concurrent regression for sparse functional responses with both functional and scalar covariates. #' This function is a wrapper for mgcv's \code{\link{gam}}/\code{\link{bam}}. #' #' @param formula #' formula wil...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sim.swn.R \name{sim.swn} \alias{sim.swn} \title{Simulate Small-world Network} \usage{ sim.swn( nodes, n, pos = 0.8, ran = c(0.3, 0.7), nei = 1, p = 0.5, corr = FALSE, replace = NULL, ordinal = FALSE, ordLev...
/man/sim.swn.Rd
no_license
cran/NetworkToolbox
R
false
true
2,586
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sim.swn.R \name{sim.swn} \alias{sim.swn} \title{Simulate Small-world Network} \usage{ sim.swn( nodes, n, pos = 0.8, ran = c(0.3, 0.7), nei = 1, p = 0.5, corr = FALSE, replace = NULL, ordinal = FALSE, ordLev...
library(glmnet) mydata = read.table("./TrainingSet/AvgRank/stomach.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.65,family="gaussian",standardize=TRUE) sink('./Model/EN/AvgRank/stomach/stomach_071.txt',append=...
/Model/EN/AvgRank/stomach/stomach_071.R
no_license
leon1003/QSMART
R
false
false
355
r
library(glmnet) mydata = read.table("./TrainingSet/AvgRank/stomach.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.65,family="gaussian",standardize=TRUE) sink('./Model/EN/AvgRank/stomach/stomach_071.txt',append=...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/stockEvents.R \name{GetPercentageChangeEvents} \alias{GetPercentageChangeEvents} \title{Get events for percentage change} \usage{ GetPercentageChangeEvents(x, percentChange = -0.03) } \arguments{ \item{x}{A single column xts or matrix series ...
/man/GetPercentageChangeEvents.Rd
permissive
justinnafe/TechnicalEvents
R
false
true
982
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/stockEvents.R \name{GetPercentageChangeEvents} \alias{GetPercentageChangeEvents} \title{Get events for percentage change} \usage{ GetPercentageChangeEvents(x, percentChange = -0.03) } \arguments{ \item{x}{A single column xts or matrix series ...
getData <- function() { if(!file.exists("data")) { dir.create("data") } setwd("./data") downloadFile() dat <- loadData() fdat <- formatData(dat) sdata <- extractAndCleanData(fdat) setwd("../") return(sdata) } # Download file from the cloud downloadFile <- function() { destUrl <- "https://d396qu...
/exploratory-data-analysis/project1/src/loader.R
no_license
NabaSadiaSiddiqui/data-science
R
false
false
1,365
r
getData <- function() { if(!file.exists("data")) { dir.create("data") } setwd("./data") downloadFile() dat <- loadData() fdat <- formatData(dat) sdata <- extractAndCleanData(fdat) setwd("../") return(sdata) } # Download file from the cloud downloadFile <- function() { destUrl <- "https://d396qu...
################################################################################ # UTILITY FUNCTIONS ################################################################################ # These are functions copied over from my repository of utilities used # by this package. They are repeated here simply for portability, s...
/R/utility.R
no_license
gyd1990/LOLA
R
false
false
9,505
r
################################################################################ # UTILITY FUNCTIONS ################################################################################ # These are functions copied over from my repository of utilities used # by this package. They are repeated here simply for portability, s...
##Random walk with a drift set.seed(154) # so you can reproduce the results w = rnorm(200) x = cumsum(w) wd = w +.2 xd = cumsum(wd) tsplot(xd, ylim=c(-5,55), main="random walk", ylab='') abline(a=0, b=.2, lty=2) # drift lines(x, col=4) abline(h=0, col=4, lty=2)
/3.Simulating Random walk with drift.R
no_license
vik235/TimeSeries
R
false
false
267
r
##Random walk with a drift set.seed(154) # so you can reproduce the results w = rnorm(200) x = cumsum(w) wd = w +.2 xd = cumsum(wd) tsplot(xd, ylim=c(-5,55), main="random walk", ylab='') abline(a=0, b=.2, lty=2) # drift lines(x, col=4) abline(h=0, col=4, lty=2)
#!/usr/bin/env Rscript ######################## ### LOAD PACKAGES ### ######################## rm(list=ls()) library(optparse) library("edgeR") library("gplots") library("RColorBrewer") library("rtracklayer") ######################## ### PREPROCESSING ### ######################## option_list <- list( make_option...
/scripts/DE.R
no_license
fmi-basel/ggrosshans_analysis_dpf-3
R
false
false
4,993
r
#!/usr/bin/env Rscript ######################## ### LOAD PACKAGES ### ######################## rm(list=ls()) library(optparse) library("edgeR") library("gplots") library("RColorBrewer") library("rtracklayer") ######################## ### PREPROCESSING ### ######################## option_list <- list( make_option...
SCC.sub <- SCC[grepl("Coal" , SCC$Short.Name), ] NEI.sub <- NEI[NEI$SCC %in% SCC.sub$SCC, ] plot4 <- ggplot(NEI.sub, aes(x = factor(year), y = Emissions, fill =type)) + geom_bar(stat= "identity", width = .4) + xlab("year") +ylab("Coal-Related PM2.5 Emissions") + ggtitle("Total Coal-Related PM2.5 Emissions") print(pl...
/plot4.R
no_license
urvashibalani12/coursera-project2
R
false
false
324
r
SCC.sub <- SCC[grepl("Coal" , SCC$Short.Name), ] NEI.sub <- NEI[NEI$SCC %in% SCC.sub$SCC, ] plot4 <- ggplot(NEI.sub, aes(x = factor(year), y = Emissions, fill =type)) + geom_bar(stat= "identity", width = .4) + xlab("year") +ylab("Coal-Related PM2.5 Emissions") + ggtitle("Total Coal-Related PM2.5 Emissions") print(pl...
\name{gpHistPredict} \alias{gpHistPredict} %- Also NEED an '\alias' for EACH other topic documented here. \title{ gpHistPredict Function } \description{ This function is used to predict new sample means. For prediction of the variance the function gpHistVariance is used. This has been done intentially, to provide the ...
/man/gpHistPredict.Rd
no_license
cran/gpHist
R
false
false
1,957
rd
\name{gpHistPredict} \alias{gpHistPredict} %- Also NEED an '\alias' for EACH other topic documented here. \title{ gpHistPredict Function } \description{ This function is used to predict new sample means. For prediction of the variance the function gpHistVariance is used. This has been done intentially, to provide the ...
# demonstration of foward selection of variables. The model has 100 variables, but only the first # 5 variables are truly useful. # But we don't know this. # First we loop through all varaibles seeing which variable produces the smallest sse. This is our first variable # Then we loop through all *remaining* variabl...
/Data-Mining/regression/forward_selection.r
no_license
jaeyoung-jane-choi/2019_Indiana_University
R
false
false
1,557
r
# demonstration of foward selection of variables. The model has 100 variables, but only the first # 5 variables are truly useful. # But we don't know this. # First we loop through all varaibles seeing which variable produces the smallest sse. This is our first variable # Then we loop through all *remaining* variabl...
library(tidybayes) library(magrittr) library(dplyr) source("scripts/common/plot-settings.R") source("scripts/common/mcmc-util.R") source("scripts/surv-example/GLOBALS.R") set.seed(sim_seed) stage_two_event_times <- readRDS("rds/surv-example/stage-two-phi-12-samples.rds") event_time_names <- dimnames(stage_two_event_...
/scripts/surv-example/plot-event-time-shrinkage.R
no_license
hhau/melding-multiple-phi
R
false
false
1,999
r
library(tidybayes) library(magrittr) library(dplyr) source("scripts/common/plot-settings.R") source("scripts/common/mcmc-util.R") source("scripts/surv-example/GLOBALS.R") set.seed(sim_seed) stage_two_event_times <- readRDS("rds/surv-example/stage-two-phi-12-samples.rds") event_time_names <- dimnames(stage_two_event_...
predictTemp <- function(date,time,h_distance,h_date,h_time,point){ set.seed(1234567890) library(geosphere) library(ggplot2) library(reshape2) stations <- read.csv("stations.csv", fileEncoding = "latin1") temps <- read.csv("temps50k.csv", fileEncoding = "latin1") st <- merge(stations,temps,by="station_num...
/Machine Learning/ML/Lab 3/q1.R
no_license
jey07/LiU-2018-2019
R
false
false
3,028
r
predictTemp <- function(date,time,h_distance,h_date,h_time,point){ set.seed(1234567890) library(geosphere) library(ggplot2) library(reshape2) stations <- read.csv("stations.csv", fileEncoding = "latin1") temps <- read.csv("temps50k.csv", fileEncoding = "latin1") st <- merge(stations,temps,by="station_num...
library(ggplot2) library(coin) library(pwr) library(shiny) library(miniUI) library(boot) library(tidyr) library(irr) library(lazyeval) library(doBy) library(gtable) library(grid) library(scales) library(plyr) library(dplyr) library(bootES) library(extrafont) loadfonts() # Reporting the basic summary of a group report...
/firebase_version_with_original_folder_struct/analysis/analysis.R
no_license
visdesignlab/mvnv-study
R
false
false
10,513
r
library(ggplot2) library(coin) library(pwr) library(shiny) library(miniUI) library(boot) library(tidyr) library(irr) library(lazyeval) library(doBy) library(gtable) library(grid) library(scales) library(plyr) library(dplyr) library(bootES) library(extrafont) loadfonts() # Reporting the basic summary of a group report...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/max_super_contr_base.R \docType{data} \name{max_super_contr_base} \alias{max_super_contr_base} \title{Maximum quarterly superannuation contribution base, by year} \format{A data frame of 25 observations and 2 columns \describe{ \item{fy_year}...
/man/max_super_contr_base.Rd
no_license
HughParsonage/taxstats
R
false
true
593
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/max_super_contr_base.R \docType{data} \name{max_super_contr_base} \alias{max_super_contr_base} \title{Maximum quarterly superannuation contribution base, by year} \format{A data frame of 25 observations and 2 columns \describe{ \item{fy_year}...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 14867 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 14867 c c Input Parameter (command line, file): c input filename QBFLIB/Tentrup/driver/driver_a8y.unsat.qdimacs c output filen...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Tentrup/driver/driver_a8y.unsat/driver_a8y.unsat.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
629
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 14867 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 14867 c c Input Parameter (command line, file): c input filename QBFLIB/Tentrup/driver/driver_a8y.unsat.qdimacs c output filen...
lib <- c("raster", "zoo", "ggplot2", "doParallel", "RColorBrewer", "rgeos", "Rsenal") sapply(lib, function(x) library(x, character.only = TRUE)) # monthly fire rasters fls_agg1m <- list.files("data/md14a1/low/aggregated", pattern = "^aggsum_md14a1", full.names = TRUE) rst_agg1m <- st...
/dfg_for_kilimanjaro/fire_ndvi/src/fire_enso_iod.R
no_license
environmentalinformatics-marburg/magic
R
false
false
7,121
r
lib <- c("raster", "zoo", "ggplot2", "doParallel", "RColorBrewer", "rgeos", "Rsenal") sapply(lib, function(x) library(x, character.only = TRUE)) # monthly fire rasters fls_agg1m <- list.files("data/md14a1/low/aggregated", pattern = "^aggsum_md14a1", full.names = TRUE) rst_agg1m <- st...
/Cálculo das Probabilidades/distribuicoes_de_probabilidade_discretas_poisson.R
no_license
brunatoloti/estatistica
R
false
false
963
r
#' ALS fitting of ellipsoid #' #' Adjusted LS fitting of ellipsoids, by Kukush et al. 2003. #' #' @param x Point locations, n x d matrix #' @param s2 Error variance, or a vector over which to optimize. #' @param ... ignored #' @param just_U For internal use: Return just smallest eigenvector and bhat. #' #' @details ...
/R/from_ellipsoid_ALS.R
no_license
antiphon/Kdirectional
R
false
false
2,523
r
#' ALS fitting of ellipsoid #' #' Adjusted LS fitting of ellipsoids, by Kukush et al. 2003. #' #' @param x Point locations, n x d matrix #' @param s2 Error variance, or a vector over which to optimize. #' @param ... ignored #' @param just_U For internal use: Return just smallest eigenvector and bhat. #' #' @details ...
##################################################################################### #This script reads from different directories .STATS and .mismatches files, one of each #per base-caller. In total, 8 files should be in each given directory ############################################################################...
/scripts/levelplots.R
no_license
novoalab/Best_Practices_dRNAseq_analysis
R
false
false
6,555
r
##################################################################################### #This script reads from different directories .STATS and .mismatches files, one of each #per base-caller. In total, 8 files should be in each given directory ############################################################################...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(0, 3.20421481716436e+178, 0, 0, 0, 0, 0, 0, 0), .Dim = c(1L, 9L))) 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/1615840080-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
243
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(0, 3.20421481716436e+178, 0, 0, 0, 0, 0, 0, 0), .Dim = c(1L, 9L))) result <- do.call(CNull:::communities_individual_based_sampling_beta_interleaved_matrices,testlist) str(result)
# Para resetear el estado rm(list=ls()) gc() #Para fijar el directorio de trabajo #setwd("C:\\Users\\cmatamoros\\OneDrive - Ministerio de Tecnologías de la Información y las Comunicaciones\\Gov Co\\Datos Integración\\2019-06-25") #Corre la lectura de datos abiertos #source("Pruebas.r") library(shiny) ...
/PivotTable.R
no_license
caromatamoros/GOVCO
R
false
false
4,692
r
# Para resetear el estado rm(list=ls()) gc() #Para fijar el directorio de trabajo #setwd("C:\\Users\\cmatamoros\\OneDrive - Ministerio de Tecnologías de la Información y las Comunicaciones\\Gov Co\\Datos Integración\\2019-06-25") #Corre la lectura de datos abiertos #source("Pruebas.r") library(shiny) ...
ReadScatter=function(Filename,Dir){ V1=ReadCLS(Filename,Dir) V2=ReadLRN(Filename,Dir) if(isFALSE(TheSameKey(V1$Key,V2$ClsKey))) return(NULL) Data=V2$Data return(cbind(Cls=V1$Cls,Data)) }
/R/ReadScatter.R
no_license
Mthrun/dbt.FlowCytometry
R
false
false
202
r
ReadScatter=function(Filename,Dir){ V1=ReadCLS(Filename,Dir) V2=ReadLRN(Filename,Dir) if(isFALSE(TheSameKey(V1$Key,V2$ClsKey))) return(NULL) Data=V2$Data return(cbind(Cls=V1$Cls,Data)) }