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
#Percentile Using R readlines rm(list = ls()) library(parallel) breaks = 500 b = c(0, 587.79) file2 = sapply(1:12, function(i) paste0("/home/data/NYCTaxis/trip_fare_", i, ".csv")) y = c(10,11) gethistR = function(f, bound, num, index){ width = (bound[2]- bound[1])/num con = file(f , 'r') result = rep(0,num) lin...
/Assignment5/run/PercentileRonly.R
no_license
mokiss/sxshao
R
false
false
1,183
r
#Percentile Using R readlines rm(list = ls()) library(parallel) breaks = 500 b = c(0, 587.79) file2 = sapply(1:12, function(i) paste0("/home/data/NYCTaxis/trip_fare_", i, ".csv")) y = c(10,11) gethistR = function(f, bound, num, index){ width = (bound[2]- bound[1])/num con = file(f , 'r') result = rep(0,num) lin...
mcmcgg <- function(Model, Data, Iterations, Status, Thinning, Specs, Acceptance, Dev, DiagCovar, LIV, Mon, Mo0, ScaleF, thinned, Debug, LogFile, MaxWalltime=Inf) { time1 <- proc.time()["elapsed"] Grid <- Specs[["Grid"]] dparm <- Specs[["dparm"]] CPUs <- Specs[["CPUs"]] ...
/R/mcmcgg.R
no_license
taranu/LaplacesDemon
R
false
false
3,115
r
mcmcgg <- function(Model, Data, Iterations, Status, Thinning, Specs, Acceptance, Dev, DiagCovar, LIV, Mon, Mo0, ScaleF, thinned, Debug, LogFile, MaxWalltime=Inf) { time1 <- proc.time()["elapsed"] Grid <- Specs[["Grid"]] dparm <- Specs[["dparm"]] CPUs <- Specs[["CPUs"]] ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cfS_Triangular.R \name{cfS_Triangular} \alias{cfS_Triangular} \title{Characteristic function of Triangular distribution} \usage{ cfX_Triangular(t, a) } \arguments{ \item{t}{numerical values (number, vector...)} \item{a}{number, a > 0, defaul...
/man/cfS_Triangular.Rd
no_license
witkovsky/CharFun
R
false
true
2,958
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cfS_Triangular.R \name{cfS_Triangular} \alias{cfS_Triangular} \title{Characteristic function of Triangular distribution} \usage{ cfX_Triangular(t, a) } \arguments{ \item{t}{numerical values (number, vector...)} \item{a}{number, a > 0, defaul...
# Input Annotation JSON list, output Annotation Table with 3 columns "id", "item" and "categoryId". If a outFile name is given, the function will save the table into a RData file. GetAnnotationTable <- function(annot.json, outFile=NA){ # parse annotation json id <- as.character(sapply(annot.json, function(x) x$id)...
/annotation/GetAnnotationTable.r
no_license
ZhenyuZ/eqtl
R
false
false
688
r
# Input Annotation JSON list, output Annotation Table with 3 columns "id", "item" and "categoryId". If a outFile name is given, the function will save the table into a RData file. GetAnnotationTable <- function(annot.json, outFile=NA){ # parse annotation json id <- as.character(sapply(annot.json, function(x) x$id)...
# Libraries installieren install.packages("tidyverse") install.packages("lubridate") install.packages("psych") install.packages("esquisse") install.packages("ggthemes") <<<<<<< HEAD install.packages("ggplot2") ======= >>>>>>> aba99ef36fe6937125cf36ca95e381eb2fc8dfcc install.packages("devtools") library(devtools) dev...
/install_libraries.R
no_license
Sumidu/DemoProjekt2018
R
false
false
431
r
# Libraries installieren install.packages("tidyverse") install.packages("lubridate") install.packages("psych") install.packages("esquisse") install.packages("ggthemes") <<<<<<< HEAD install.packages("ggplot2") ======= >>>>>>> aba99ef36fe6937125cf36ca95e381eb2fc8dfcc install.packages("devtools") library(devtools) dev...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.24078746456779e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L))) result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist) st...
/CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615784038-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
329
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.24078746456779e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L))) result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist) st...
# check score labels. check.score = function(score, data, allowed = available.scores) { # check which type of data we are dealing with. type = data.type(data) if (!is.null(score)) { # check the score label. check.label(score, choices = allowed, labels = score.labels, argname = "score", see = "bn...
/ombFast/R/sanitization-scores.R
no_license
kanyulongkkk/KtreeBN
R
false
false
10,868
r
# check score labels. check.score = function(score, data, allowed = available.scores) { # check which type of data we are dealing with. type = data.type(data) if (!is.null(score)) { # check the score label. check.label(score, choices = allowed, labels = score.labels, argname = "score", see = "bn...
### # File name : FindTFofRegion3.R # Author : Hyunjin Kim # Date : May 11, 2018 # Email : hk2990@cumc.columbia.edu # Purpose : Find TF candidates that may be bound in regions of interest # # Instruction # 1. Source("FindTFofRegion3.R") # 2. Run the function "findTF...
/codes/FindTFofRegion3.R
no_license
hjkim88/TF_Footprinting
R
false
false
5,381
r
### # File name : FindTFofRegion3.R # Author : Hyunjin Kim # Date : May 11, 2018 # Email : hk2990@cumc.columbia.edu # Purpose : Find TF candidates that may be bound in regions of interest # # Instruction # 1. Source("FindTFofRegion3.R") # 2. Run the function "findTF...
testlist <- list(cost = structure(c(1.44888560957826e+135, 1.6249392498385e+65, 5.27956628994611e-134, 1.56839475268612e-251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 5L)), flow = structure(c(3.80768289350145e+125, 8.58414828913381e+155, 3.37787969964034e+43, 2.83184518248624e-19...
/epiphy/inst/testfiles/costTotCPP/AFL_costTotCPP/costTotCPP_valgrind_files/1615926731-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
1,102
r
testlist <- list(cost = structure(c(1.44888560957826e+135, 1.6249392498385e+65, 5.27956628994611e-134, 1.56839475268612e-251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 5L)), flow = structure(c(3.80768289350145e+125, 8.58414828913381e+155, 3.37787969964034e+43, 2.83184518248624e-19...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/survdat_functions.R \name{stratprep} \alias{stratprep} \title{Prepare survey data for calculating stratified mean} \usage{ stratprep(survdat, areas, strat.col, area.col = "Area") } \arguments{ \item{survdat}{NEFSC survey data generate...
/Survdat/man/stratprep.Rd
no_license
slucey/RSurvey
R
false
false
1,010
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/survdat_functions.R \name{stratprep} \alias{stratprep} \title{Prepare survey data for calculating stratified mean} \usage{ stratprep(survdat, areas, strat.col, area.col = "Area") } \arguments{ \item{survdat}{NEFSC survey data generate...
setwd("../../analysis/tads") name= commandArgs(trailing=T)[1] outname= commandArgs(trailing=T)[2] df = data.frame(fread(name,blank.lines.skip=T)) #out = aggregate(contacts~chr+x1+x2,df,FUN=sum) out = aggregate(contacts~chr+x1+x2,df,FUN=median) write.table(out,outname,row.names=F,quote=F,sep='\t')
/arrowhead_tads/archive/sum_tad_counts_each_sample.r
no_license
bioinfx/cvdc_scripts
R
false
false
299
r
setwd("../../analysis/tads") name= commandArgs(trailing=T)[1] outname= commandArgs(trailing=T)[2] df = data.frame(fread(name,blank.lines.skip=T)) #out = aggregate(contacts~chr+x1+x2,df,FUN=sum) out = aggregate(contacts~chr+x1+x2,df,FUN=median) write.table(out,outname,row.names=F,quote=F,sep='\t')
# lec2_2.r # Vector, matrix calculation # transpose, determinant, inverse # calcualtion 2^3 4**3 7%%5 7%/%5 # matrix example (2*5) m1<-matrix(1:10, nrow=2) m1 # dimension of m1 dim(m1) m2<-matrix(1:6, ncol=3) m2 dim(m2) # transpose of m2 tm2<-t(m2) tm2 # determinant of matrix, d1<-m...
/lec2_2.R
no_license
SeobinYun/2021_RforDataScience
R
false
false
906
r
# lec2_2.r # Vector, matrix calculation # transpose, determinant, inverse # calcualtion 2^3 4**3 7%%5 7%/%5 # matrix example (2*5) m1<-matrix(1:10, nrow=2) m1 # dimension of m1 dim(m1) m2<-matrix(1:6, ncol=3) m2 dim(m2) # transpose of m2 tm2<-t(m2) tm2 # determinant of matrix, d1<-m...
model.update3 <- function (piold, gamma, eps, y, yhat, predvar) { # Revised June 29, 2009: # Modified to regularize the posterior model probabilities away from zero # by adding eps to each one and renormalizing. # August 23, 2007. Update model posterior probabilities using # flattening. See C8338-9. # This will be...
/R/model.update3.R
no_license
hanase/dma
R
false
false
1,040
r
model.update3 <- function (piold, gamma, eps, y, yhat, predvar) { # Revised June 29, 2009: # Modified to regularize the posterior model probabilities away from zero # by adding eps to each one and renormalizing. # August 23, 2007. Update model posterior probabilities using # flattening. See C8338-9. # This will be...
library(oibiostat) library(openintro) data(COL) data('prevend') data("prevend.samp") lm = lm(RFFT ~ Age, data = prevend.samp) summary(lm) myPDF("prevendPredictionIntervalsSimpleRegression.pdf", 6, 3.3, mar = c(3, 4.5, 0.5, 1.2), mgp = c(2.8, 0.5, 0)) plot(prevend.samp$Age, prevend.samp$R...
/ch_simple_linear_regression_oi_biostat/figures/prevendPredictionIntervalsSimpleRegression/prevendPredictionIntervalsSimpleRegression.R
no_license
OI-Biostat/oi_biostat_text
R
false
false
1,176
r
library(oibiostat) library(openintro) data(COL) data('prevend') data("prevend.samp") lm = lm(RFFT ~ Age, data = prevend.samp) summary(lm) myPDF("prevendPredictionIntervalsSimpleRegression.pdf", 6, 3.3, mar = c(3, 4.5, 0.5, 1.2), mgp = c(2.8, 0.5, 0)) plot(prevend.samp$Age, prevend.samp$R...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dm_response_logistic.R \name{.summary_logit} \alias{.summary_logit} \title{summarize logistic regression model} \usage{ .summary_logit(logit.model, auc = T) } \arguments{ \item{logit.model}{logistic regression model} } \value{ list of 'coef' ...
/man/dot-summary_logit.Rd
permissive
xiaobo199405/dualmarker
R
false
true
450
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dm_response_logistic.R \name{.summary_logit} \alias{.summary_logit} \title{summarize logistic regression model} \usage{ .summary_logit(logit.model, auc = T) } \arguments{ \item{logit.model}{logistic regression model} } \value{ list of 'coef' ...
\name{observe_redds} \alias{observe_redds} %- Also NEED an '\alias' for EACH other topic documented here. \title{ observe_redds } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ observe_redds() } %- maybe also 'usage' for other objects documented here. \details{ %% ~~ If ...
/master/man/observe_redds.Rd
no_license
Ibasam/MetaIBASAM
R
false
false
1,612
rd
\name{observe_redds} \alias{observe_redds} %- Also NEED an '\alias' for EACH other topic documented here. \title{ observe_redds } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ observe_redds() } %- maybe also 'usage' for other objects documented here. \details{ %% ~~ If ...
#' Search for Multiple QTL model #' #' Scan for an additional QTL for function valued trait data set. Modified #' version of addqtl function in qtl package. #' #' #' @param cross An object of class \code{"cross"}. See \code{\link[qtl]{read.cross}} for details. #' @param pheno.cols Columns in the phenotype matrix to be ...
/R/addqtlF.R
no_license
ikwak2/funqtl
R
false
false
1,911
r
#' Search for Multiple QTL model #' #' Scan for an additional QTL for function valued trait data set. Modified #' version of addqtl function in qtl package. #' #' #' @param cross An object of class \code{"cross"}. See \code{\link[qtl]{read.cross}} for details. #' @param pheno.cols Columns in the phenotype matrix to be ...
# Automatically generated from the noweb directory pyears <- function(formula, data, weights, subset, na.action, rmap, ratetable, scale=365.25, expect=c('event', 'pyears'), model=FALSE, x=FALSE, y=FALSE, data.frame=FALSE) { expect <- match.arg(expect) Call <- match.call() ...
/R/pyears.R
no_license
datapython/survival
R
false
false
14,005
r
# Automatically generated from the noweb directory pyears <- function(formula, data, weights, subset, na.action, rmap, ratetable, scale=365.25, expect=c('event', 'pyears'), model=FALSE, x=FALSE, y=FALSE, data.frame=FALSE) { expect <- match.arg(expect) Call <- match.call() ...
#### Figures - Trait driver theory paper #### #### Libraries #### library(ggpubr) library(ggridges) library(ggfortify) library(corrplot) library(svglite) library(grid) library(gridExtra) library(maps) library(mapdata) library(grid) library(ggvegan) library(ggnewscale) library(gghighlight) library(merTools) library(pat...
/R/Figures_TDT_paper.R
no_license
RagnhildGya/SeedClim_Traits
R
false
false
37,315
r
#### Figures - Trait driver theory paper #### #### Libraries #### library(ggpubr) library(ggridges) library(ggfortify) library(corrplot) library(svglite) library(grid) library(gridExtra) library(maps) library(mapdata) library(grid) library(ggvegan) library(ggnewscale) library(gghighlight) library(merTools) library(pat...
## These two functions accept a matrix and stores it in the cache and holds ## it for when the cacheSolve function is called. The functions are also used ## to store the inverse of the matrix so R doesn't calculate it every time ## the inverse is needed. ## The makeCacheMatrix function creates a list of functions t...
/cachematrix.R
no_license
Jwash3/ProgrammingAssignment2
R
false
false
1,368
r
## These two functions accept a matrix and stores it in the cache and holds ## it for when the cacheSolve function is called. The functions are also used ## to store the inverse of the matrix so R doesn't calculate it every time ## the inverse is needed. ## The makeCacheMatrix function creates a list of functions t...
testlist <- list(hi = -6.67761414546024e+153, lo = -6.70390090561085e+153, mu = -7.64134455864315e-142, sig = NaN) result <- do.call(gjam:::tnormRcpp,testlist) str(result)
/gjam/inst/testfiles/tnormRcpp/libFuzzer_tnormRcpp/tnormRcpp_valgrind_files/1610044640-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
176
r
testlist <- list(hi = -6.67761414546024e+153, lo = -6.70390090561085e+153, mu = -7.64134455864315e-142, sig = NaN) result <- do.call(gjam:::tnormRcpp,testlist) str(result)
library(crank) ### Name: spsort ### Title: Simple partial sorting of a vector of elements. ### Aliases: spsort ### Keywords: misc ### ** Examples # Pedro's example Smaller<-c("ASD", "DFE", "ASD", "SDR", "EDF", "ASD") Larger<-c("SDR", "EDF", "KLM", "KLM", "SDR", "EDF") matComp<-cbind(Smaller,Larger) spsort(matC...
/data/genthat_extracted_code/crank/examples/spsort.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
825
r
library(crank) ### Name: spsort ### Title: Simple partial sorting of a vector of elements. ### Aliases: spsort ### Keywords: misc ### ** Examples # Pedro's example Smaller<-c("ASD", "DFE", "ASD", "SDR", "EDF", "ASD") Larger<-c("SDR", "EDF", "KLM", "KLM", "SDR", "EDF") matComp<-cbind(Smaller,Larger) spsort(matC...
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source('../../findNSourceUtils.R') test.GLM.offset <- function(conn) { Log.info("Importing lung.csv data...\n") lung.hex = h2o.uploadFile(conn, locate("smalldata/glm_test/lung.csv")) lung.hex$log_pop <- log(lung.hex$pop) lung.sum = summary(...
/R/tests/testdir_algos/glm/runit_GLM_offset.R
permissive
christianmatei/h2o
R
false
false
1,788
r
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source('../../findNSourceUtils.R') test.GLM.offset <- function(conn) { Log.info("Importing lung.csv data...\n") lung.hex = h2o.uploadFile(conn, locate("smalldata/glm_test/lung.csv")) lung.hex$log_pop <- log(lung.hex$pop) lung.sum = summary(...
#' Update mean library(tidyr) library(plotly) library(foreach) source('rl/bandit.R') set.seed(7) ## Experiment run_epsilon_greedy_decay <- function(m1, m2, m3, N) { bandits <- list(bandit(m=m1), bandit(m=m2), bandit(m=m3)) data <- vector("numeric", N) for(i in 1:N){ eps <- 1./i p <- runif(1) if(...
/rl/multi-armed-bandit/epsilon_greedy_decay.R
no_license
krzjoa/learning-R
R
false
false
1,169
r
#' Update mean library(tidyr) library(plotly) library(foreach) source('rl/bandit.R') set.seed(7) ## Experiment run_epsilon_greedy_decay <- function(m1, m2, m3, N) { bandits <- list(bandit(m=m1), bandit(m=m2), bandit(m=m3)) data <- vector("numeric", N) for(i in 1:N){ eps <- 1./i p <- runif(1) if(...
plot(res$llk,type='l',ylim=quantile(res$llk,c(0.01,1))) zestim=res$z[nrow(res$z),] k=data.frame(ztrue=z.true,zestim=zestim) k1=table(k); k1 ind.loc=numeric() for (i in 1:nrow(k1)){ tmp=which(k1[i,]==max(k1[i,])) ind.loc=c(ind.loc,colnames(k1)[tmp]) } ind.loc=as.numeric(ind.loc) k1[,ind.loc] theta.estim=res$theta[...
/compare true to estim.R
no_license
drvalle1/co_clustering
R
false
false
1,251
r
plot(res$llk,type='l',ylim=quantile(res$llk,c(0.01,1))) zestim=res$z[nrow(res$z),] k=data.frame(ztrue=z.true,zestim=zestim) k1=table(k); k1 ind.loc=numeric() for (i in 1:nrow(k1)){ tmp=which(k1[i,]==max(k1[i,])) ind.loc=c(ind.loc,colnames(k1)[tmp]) } ind.loc=as.numeric(ind.loc) k1[,ind.loc] theta.estim=res$theta[...
#' Preprocess 10X dataset #' @param path The path to the dataset #' @param min.cells The minimum number of cells for each gene #' @param min.genes The minimum number of genes for each cell #' @param nGene_thresh The quantile threshold for multilplets based on nGene #' @param percent_mito_thresh The quantile threshold...
/R/preprocess_functions.R
permissive
bkim62/robustSingleCell
R
false
false
4,177
r
#' Preprocess 10X dataset #' @param path The path to the dataset #' @param min.cells The minimum number of cells for each gene #' @param min.genes The minimum number of genes for each cell #' @param nGene_thresh The quantile threshold for multilplets based on nGene #' @param percent_mito_thresh The quantile threshold...
#' @title Extract exposure or phenotype data and save them to a data frame #' #' @description Extracts exposures, phenotypes or combined data and saves it to a data frame on the server side, #' if no \code{name} argument is provided, the new Exposome Set object will be named #' \code{"set_table"} where \code{"set"} i...
/R/ds.exposures_pData.R
permissive
isglobal-brge/dsExposomeClient
R
false
false
1,849
r
#' @title Extract exposure or phenotype data and save them to a data frame #' #' @description Extracts exposures, phenotypes or combined data and saves it to a data frame on the server side, #' if no \code{name} argument is provided, the new Exposome Set object will be named #' \code{"set_table"} where \code{"set"} i...
step = function (nr, nc, x, u, Fst) { k = rep (TRUE, nr) for (j in 1:nc) k = k & (x [,j] <= u [j]) sum (k) / nr } continuous = function (nr, nc, x, u, Fst) { k = rep (NA, nc) a = b = p = q = numeric (nc) for (j in 1:nc) { i = (x [,j] <= u [j]) n1 = sum (i) if (n1 == 0) k [j] = -Inf else ...
/multi21/R/interpolate.r
no_license
mmanana/multi21
R
false
false
1,361
r
step = function (nr, nc, x, u, Fst) { k = rep (TRUE, nr) for (j in 1:nc) k = k & (x [,j] <= u [j]) sum (k) / nr } continuous = function (nr, nc, x, u, Fst) { k = rep (NA, nc) a = b = p = q = numeric (nc) for (j in 1:nc) { i = (x [,j] <= u [j]) n1 = sum (i) if (n1 == 0) k [j] = -Inf else ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/input_pheno_GT.R \name{load_sample_data} \alias{load_sample_data} \title{Loads sample phenotype and covariate data into data frame.} \usage{ load_sample_data(phenoFile, main.pheno) } \arguments{ \item{phenoFile}{File path to the phenotype/cov...
/man/load_sample_data.Rd
no_license
cran/OmicKriging
R
false
true
810
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/input_pheno_GT.R \name{load_sample_data} \alias{load_sample_data} \title{Loads sample phenotype and covariate data into data frame.} \usage{ load_sample_data(phenoFile, main.pheno) } \arguments{ \item{phenoFile}{File path to the phenotype/cov...
\name{simSurv} \alias{simSurv} \alias{rSurvTime2} \title{ Simulate Survival Times } \description{ Function \code{simSurv()} and \code{rSurvtime2()} simulate arbitrary (Cox-type) survival times using the inversion method. Function \code{simSurv()} is a simple wrapper that calls \code{rSurvtime2()}. ...
/man/simSurv.Rd
no_license
cran/bamlss
R
false
false
3,326
rd
\name{simSurv} \alias{simSurv} \alias{rSurvTime2} \title{ Simulate Survival Times } \description{ Function \code{simSurv()} and \code{rSurvtime2()} simulate arbitrary (Cox-type) survival times using the inversion method. Function \code{simSurv()} is a simple wrapper that calls \code{rSurvtime2()}. ...
library(MASS) library(dplyr) library(survminer) library(survival) #library(rattle) #library(purrr) #----------------------------------------------------------------------# # Step 0: Some functions # #----------------------------------------------------------------------# # km_subg...
/EricCode/MySimData_sim8.R
permissive
gqwang1001/InterpretSGB
R
false
false
5,679
r
library(MASS) library(dplyr) library(survminer) library(survival) #library(rattle) #library(purrr) #----------------------------------------------------------------------# # Step 0: Some functions # #----------------------------------------------------------------------# # km_subg...
simDataSC <- function(n, xi_1_mean, ev, suppliedSettings){ # xi_1_mean = 5; n = 1000 # Simulates dependency as standard transformation: # Let X ~ f_X, then F(X) ~ UNIF[0,1] # Where UNIF[0,1] will be transformed to UNIF(0.5, 1) and half of them to be 0.5 # default settings settings <- list(sigma_sc = 3) ...
/R/simDataSC.R
no_license
lidom/PartiallyFD
R
false
false
904
r
simDataSC <- function(n, xi_1_mean, ev, suppliedSettings){ # xi_1_mean = 5; n = 1000 # Simulates dependency as standard transformation: # Let X ~ f_X, then F(X) ~ UNIF[0,1] # Where UNIF[0,1] will be transformed to UNIF(0.5, 1) and half of them to be 0.5 # default settings settings <- list(sigma_sc = 3) ...
scoreplot <- function (scorelist, plot.disc = 1:2, xlab = NULL, ylab = NULL, params = NULL, circle = NULL, cl.circle = NULL, circle.pos = c(1, 1), adj.circle = 1, adj.title = 0.5, join.legends = TRUE, prefix.title = "", cex.title = 1, ratio = 1, plot.folds = FALSE) { combine.params...
/hddplot/R/scoreplot.R
no_license
ingted/R-Examples
R
false
false
5,960
r
scoreplot <- function (scorelist, plot.disc = 1:2, xlab = NULL, ylab = NULL, params = NULL, circle = NULL, cl.circle = NULL, circle.pos = c(1, 1), adj.circle = 1, adj.title = 0.5, join.legends = TRUE, prefix.title = "", cex.title = 1, ratio = 1, plot.folds = FALSE) { combine.params...
data.regionalplot.regions <- function(snps, p.all, window.size) { # center regions around query snp # we have assured that query snp has position from pval file message("Assembling regions...") regions <- sapply( as.vector(snps$SNP), function(snp) { find.chr <- as.vector(snps[snps$SNP == snp, "C...
/R/data.regionalplot.regions.R
no_license
Katospiegel/postgwas
R
false
false
796
r
data.regionalplot.regions <- function(snps, p.all, window.size) { # center regions around query snp # we have assured that query snp has position from pval file message("Assembling regions...") regions <- sapply( as.vector(snps$SNP), function(snp) { find.chr <- as.vector(snps[snps$SNP == snp, "C...
# devtools::install_github("tylermorganwall/rayshader") # devtools::install_github("neilcharles/geoviz") library(rayshader) library(geoviz) library(raster) library(tidyverse) library(plotKML) # hike_file <- 'data/radnor_ganier_ridge.gpx' hike_file <- 'data/burch_reserve_hike.gpx' hike_data <- (readGPX(hike_file)$t...
/radnor_plot.R
no_license
nstrayer/hiking_maps
R
false
false
4,175
r
# devtools::install_github("tylermorganwall/rayshader") # devtools::install_github("neilcharles/geoviz") library(rayshader) library(geoviz) library(raster) library(tidyverse) library(plotKML) # hike_file <- 'data/radnor_ganier_ridge.gpx' hike_file <- 'data/burch_reserve_hike.gpx' hike_data <- (readGPX(hike_file)$t...
#Read and merge X test and train data into a single dataset using rbind. a<-read.table("X_test.txt") b<-read.table("X_train.txt") c<-rbind(a,b) #read features and set up a second row of this table as a variable names #earlier merged data, c e<-read.table("features.txt") f<-t(e$V2) colnames(c)<-f #select variable having...
/run_analysis.R
no_license
DSstudent11/Project
R
false
false
1,720
r
#Read and merge X test and train data into a single dataset using rbind. a<-read.table("X_test.txt") b<-read.table("X_train.txt") c<-rbind(a,b) #read features and set up a second row of this table as a variable names #earlier merged data, c e<-read.table("features.txt") f<-t(e$V2) colnames(c)<-f #select variable having...
# Load data DATES = c("1/2/2007", "2/2/2007") readData <- function(fileName) { hdata <- read.table(fileName, header = TRUE, sep = ";", na.strings = "?") hdata <- subset(hdata, hdata$Date %in% DATES) hdata$Time <- strptime(paste(hdata$Date, hdata$Time), format = "%d/%m/%Y %H:%M:%S") hdata$Date <- NULL ...
/plot4.R
no_license
mlg-train/ExData_Plotting1
R
false
false
1,378
r
# Load data DATES = c("1/2/2007", "2/2/2007") readData <- function(fileName) { hdata <- read.table(fileName, header = TRUE, sep = ";", na.strings = "?") hdata <- subset(hdata, hdata$Date %in% DATES) hdata$Time <- strptime(paste(hdata$Date, hdata$Time), format = "%d/%m/%Y %H:%M:%S") hdata$Date <- NULL ...
#' Summarise sampling distributions #' #' Provides plot or table summary of distributions dampled from in [metasims]. #' #' @param parameter_tibble A tibble in the format of [default_parameters], with #' a column for distributions, R-friendly format ("norm", "lnorm"), and #' parameters as a list-column. #' @param outpu...
/R/sim_dist.R
permissive
kylehamilton/simeta
R
false
false
2,455
r
#' Summarise sampling distributions #' #' Provides plot or table summary of distributions dampled from in [metasims]. #' #' @param parameter_tibble A tibble in the format of [default_parameters], with #' a column for distributions, R-friendly format ("norm", "lnorm"), and #' parameters as a list-column. #' @param outpu...
### Functions to simulate communities, Giovanni Poggiato and Jérémy Andréoletti # This script is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later v...
/publication/VirtualEcoSim/1_Tools.R
no_license
giopogg/webSDM
R
false
false
11,755
r
### Functions to simulate communities, Giovanni Poggiato and Jérémy Andréoletti # This script is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later v...
--- title: "Plots" author: "Jia Yi ONG" date: "3/30/2021" output: pdf_document --- ```{r, message=F, warning=F} library(dplyr) library(ggplot2) library(lubridate) library(zoo) ``` # GDP by Industry ```{r} data = read.csv("GDP_by_industry.csv", stringsAsFactors = FALSE) ``` ```{r} data = data %>...
/Plots.R
no_license
jiayi-ong/Visualizing-the-Canadian-Economy
R
false
false
21,250
r
--- title: "Plots" author: "Jia Yi ONG" date: "3/30/2021" output: pdf_document --- ```{r, message=F, warning=F} library(dplyr) library(ggplot2) library(lubridate) library(zoo) ``` # GDP by Industry ```{r} data = read.csv("GDP_by_industry.csv", stringsAsFactors = FALSE) ``` ```{r} data = data %>...
## Plot4 par(mfrow = c(2,2), mar = c(4,4,2,1), oma = c(0,0,2,0)) with(data, { plot(Global_active_power ~ Datetime, type = "l", ylab = "Global Active Power", xlab = "") }) with(data, { plot(Voltage ~ Datetime, type = "l", ylab = "Voltage", xlab = "datetime") }) with(data, { plot(Sub_metering_1 ~ Datetim...
/plot4.R
no_license
Dung2781993/ExData_Plotting1
R
false
false
779
r
## Plot4 par(mfrow = c(2,2), mar = c(4,4,2,1), oma = c(0,0,2,0)) with(data, { plot(Global_active_power ~ Datetime, type = "l", ylab = "Global Active Power", xlab = "") }) with(data, { plot(Voltage ~ Datetime, type = "l", ylab = "Voltage", xlab = "datetime") }) with(data, { plot(Sub_metering_1 ~ Datetim...
# build linear regression model model <- lm(mpg ~ hp + wt, data = mtcars) print(model)
/linear_regression.R
no_license
Icenana/datarockie-data-wrangling
R
false
false
87
r
# build linear regression model model <- lm(mpg ~ hp + wt, data = mtcars) print(model)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/db.r \name{db} \alias{db} \alias{db_ucsc} \alias{db_ensembl} \title{Fetch data from remote databases.} \usage{ db_ucsc( dbname, host = "genome-mysql.cse.ucsc.edu", user = "genomep", password = "password", port = 3306, ... ) db_en...
/man/db.Rd
permissive
romainfrancois/valr
R
false
true
1,188
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/db.r \name{db} \alias{db} \alias{db_ucsc} \alias{db_ensembl} \title{Fetch data from remote databases.} \usage{ db_ucsc( dbname, host = "genome-mysql.cse.ucsc.edu", user = "genomep", password = "password", port = 3306, ... ) db_en...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/update.ftrlprox.r \name{update.ftrlprox} \alias{update.ftrlprox} \title{Update FTRL Proximal model} \usage{ \method{update}{ftrlprox}(object, newX, newY, num_epochs = 1, save_loss = F, ...) } \arguments{ \item{object}{the model object} \it...
/man/update.ftrlprox.Rd
no_license
while/FTRLProximal
R
false
true
1,077
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/update.ftrlprox.r \name{update.ftrlprox} \alias{update.ftrlprox} \title{Update FTRL Proximal model} \usage{ \method{update}{ftrlprox}(object, newX, newY, num_epochs = 1, save_loss = F, ...) } \arguments{ \item{object}{the model object} \it...
library(reshape2) library("ggplot2") NEI <- readRDS('exdata-data-NEI_data/summarySCC_PM25.rds') SCC <- readRDS("exdata-data-NEI_data/Source_Classification_Code.rds") ## Classes considered # Mobile - On-Road Gasoline Light Duty Vehicles # Mobile - On-Road Gasoline Heavy Duty Vehicles # Mobile - On-Road Diesel...
/plot5.R
no_license
shaleens/ExDataII
R
false
false
861
r
library(reshape2) library("ggplot2") NEI <- readRDS('exdata-data-NEI_data/summarySCC_PM25.rds') SCC <- readRDS("exdata-data-NEI_data/Source_Classification_Code.rds") ## Classes considered # Mobile - On-Road Gasoline Light Duty Vehicles # Mobile - On-Road Gasoline Heavy Duty Vehicles # Mobile - On-Road Diesel...
#' Get bicluster MAST motif info from SQLite database. #' #' \code{getMastMotifs} retrieves MAST output from a #' user specified bicluster and/or motif number at any iteration #' of cMonkey algorithm #' #' @param db_path Location of the SQLite database #' @param bicluster Bicluster number, integer #' @param iteration...
/R/getMastMotifs.R
no_license
scalefreegan/Rcmonkey2
R
false
false
1,804
r
#' Get bicluster MAST motif info from SQLite database. #' #' \code{getMastMotifs} retrieves MAST output from a #' user specified bicluster and/or motif number at any iteration #' of cMonkey algorithm #' #' @param db_path Location of the SQLite database #' @param bicluster Bicluster number, integer #' @param iteration...
#' @title Make input matrix #' @description Add DHcR, PDR and sequencing depth information of inferred samples into the input matrix. #' @param names_list A list of sample names. #' @param matCV A matrix of covariates included in the analysis. Ideally, users can include any covariate #' and a hugo symbol column. An...
/R/makeInputMatrix.R
no_license
charlie-42/MethSig
R
false
false
2,447
r
#' @title Make input matrix #' @description Add DHcR, PDR and sequencing depth information of inferred samples into the input matrix. #' @param names_list A list of sample names. #' @param matCV A matrix of covariates included in the analysis. Ideally, users can include any covariate #' and a hugo symbol column. An...
\name{evaluate_Weka_classifier} \alias{evaluate_Weka_classifier} \title{Model Statistics for R/Weka Classifiers} \description{ Compute model performance statistics for a fitted Weka classifier. } \usage{ evaluate_Weka_classifier(object, newdata = NULL, cost = NULL, numFolds = 0, complexity =...
/man/evaluate_Weka_classifier.Rd
no_license
cran/RWeka
R
false
false
2,857
rd
\name{evaluate_Weka_classifier} \alias{evaluate_Weka_classifier} \title{Model Statistics for R/Weka Classifiers} \description{ Compute model performance statistics for a fitted Weka classifier. } \usage{ evaluate_Weka_classifier(object, newdata = NULL, cost = NULL, numFolds = 0, complexity =...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/wbcache.R \name{wbtopics} \alias{wbtopics} \title{Download updated indicator topic information from World Bank API} \usage{ wbtopics(lang = c("en", "es", "fr", "ar", "zh")) } \arguments{ \item{lang}{Language in which to return the res...
/man/wbtopics.Rd
no_license
imaike/wbstats
R
false
false
1,053
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/wbcache.R \name{wbtopics} \alias{wbtopics} \title{Download updated indicator topic information from World Bank API} \usage{ wbtopics(lang = c("en", "es", "fr", "ar", "zh")) } \arguments{ \item{lang}{Language in which to return the res...
library(MachineShop) ### Name: varimp ### Title: Variable Importance ### Aliases: varimp ### ** Examples ## Survival response example library(survival) library(MASS) gbmfit <- fit(Surv(time, status != 2) ~ sex + age + year + thickness + ulcer, data = Melanoma, model = GBMModel) (vi <- varimp(gbmfit))...
/data/genthat_extracted_code/MachineShop/examples/varimp.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
334
r
library(MachineShop) ### Name: varimp ### Title: Variable Importance ### Aliases: varimp ### ** Examples ## Survival response example library(survival) library(MASS) gbmfit <- fit(Surv(time, status != 2) ~ sex + age + year + thickness + ulcer, data = Melanoma, model = GBMModel) (vi <- varimp(gbmfit))...
#' @title Launch Shiny App #' @description Launches shiny app #' @section Deprecated Function: #' \code{launch_descriptr()} has been deprecated. Instead #' use \code{ds_launch_shiny_app()}. #' @examples #' \dontrun{ #' ds_launch_shiny_app() #' } #' @export #' ds_launch_shiny_app <- function() { rlang::inform("`ds_lau...
/R/ds-launch-shiny-app.R
no_license
DuyDN/descriptr
R
false
false
812
r
#' @title Launch Shiny App #' @description Launches shiny app #' @section Deprecated Function: #' \code{launch_descriptr()} has been deprecated. Instead #' use \code{ds_launch_shiny_app()}. #' @examples #' \dontrun{ #' ds_launch_shiny_app() #' } #' @export #' ds_launch_shiny_app <- function() { rlang::inform("`ds_lau...
# geoprocessing.R #' Get UTM zone from coordinates #' #' @param lon longitude in [-180,180] #' @return The number of the UTM zone containing the longitude #' @export #' @examples #' gis_longitude_to_utm_zone(-45) gis_longitude_to_utm_zone <- function(lon) { utm_zone <- (base::floor((lon + 180)/6) %% 60) + 1 return...
/R/geoprocessing.R
no_license
gopalpenny/ggp
R
false
false
766
r
# geoprocessing.R #' Get UTM zone from coordinates #' #' @param lon longitude in [-180,180] #' @return The number of the UTM zone containing the longitude #' @export #' @examples #' gis_longitude_to_utm_zone(-45) gis_longitude_to_utm_zone <- function(lon) { utm_zone <- (base::floor((lon + 180)/6) %% 60) + 1 return...
## Insert one item into the database ## ## @description One item, identified as \code{session:bundle:level:sequenceIndex}, ## is inserted into the database. One label has to be provided for every attribute ## of the given level. ## ## @param emuDBhandle emuDB handle as returned by \code{\link{load_emuDB}} ## @param ite...
/R/emuR-crud-helpers.R
no_license
fsuettmann/emuR
R
false
false
12,392
r
## Insert one item into the database ## ## @description One item, identified as \code{session:bundle:level:sequenceIndex}, ## is inserted into the database. One label has to be provided for every attribute ## of the given level. ## ## @param emuDBhandle emuDB handle as returned by \code{\link{load_emuDB}} ## @param ite...
################################################################################ # # Exercise 1: Install odkr and okapi packages in R # # This exercise is the most basic and simplest. Install the odkr and okapi # packages in your R installation in your own local machines. Following is the # basic code to make this happ...
/exercise_1_install_packages.R
no_license
katilingban/odk-and-r
R
false
false
881
r
################################################################################ # # Exercise 1: Install odkr and okapi packages in R # # This exercise is the most basic and simplest. Install the odkr and okapi # packages in your R installation in your own local machines. Following is the # basic code to make this happ...
# OOP using S3 system in R # Loading needed packages require(readr, quietly = T) require(magrittr, quietly = T) source("oop_code.R") # read-in the dataframe data <- read_csv("C:/Users/m316615/Documents/R_Datasets/MIE.csv", col_types = cols()) # Create function that converts df to LongitudinalData x make_LD ...
/oop_code.R
no_license
jeanpauluwimana/DataScience
R
false
false
2,952
r
# OOP using S3 system in R # Loading needed packages require(readr, quietly = T) require(magrittr, quietly = T) source("oop_code.R") # read-in the dataframe data <- read_csv("C:/Users/m316615/Documents/R_Datasets/MIE.csv", col_types = cols()) # Create function that converts df to LongitudinalData x make_LD ...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/var_bounds.R \name{update_mf} \alias{update_mf} \title{Update Membership Functions} \usage{ update_mf() } \description{ This function updates the membership functions after the bounds of the fuzzy subsets are changed and reinitializes...
/man/update_mf.Rd
no_license
ngort01/fuzzyMM
R
false
false
487
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/var_bounds.R \name{update_mf} \alias{update_mf} \title{Update Membership Functions} \usage{ update_mf() } \description{ This function updates the membership functions after the bounds of the fuzzy subsets are changed and reinitializes...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/logabage2.camp.r \name{logabage2.camp} \alias{logabage2.camp} \title{Crea gráficos de descenso de abundancias con la edad} \usage{ logabage2.camp(gr, esp, camps, dns = "Porc", plus = 8, cor.time = TRUE, ti = FALSE, layout = NA) } \arguments...
/CampR-master/man/logabage2.camp.Rd
no_license
Franvgls/CampR
R
false
true
2,145
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/logabage2.camp.r \name{logabage2.camp} \alias{logabage2.camp} \title{Crea gráficos de descenso de abundancias con la edad} \usage{ logabage2.camp(gr, esp, camps, dns = "Porc", plus = 8, cor.time = TRUE, ti = FALSE, layout = NA) } \arguments...
# clump instruments rm(list=ls()) # environment ==== ## library ==== # remotes::install_github("MRCIEU/TwoSampleMR") library(TwoSampleMR) library(dplyr) library(ieugwasr) # read data filenames <- list.files(path = "data/exposure_data/", pattern="txt_pulit_snps.txt", full.names=F) list <- lapply(paste0("data/exposure_...
/scripts/001_identify_instruments/001_obtain_adiposity_instruments/002_clump_adiposity_instruments.R
no_license
mattlee821/adiposity_proteins_colorectal_cancer
R
false
false
1,932
r
# clump instruments rm(list=ls()) # environment ==== ## library ==== # remotes::install_github("MRCIEU/TwoSampleMR") library(TwoSampleMR) library(dplyr) library(ieugwasr) # read data filenames <- list.files(path = "data/exposure_data/", pattern="txt_pulit_snps.txt", full.names=F) list <- lapply(paste0("data/exposure_...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kpPlotGenes.R \name{kpPlotGenes} \alias{kpPlotGenes} \title{kpPlotGenes} \usage{ kpPlotGenes(karyoplot, data, gene.margin=0.3, gene.col=NULL, gene.border.col=NULL, add.gene.names=TRUE, gene.names=NULL, gene.name.positio...
/man/kpPlotGenes.Rd
no_license
abhijitcbio/karyoploteR
R
false
true
12,823
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kpPlotGenes.R \name{kpPlotGenes} \alias{kpPlotGenes} \title{kpPlotGenes} \usage{ kpPlotGenes(karyoplot, data, gene.margin=0.3, gene.col=NULL, gene.border.col=NULL, add.gene.names=TRUE, gene.names=NULL, gene.name.positio...
library(MaxPro) ### Name: CandPoints ### Title: Generate Candidate Design Points Randomly for Various Types of ### Factors ### Aliases: CandPoints ### Keywords: Design of Experiments Computer Experiments ### ** Examples CCC<-CandPoints(N=10000,p_cont=3,l_disnum=c(3,3,4),l_nom=c(2,2,3))
/data/genthat_extracted_code/MaxPro/examples/CandPoints.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
298
r
library(MaxPro) ### Name: CandPoints ### Title: Generate Candidate Design Points Randomly for Various Types of ### Factors ### Aliases: CandPoints ### Keywords: Design of Experiments Computer Experiments ### ** Examples CCC<-CandPoints(N=10000,p_cont=3,l_disnum=c(3,3,4),l_nom=c(2,2,3))
testlist <- list(g = 0L, ws = NULL, xs = NULL, val = numeric(0), my_ws = numeric(0), my_xs = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)) result <- do.call(MHMM:::oneEMgammaCPP,testlist) str(result)
/MHMM/inst/testfiles/oneEMgammaCPP/AFL_oneEMgammaCPP/oneEMgammaCPP_valgrind_files/1616007431-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
312
r
testlist <- list(g = 0L, ws = NULL, xs = NULL, val = numeric(0), my_ws = numeric(0), my_xs = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)) result <- do.call(MHMM:::oneEMgammaCPP,testlist) str(result)
/CASO 2/FUNCION 1 (outcome).R
no_license
danielajacinto/Programacion_Actuarial_III
R
false
false
1,137
r
library(tidyverse) library(codyn) library(rsq) library(ggthemes) setwd("C:\\Users\\mavolio2\\Dropbox\\GEx_VirtualWorkshop_June2020\\") comp_all<-read.csv("gex_multdiff_site_block.csv") comp<-read.csv("gex_multdiff_site_ave.csv") rac<-read.csv("gex_racdiff_site_ave.csv") experiment<-read.csv("Meta_SEV2019.csv")%>% se...
/composition/Comp_diff_analyses.R
no_license
SallyKoerner/GEx_SEV2019
R
false
false
5,243
r
library(tidyverse) library(codyn) library(rsq) library(ggthemes) setwd("C:\\Users\\mavolio2\\Dropbox\\GEx_VirtualWorkshop_June2020\\") comp_all<-read.csv("gex_multdiff_site_block.csv") comp<-read.csv("gex_multdiff_site_ave.csv") rac<-read.csv("gex_racdiff_site_ave.csv") experiment<-read.csv("Meta_SEV2019.csv")%>% se...
#Chart_Pareto <<- function(Oyear,Omonth,Ocamera="ALL") { ####################################################################################################### ## Version 1 ## This function reads in the Remote Monitoring Data file and prepares Pareto style analysis ###############...
/CLANFIELD/LIBRARY/PLOTS/Chart_Pareto.R
no_license
SteveBosley/Meteor-Data
R
false
false
12,454
r
#Chart_Pareto <<- function(Oyear,Omonth,Ocamera="ALL") { ####################################################################################################### ## Version 1 ## This function reads in the Remote Monitoring Data file and prepares Pareto style analysis ###############...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/modeltime-refit.R \name{mdl_time_refit} \alias{mdl_time_refit} \title{Modeltime Refit Helpers} \usage{ mdl_time_refit(object, data, ..., control = NULL) } \arguments{ \item{object}{A Modeltime Table} \item{data}{A \code{tibble} that contains...
/man/mdl_time_refit.Rd
permissive
topepo/modeltime
R
false
true
703
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/modeltime-refit.R \name{mdl_time_refit} \alias{mdl_time_refit} \title{Modeltime Refit Helpers} \usage{ mdl_time_refit(object, data, ..., control = NULL) } \arguments{ \item{object}{A Modeltime Table} \item{data}{A \code{tibble} that contains...
####################################################################### # Codigo esquema paper soja Frontiers in Plants Science ## # Datos Soja estres hidrico en Cámara de crecimiento ## # Datos tomados por Esteban Casaretto ## # Sebastian Simondi - Gaston ...
/Rcode/codigo_esquema_Fig.2.R
no_license
gastonquero/wtr
R
false
false
8,813
r
####################################################################### # Codigo esquema paper soja Frontiers in Plants Science ## # Datos Soja estres hidrico en Cámara de crecimiento ## # Datos tomados por Esteban Casaretto ## # Sebastian Simondi - Gaston ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/elements.R \name{radiobuttons_element} \alias{radiobuttons_element} \title{Radio button group element} \usage{ radiobuttons_element(id, options, initial_option = NULL, confirm = NULL) } \arguments{ \item{id}{character, An identifier for the a...
/man/radiobuttons_element.Rd
permissive
yonicd/slackblocks
R
false
true
1,198
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/elements.R \name{radiobuttons_element} \alias{radiobuttons_element} \title{Radio button group element} \usage{ radiobuttons_element(id, options, initial_option = NULL, confirm = NULL) } \arguments{ \item{id}{character, An identifier for the a...
##' Compute (on a regular grid) the empirical attainment function from conditional simulations ##' of Gaussian processes corresponding to two objectives. This is used to estimate the Vorob'ev ##' expectation of the attained set and the Vorob'ev deviation. ##' ##' @title Conditional Pareto Front simulations ##' ##' @p...
/R/CPF.R
no_license
dgaudrie/GPareto
R
false
false
15,667
r
##' Compute (on a regular grid) the empirical attainment function from conditional simulations ##' of Gaussian processes corresponding to two objectives. This is used to estimate the Vorob'ev ##' expectation of the attained set and the Vorob'ev deviation. ##' ##' @title Conditional Pareto Front simulations ##' ##' @p...
############################ #### Bergan (Michigan) #### ############################ # Co-sponsorship network # Skip lines 62-76 for raw exposure results # Weighted network # Reparametrized model # Authors: Sayali Phadke, Bruce Desmarais # Created on: 03/02/2018 # Last edited on: 03/05/2018 # Last edited by: Sayali ...
/Analysis/SPPQReplicationArchive/Bergan_analyses_table5/03_bergan_cospon_newmodel.R
no_license
bdesmarais/interference_field_experiments
R
false
false
8,632
r
############################ #### Bergan (Michigan) #### ############################ # Co-sponsorship network # Skip lines 62-76 for raw exposure results # Weighted network # Reparametrized model # Authors: Sayali Phadke, Bruce Desmarais # Created on: 03/02/2018 # Last edited on: 03/05/2018 # Last edited by: Sayali ...
packs<-c('Biobase','base','car','multcomp','ggplot2','gplots',"org.EcK12.eg.db","KEGGREST","GO.db") write('',file="R_citations.bib",append=FALSE) for (pac in packs) { x<-citation(pac) toBibtex(x) write(toBibtex(x),file="R_citations.bib",append=TRUE) }
/Citations.R
no_license
PNorvaisas/5FU_knockouts
R
false
false
259
r
packs<-c('Biobase','base','car','multcomp','ggplot2','gplots',"org.EcK12.eg.db","KEGGREST","GO.db") write('',file="R_citations.bib",append=FALSE) for (pac in packs) { x<-citation(pac) toBibtex(x) write(toBibtex(x),file="R_citations.bib",append=TRUE) }
library(tidyverse) library(ggridges) library(ggjoy) spotify_df <- readr::read_rds('data/spotify_df.rds') # VALENCE ## “A measure from 0.0 to 1.0 describing the musical positiveness conveyed by a track. Tracks with high valence ## sound more positive (e.g. happy, cheerful, euphoric), while tracks with low valence so...
/src/03_analyze_spotify.R
no_license
paulapereda/tayloR-old-version
R
false
false
3,300
r
library(tidyverse) library(ggridges) library(ggjoy) spotify_df <- readr::read_rds('data/spotify_df.rds') # VALENCE ## “A measure from 0.0 to 1.0 describing the musical positiveness conveyed by a track. Tracks with high valence ## sound more positive (e.g. happy, cheerful, euphoric), while tracks with low valence so...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ggnet.R \name{ggnet} \alias{ggnet} \title{Draw pretty network graphs with ggplot} \usage{ ggnet(g, node = list(label = NA, color = "grey50", size = 1), label = list(size = 1, color = "black")) } \arguments{ \item{g}{igraph object} \item{no...
/abc-r-package/man/ggnet.Rd
no_license
beringresearch/ABC
R
false
true
407
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ggnet.R \name{ggnet} \alias{ggnet} \title{Draw pretty network graphs with ggplot} \usage{ ggnet(g, node = list(label = NA, color = "grey50", size = 1), label = list(size = 1, color = "black")) } \arguments{ \item{g}{igraph object} \item{no...
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
/R/pkg/R/functions.R
permissive
bomeng/spark
R
false
false
133,795
r
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
g1 <- apply(AudiByMarkets,1,function(y) y[1]) g1 <- g1[!is.na(g1)] pdf("slike/Audi_trgi.pdf") barplot(as.matrix(AudiByMarkets[-15,])/1000, beside = TRUE, las=2, names.arg=1996:2006, col=rainbow(14), cex.names=0.6, ylim = c(0, 400)) legend("topleft", legend = row.names(AudiByMarkets)[1:14], cex=0.6, ...
/grafi.r
permissive
SanjaAudi/APPR-2014-15
R
false
false
3,390
r
g1 <- apply(AudiByMarkets,1,function(y) y[1]) g1 <- g1[!is.na(g1)] pdf("slike/Audi_trgi.pdf") barplot(as.matrix(AudiByMarkets[-15,])/1000, beside = TRUE, las=2, names.arg=1996:2006, col=rainbow(14), cex.names=0.6, ylim = c(0, 400)) legend("topleft", legend = row.names(AudiByMarkets)[1:14], cex=0.6, ...
\name{group.heatmap.simple} \alias{group.heatmap.simple} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Plot a Heatmap Showing OTU Abundance by Taxonomic Classification } \description{ This function consumes an OTU table and a rank, as well as some optional parameters, and creates a heatmap sho...
/man/group.heatmap.simple.Rd
no_license
juliaha/RAM
R
false
false
4,448
rd
\name{group.heatmap.simple} \alias{group.heatmap.simple} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Plot a Heatmap Showing OTU Abundance by Taxonomic Classification } \description{ This function consumes an OTU table and a rank, as well as some optional parameters, and creates a heatmap sho...
### 0. brief intro to R # math operations 2+3 4-1 2*3 8/2 2^3 # defining variables x = 2 x + 3 x # character strings chr = "this is a string" chr # functions my_vector = c(2,5,6) # combine values in a vector mean(vector) # average function seq(0, 100, by=10) # make a sequence of numbers paste(chr, "and this will ape...
/1_script_for_stylo.r
no_license
puik/tartu_dm_2020
R
false
false
1,583
r
### 0. brief intro to R # math operations 2+3 4-1 2*3 8/2 2^3 # defining variables x = 2 x + 3 x # character strings chr = "this is a string" chr # functions my_vector = c(2,5,6) # combine values in a vector mean(vector) # average function seq(0, 100, by=10) # make a sequence of numbers paste(chr, "and this will ape...
download_pkg_data <- function(f, u, work_dir) { dir.create(work_dir, showWarnings = FALSE) d <- file.path(work_dir, f) project_file <- c(paste0("../../docs/data/", f), paste0("docs/data/", f)) project_file <- project_file[file.exists(project_file)] if(length(project_file) > 0 && f...
/inst/extdata/utils.R
permissive
mhweber/nhdplusTools
R
false
false
698
r
download_pkg_data <- function(f, u, work_dir) { dir.create(work_dir, showWarnings = FALSE) d <- file.path(work_dir, f) project_file <- c(paste0("../../docs/data/", f), paste0("docs/data/", f)) project_file <- project_file[file.exists(project_file)] if(length(project_file) > 0 && f...
## create a data frame from data/installed-packages.csv ## with, e.g., readr::read_csv() or read.csv() here( "Desktop", "packages-report", "data","installed-packages.csv" ) read.csv( file="/Users/tvillavicencio/Desktop", header=TRUE, sep=",") ## filter out packages in the default library ## keep variables Package an...
/R/02_wrangle-packages.R
no_license
Taniavr/packages-report
R
false
false
941
r
## create a data frame from data/installed-packages.csv ## with, e.g., readr::read_csv() or read.csv() here( "Desktop", "packages-report", "data","installed-packages.csv" ) read.csv( file="/Users/tvillavicencio/Desktop", header=TRUE, sep=",") ## filter out packages in the default library ## keep variables Package an...
#' Function to perform statistical analyses and create plots from non-stationary labeling experiments #' #' This function allows you to perform k-means clustering analyses using label enrichment data at both label_enrichment and MID levels #' The function can be used with both average_labeling and mol_equivalent_labeli...
/SIMPEL/R/getClustersAndPlots.R
no_license
jberry47/SIMPEL_final
R
false
false
19,051
r
#' Function to perform statistical analyses and create plots from non-stationary labeling experiments #' #' This function allows you to perform k-means clustering analyses using label enrichment data at both label_enrichment and MID levels #' The function can be used with both average_labeling and mol_equivalent_labeli...
# Downloading, unzipping. setInternet2(TRUE) fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" download.file(fileURL, destfile = "Electric Power Consumption.zip", method = "auto") dateDownloaded <- date unzip("Electric Power Consumption.zip") # Reading in the fil...
/Plot1.R
no_license
TeaMonkee/ExData_Plotting1
R
false
false
1,319
r
# Downloading, unzipping. setInternet2(TRUE) fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" download.file(fileURL, destfile = "Electric Power Consumption.zip", method = "auto") dateDownloaded <- date unzip("Electric Power Consumption.zip") # Reading in the fil...
library(rpart) library(rpart.plot) #### # # Tune hyper parameters, cp, minbucket, and maxdepth # ### RPART_MULTI_TREE_PARAMS_FILE = "obj/rpart.multi.class.params.tune" if(file.exists(RPART_MULTI_TREE_PARAMS_FILE) == FALSE) { start.time = Sys.time() require(e1071) set.seed(702) tune.RPart = tune( ...
/Final-Modelling.Trees.r
no_license
landon-thompson/stat-702-final
R
false
false
6,079
r
library(rpart) library(rpart.plot) #### # # Tune hyper parameters, cp, minbucket, and maxdepth # ### RPART_MULTI_TREE_PARAMS_FILE = "obj/rpart.multi.class.params.tune" if(file.exists(RPART_MULTI_TREE_PARAMS_FILE) == FALSE) { start.time = Sys.time() require(e1071) set.seed(702) tune.RPart = tune( ...
## This two functions together could cache the inverse of a squared matrix ## when we need it again, it can be looked up in the cache rather than recomputed. ## Function makeCacheMatrix creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function(x = matrix()) { mat.inv <- NU...
/inverse matrix.R
no_license
Jessie126/ProgrammingAssignment2
R
false
false
1,798
r
## This two functions together could cache the inverse of a squared matrix ## when we need it again, it can be looked up in the cache rather than recomputed. ## Function makeCacheMatrix creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function(x = matrix()) { mat.inv <- NU...
require(readxl) require(curl) require(ggplot2) require(rethinking) require(rstan) require(bayesplot) require(quadprog) anr = read_excel('data/final.xlsx', sheet = 8, col_names = F) anr.clean = anr[complete.cases(anr[ ,2]),] # if firm name is NA remove anr.df = anr.clean[0,] sym = ""# for (i in 1:nrow(anr.clean)){ i...
/port-optm.R
no_license
zaidtashman/portfolio-optimization
R
false
false
7,387
r
require(readxl) require(curl) require(ggplot2) require(rethinking) require(rstan) require(bayesplot) require(quadprog) anr = read_excel('data/final.xlsx', sheet = 8, col_names = F) anr.clean = anr[complete.cases(anr[ ,2]),] # if firm name is NA remove anr.df = anr.clean[0,] sym = ""# for (i in 1:nrow(anr.clean)){ i...
prederrJM.coxph <- function (object, newdata, Tstart, Thoriz, lossFun = c("absolute", "square"), interval = FALSE, idVar = "id", timeVar = "time", respVar = "y", evTimeVar = "Time", summary = c("value", "slope", "area"), tranfFun ...
/R/prederrJM.coxph.R
no_license
TobiasPolak/JMbayes
R
false
false
3,734
r
prederrJM.coxph <- function (object, newdata, Tstart, Thoriz, lossFun = c("absolute", "square"), interval = FALSE, idVar = "id", timeVar = "time", respVar = "y", evTimeVar = "Time", summary = c("value", "slope", "area"), tranfFun ...
intersec.simpces2<-function(simp1,simp2) { # returns 1 if there is intersection otherwise 0 # simp1, simp2 are (d+1)*d matrices d<-2 tulos<-0 for (i in 1:d){ for (j in (i+1):(d+1)){ x1<-simp1[i,] x2<-simp1[j,] for (ii in 1:d){ for (jj in (ii+1):(d+1)){ y1<-simp2[ii,] y...
/R/intersec.simpces2.R
no_license
cran/denpro
R
false
false
663
r
intersec.simpces2<-function(simp1,simp2) { # returns 1 if there is intersection otherwise 0 # simp1, simp2 are (d+1)*d matrices d<-2 tulos<-0 for (i in 1:d){ for (j in (i+1):(d+1)){ x1<-simp1[i,] x2<-simp1[j,] for (ii in 1:d){ for (jj in (ii+1):(d+1)){ y1<-simp2[ii,] y...
bookdown::render_book("index.Rmd", "bookdown::gitbook") bookdown::render_book("index.Rmd", "bookdown::pdf_book")
/_build.R
permissive
joaoventuraoliveira/SRMAbookdown
R
false
false
114
r
bookdown::render_book("index.Rmd", "bookdown::gitbook") bookdown::render_book("index.Rmd", "bookdown::pdf_book")
# returns a matrix of snp, taxon, pval, qval for each pair # tests either 0 vs 1/2 or 0/1 vs 2 # covariates must be a data frame # # if collapse.at is not NULL, collapses gwas + mwas # by clustering at collapse.at spearman's correlation # return value has association matrix with "direction" column, # this shows eithe...
/lib/legacy-code/linear-tests.r
no_license
elixiriccs/mwasgwas
R
false
false
49,636
r
# returns a matrix of snp, taxon, pval, qval for each pair # tests either 0 vs 1/2 or 0/1 vs 2 # covariates must be a data frame # # if collapse.at is not NULL, collapses gwas + mwas # by clustering at collapse.at spearman's correlation # return value has association matrix with "direction" column, # this shows eithe...
check_num_answers= function(question) { if (question$type != "num") stop(sprintf("ERROR: check_num_answers() for \"%s\" question", question$type)) answer= matrix(as.double(c(question$answer)), ncol=3) is_false= (answer[ , 2] > answer[ , 1]) | (answer[ , 1] > answer[ , 3]) output= list(warningmessage=NULL, rowwa...
/engine/check_num_answers.R
no_license
alucas69/CanvasQuizR
R
false
false
659
r
check_num_answers= function(question) { if (question$type != "num") stop(sprintf("ERROR: check_num_answers() for \"%s\" question", question$type)) answer= matrix(as.double(c(question$answer)), ncol=3) is_false= (answer[ , 2] > answer[ , 1]) | (answer[ , 1] > answer[ , 3]) output= list(warningmessage=NULL, rowwa...
#' Function to find good points for estimation of phi #' #' The function tries to find non overlapping windows for phi optimization. #' @param data An move object. #' @param maxPointsToUseInEstimate The number of desired windows. #' @param phiInitialEstimate The initial value used for the autocorrelation when calcula...
/R/estimatePhi.R
no_license
cran/moveWindSpeed
R
false
false
6,421
r
#' Function to find good points for estimation of phi #' #' The function tries to find non overlapping windows for phi optimization. #' @param data An move object. #' @param maxPointsToUseInEstimate The number of desired windows. #' @param phiInitialEstimate The initial value used for the autocorrelation when calcula...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data_wrangling.R \name{norm_by_fraction} \alias{norm_by_fraction} \title{Normalize values across fractions} \usage{ norm_by_fraction(long.dt) } \arguments{ \item{long.dt}{data.table with one row per protein and fraction; the keys should be se...
/DepLab/man/norm_by_fraction.Rd
permissive
inambioinfo/Proteomic_Correlation_Shiny
R
false
true
810
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data_wrangling.R \name{norm_by_fraction} \alias{norm_by_fraction} \title{Normalize values across fractions} \usage{ norm_by_fraction(long.dt) } \arguments{ \item{long.dt}{data.table with one row per protein and fraction; the keys should be se...
## ****************************************************# ## The Joint Multiple Multi-level Estimation (JMMLE) Method ## ****************************************************# source('l1ML_Main.R') ## Clip a gradient clip = function(x, ceil=1e3){ xx = x for(i in 1:length(xx)){ if(abs(x[i]) > ceil){ xx[...
/Codes/HLGM-bin.R
no_license
shubhobm/Sparse-nonlinear-GM
R
false
false
27,029
r
## ****************************************************# ## The Joint Multiple Multi-level Estimation (JMMLE) Method ## ****************************************************# source('l1ML_Main.R') ## Clip a gradient clip = function(x, ceil=1e3){ xx = x for(i in 1:length(xx)){ if(abs(x[i]) > ceil){ xx[...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/colours.R \docType{data} \name{grattan_grey1} \alias{grattan_grey1} \title{Hex code for the colour: Grattan grey 1 (truffle soup)} \format{An object of class \code{character} of length 1.} \usage{ grattan_grey1 } \description{ #D9D9D9 } \keyw...
/man/grattan_grey1.Rd
no_license
jonathananolan/grattantheme
R
false
true
334
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/colours.R \docType{data} \name{grattan_grey1} \alias{grattan_grey1} \title{Hex code for the colour: Grattan grey 1 (truffle soup)} \format{An object of class \code{character} of length 1.} \usage{ grattan_grey1 } \description{ #D9D9D9 } \keyw...
downloaded ### load libraries require(plyr) #### data import and initial description setwd("/Users/Teleak/Desktop/RCourse/DataAnalysis/AnalysisAssignment1/Rproject/Describe") ### raw data imported as raw raw<-read.csv("/Users/Teleak/Desktop/RCourse/DataAnalysis/AnalysisAssignment1/Rproject/WorkingData/loansData.c...
/Rproject/Describe/Rcode/import.and.description.R
no_license
teleak/Assignment1
R
false
false
1,511
r
downloaded ### load libraries require(plyr) #### data import and initial description setwd("/Users/Teleak/Desktop/RCourse/DataAnalysis/AnalysisAssignment1/Rproject/Describe") ### raw data imported as raw raw<-read.csv("/Users/Teleak/Desktop/RCourse/DataAnalysis/AnalysisAssignment1/Rproject/WorkingData/loansData.c...
##' Add color-bar to plot ##' ##' @title Add color-bar to plot ##' @param clut Color look-up table ##' @param x.range x range ##' @param y.range y range ##' @param values label values ##' @param digits number of digits ##' @param label.offset label offset ##' @param srt rotation of labels ##' @param cex text size ##' @...
/R/zcolorbar.R
no_license
cran/lava
R
false
false
2,652
r
##' Add color-bar to plot ##' ##' @title Add color-bar to plot ##' @param clut Color look-up table ##' @param x.range x range ##' @param y.range y range ##' @param values label values ##' @param digits number of digits ##' @param label.offset label offset ##' @param srt rotation of labels ##' @param cex text size ##' @...
#' #' @title Calculate fishery catchability parameters for TCSAM02 based on values from a TCSAM2013 model. #' #' @description Function to calculate fishery catchability parameter values for TCSAM02 based on values from a TCSAM2013 model. #' #' @param obj - tcsam2013.resLst object or tcsam2103.prs object #' @param tpl -...
/R/calcTCSAM02Params.FisheryCs.R
permissive
wStockhausen/rTCSAM02
R
false
false
3,947
r
#' #' @title Calculate fishery catchability parameters for TCSAM02 based on values from a TCSAM2013 model. #' #' @description Function to calculate fishery catchability parameter values for TCSAM02 based on values from a TCSAM2013 model. #' #' @param obj - tcsam2013.resLst object or tcsam2103.prs object #' @param tpl -...
# hyAdd.Labels_TD2009 -------------------------------------------------------- # #' [+] Add labels to "TD_2009" dataset #' #' Function is designed to label data collected during investigation called "TD_2009". #' Select data columns, that are not removed, and add labels to #' \code{\link[=hyperSpec-class]{hyperSpec}} ...
/R/hyAdd.Labels_TD2009.R
no_license
Ignnn/spHelper
R
false
false
4,917
r
# hyAdd.Labels_TD2009 -------------------------------------------------------- # #' [+] Add labels to "TD_2009" dataset #' #' Function is designed to label data collected during investigation called "TD_2009". #' Select data columns, that are not removed, and add labels to #' \code{\link[=hyperSpec-class]{hyperSpec}} ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Features.R \name{GetFeatureInfo} \alias{GetFeatureInfo} \title{Details about a feature} \usage{ GetFeatureInfo(project, featureName) } \arguments{ \item{project}{character. Either (1) a character string giving the unique alphanumeric identifi...
/man/GetFeatureInfo.Rd
no_license
anno526/datarobot
R
false
true
3,152
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Features.R \name{GetFeatureInfo} \alias{GetFeatureInfo} \title{Details about a feature} \usage{ GetFeatureInfo(project, featureName) } \arguments{ \item{project}{character. Either (1) a character string giving the unique alphanumeric identifi...
rm(list=ls(all.names = TRUE)) source("packIntoFunction.R") listPageUrls = getListPageUrls("Gossiping")[1:5] listPageUrls postUrls = unlist(lapply(listPageUrls,getPostUrls)) postUrls getPostData("https://www.ptt.cc/bbs/Gossiping/M.1431338763.A.1BF.html") getPostData(postUrls[2]) postData = lapply(postUrls[3:5],ge...
/PttCrawler/test.R
no_license
KuiMing/RTextMining
R
false
false
967
r
rm(list=ls(all.names = TRUE)) source("packIntoFunction.R") listPageUrls = getListPageUrls("Gossiping")[1:5] listPageUrls postUrls = unlist(lapply(listPageUrls,getPostUrls)) postUrls getPostData("https://www.ptt.cc/bbs/Gossiping/M.1431338763.A.1BF.html") getPostData(postUrls[2]) postData = lapply(postUrls[3:5],ge...
#' Extra pdClasses and varClasses for special models using nlme #' #' nlmeYextra provides an new pdClass, `pdInd`, that models random effects that are independent of each other but not necessarily independent of the random intercepts. The package also provides a variance class variables whose #' nlmeYextra <- funct...
/R/nlmeYextra.R
no_license
gmonette/nlmeYextra
R
false
false
330
r
#' Extra pdClasses and varClasses for special models using nlme #' #' nlmeYextra provides an new pdClass, `pdInd`, that models random effects that are independent of each other but not necessarily independent of the random intercepts. The package also provides a variance class variables whose #' nlmeYextra <- funct...
alfa <- 0.05 z <- c() range <- 30 h <- 0 # central old_h <- -1 acm_h <- c() acm_v1 <- c() acm_v2 <- c() acm_fc <- c() acm_poder <- c() acm_eta2 <- c() # pdf("Experimento_Fobs_Poder_Eta2.pdf") d <- 1 # direcao while (1) { if (d==1) { print ("---------------------------------------------------------") prin...
/Aula05/Aula_Comparacao_3_Condicoes_jupyter_notebook/Animacao_F.R
no_license
yadevi/2020
R
false
false
5,752
r
alfa <- 0.05 z <- c() range <- 30 h <- 0 # central old_h <- -1 acm_h <- c() acm_v1 <- c() acm_v2 <- c() acm_fc <- c() acm_poder <- c() acm_eta2 <- c() # pdf("Experimento_Fobs_Poder_Eta2.pdf") d <- 1 # direcao while (1) { if (d==1) { print ("---------------------------------------------------------") prin...