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
library(lubridate) # Read and subset data dat = read.delim('household_power_consumption.txt', header = T, sep = ';') dat$Date = dmy_hms(paste(dat$Date, dat$Time)) dat2 = dplyr::filter(dat, Date < ymd('2007-02-03') & Date >= ymd('2007-02-01')) # Plot png('plot4.png', width = 480, height = 480) par(mfrow = c(2,2)) # pl...
/plot4.R
no_license
kpjonsson/ExData_Plotting1
R
false
false
1,244
r
library(lubridate) # Read and subset data dat = read.delim('household_power_consumption.txt', header = T, sep = ';') dat$Date = dmy_hms(paste(dat$Date, dat$Time)) dat2 = dplyr::filter(dat, Date < ymd('2007-02-03') & Date >= ymd('2007-02-01')) # Plot png('plot4.png', width = 480, height = 480) par(mfrow = c(2,2)) # pl...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/methods.R \name{dcsis} \alias{dcsis} \title{Calculate the distance covariance} \usage{ dcsis(response, X, bias.corr = TRUE, metr.response = "euclidean", metr.X, use = "all", top = NULL, threshold = NULL, return.all = FALSE) } \arguments{ ...
/man/dcsis.Rd
no_license
jofie/DistCov
R
false
true
1,326
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/methods.R \name{dcsis} \alias{dcsis} \title{Calculate the distance covariance} \usage{ dcsis(response, X, bias.corr = TRUE, metr.response = "euclidean", metr.X, use = "all", top = NULL, threshold = NULL, return.all = FALSE) } \arguments{ ...
# Linear model: library(ISLR) data("Hitters") d <- na.omit(Hitters) names(d) d$Salary <- log(d$Salary) n <- nrow(d) set.seed(124) train <- sample(1:n,round(n/2)) test <- c(1:n)[-train] # Least-squares regression: reslm <- lm(Salary~.,data=d,subset=train) summary(reslm) predlm <- predict(reslm,newdata=d[test,]) plo...
/AMCR/lasso.R
no_license
rsouza/oeawai
R
false
false
1,004
r
# Linear model: library(ISLR) data("Hitters") d <- na.omit(Hitters) names(d) d$Salary <- log(d$Salary) n <- nrow(d) set.seed(124) train <- sample(1:n,round(n/2)) test <- c(1:n)[-train] # Least-squares regression: reslm <- lm(Salary~.,data=d,subset=train) summary(reslm) predlm <- predict(reslm,newdata=d[test,]) plo...
#' Helper function for 'extract' #' #' @author Alistair Dunn #' @param lines list of lines to process #' "extract.spatialmap" <- function(lines) { if (missing(lines)) stop("ERROR: Missing argument lines") index.start <- (1:length(lines))[substring(lines, 1, 1) == "["][1] index.end <- (1:length(lines)...
/R-libraries/spm/R/extract.spatial.map.R
no_license
alistairdunn1/SPM
R
false
false
815
r
#' Helper function for 'extract' #' #' @author Alistair Dunn #' @param lines list of lines to process #' "extract.spatialmap" <- function(lines) { if (missing(lines)) stop("ERROR: Missing argument lines") index.start <- (1:length(lines))[substring(lines, 1, 1) == "["][1] index.end <- (1:length(lines)...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/layer_points.R \name{ly_points} \alias{ly_points} \title{Add a "points" layer to a Bokeh figure} \usage{ ly_points(fig, x, y = NULL, data = NULL, glyph = 21, color = NULL, alpha = 1, size = 10, hover = NULL, url = NULL, legend = NUL...
/man/ly_points.Rd
permissive
lhsego/rbokeh
R
false
false
6,099
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/layer_points.R \name{ly_points} \alias{ly_points} \title{Add a "points" layer to a Bokeh figure} \usage{ ly_points(fig, x, y = NULL, data = NULL, glyph = 21, color = NULL, alpha = 1, size = 10, hover = NULL, url = NULL, legend = NUL...
# load("/home/owht/KIZ/data/testData/methylation/testMethyperc.RData") # test<-data.frame(testAAA) # # sampleInfo<-read.csv("/home/owht/KIZ/data/testData/methylation/Longevity_families_CM_mRNA_WN_mRNA_lncRNA.csv") # sampleInfo$expre<-rep(0,nrow(sampleInfo)) # sampleInfo$sub<-as.character(sampleInfo$sub) # aM<-t(test[...
/R/MetnAge-class.R
no_license
ritianjiang/MethyAge2
R
false
false
5,268
r
# load("/home/owht/KIZ/data/testData/methylation/testMethyperc.RData") # test<-data.frame(testAAA) # # sampleInfo<-read.csv("/home/owht/KIZ/data/testData/methylation/Longevity_families_CM_mRNA_WN_mRNA_lncRNA.csv") # sampleInfo$expre<-rep(0,nrow(sampleInfo)) # sampleInfo$sub<-as.character(sampleInfo$sub) # aM<-t(test[...
rm(list=ls()) library(ggplot2) library(msnk) library(xtable) dd<-NA O <- list( matrix(c(1,1,1,2.5),nrow = 2 ), matrix(c(1,0,0,2.5),nrow = 2 ), matrix(c(1,-1,-1,2.5),nrow = 2 ), matrix(c(1,0,0,1),nrow = 2 ) ) alfa <- list( c(2,10), c(0,10), c(2,3), c(2,-3), c(2,1), c(2,-1), c(-2,1), c(1,0), c(...
/thesis.R
no_license
RogueStatistician/latex-thesis
R
false
false
3,038
r
rm(list=ls()) library(ggplot2) library(msnk) library(xtable) dd<-NA O <- list( matrix(c(1,1,1,2.5),nrow = 2 ), matrix(c(1,0,0,2.5),nrow = 2 ), matrix(c(1,-1,-1,2.5),nrow = 2 ), matrix(c(1,0,0,1),nrow = 2 ) ) alfa <- list( c(2,10), c(0,10), c(2,3), c(2,-3), c(2,1), c(2,-1), c(-2,1), c(1,0), c(...
\name{fastacf} \alias{fastacf} \title{ Fast Autocorrelation } \description{ Compute the ACF of a signal. } \usage{ fastacf (signal, lag.max = length(signal), window = 'hann', show = TRUE, correct = FALSE) } \arguments{ \item{signal}{The signal, a numeric vector.} \item{lag.max}{The maximu...
/man/fastacf.Rd
no_license
cran/phonTools
R
false
false
1,686
rd
\name{fastacf} \alias{fastacf} \title{ Fast Autocorrelation } \description{ Compute the ACF of a signal. } \usage{ fastacf (signal, lag.max = length(signal), window = 'hann', show = TRUE, correct = FALSE) } \arguments{ \item{signal}{The signal, a numeric vector.} \item{lag.max}{The maximu...
################################# context("cro_fun_df") data(mtcars) mtcars = modify(mtcars,{ var_lab(mpg) = "Miles/(US) gallon" var_lab(cyl) = "Number of cylinders" var_lab(disp) = "Displacement (cu.in.)" var_lab(hp) = "Gross horsepower" var_lab(drat) = "Rear axle ratio" var_lab(wt) = "Weig...
/tests/testthat/test_cro_fun_df_extended.R
no_license
strategist922/expss
R
false
false
11,847
r
################################# context("cro_fun_df") data(mtcars) mtcars = modify(mtcars,{ var_lab(mpg) = "Miles/(US) gallon" var_lab(cyl) = "Number of cylinders" var_lab(disp) = "Displacement (cu.in.)" var_lab(hp) = "Gross horsepower" var_lab(drat) = "Rear axle ratio" var_lab(wt) = "Weig...
#' General Linear Model MCMC Sampling #' #' This function takes in a matrix of predictor variables \code{x} and a vector of data \code{y} and runs a general linear model using uninformative priors. It will require many iterations for the autocorrelation to shrink if the predictors have high multicollinearity. Before us...
/projects/MATH4803Nivitanont/R/UninformedGLM.R
no_license
jeffniv/R
R
false
false
5,478
r
#' General Linear Model MCMC Sampling #' #' This function takes in a matrix of predictor variables \code{x} and a vector of data \code{y} and runs a general linear model using uninformative priors. It will require many iterations for the autocorrelation to shrink if the predictors have high multicollinearity. Before us...
library(MAclinical) ### Name: svm_x ### Title: Classification based on support vector machines using microarray ### data only ### Aliases: svm_x ### Keywords: htest ### ** Examples # load MAclinical library # library(MAclinical) # Generating xlearn, zlearn, ylearn, xtest, ztest xlearn<-matrix(rnorm(3000),30,100)...
/data/genthat_extracted_code/MAclinical/examples/svm.rd.R
no_license
surayaaramli/typeRrh
R
false
false
571
r
library(MAclinical) ### Name: svm_x ### Title: Classification based on support vector machines using microarray ### data only ### Aliases: svm_x ### Keywords: htest ### ** Examples # load MAclinical library # library(MAclinical) # Generating xlearn, zlearn, ylearn, xtest, ztest xlearn<-matrix(rnorm(3000),30,100)...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/nrsaInvasiveSpecies.r \name{nrsaInvasiveSpecies} \alias{nrsaInvasiveSpecies} \title{Calculate NRSA Invasive Species Metrics} \usage{ nrsaInvasiveSpecies(...) } \arguments{ \item{...}{named arguments consisting of data frames containing presen...
/man/nrsaInvasiveSpecies.Rd
no_license
jasonelaw/aquamet
R
false
true
2,165
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/nrsaInvasiveSpecies.r \name{nrsaInvasiveSpecies} \alias{nrsaInvasiveSpecies} \title{Calculate NRSA Invasive Species Metrics} \usage{ nrsaInvasiveSpecies(...) } \arguments{ \item{...}{named arguments consisting of data frames containing presen...
globalVariables(c("fit", "se.fit")) #' @title #' meanPlot #' @description #' This is a simple function designed to facilitate plotting raw #' data along with dots indicating the mean at each x-axis value. #' #' Although this function can be used with any type of data that works #' with \code{plot}, it works best wh...
/R/plot_functions.R
no_license
khaors/AdvancedRPkg
R
false
false
2,558
r
globalVariables(c("fit", "se.fit")) #' @title #' meanPlot #' @description #' This is a simple function designed to facilitate plotting raw #' data along with dots indicating the mean at each x-axis value. #' #' Although this function can be used with any type of data that works #' with \code{plot}, it works best wh...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/expData.R \docType{data} \name{mrna} \alias{mrna} \title{Brain mRNA expression retrieved from the TCGA} \format{Not Available} \source{ \url{https://www.gencodegenes.org/} } \usage{ mrna } \description{ Brain mRNA expression retrieved from th...
/man/mrna.Rd
no_license
tastanlab/NoRCE
R
false
true
372
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/expData.R \docType{data} \name{mrna} \alias{mrna} \title{Brain mRNA expression retrieved from the TCGA} \format{Not Available} \source{ \url{https://www.gencodegenes.org/} } \usage{ mrna } \description{ Brain mRNA expression retrieved from th...
\name{mergeGaussEdges} \alias{mergeGaussEdges} %- Also NEED an '\alias' for EACH other topic documented here. \title{ %% ~~function to do ... ~~ Merge gaussian networks edges } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ This function is called by compareGaussNetworks() to merg...
/man/mergeGaussEdges.Rd
no_license
cran/stringgaussnet
R
false
false
1,236
rd
\name{mergeGaussEdges} \alias{mergeGaussEdges} %- Also NEED an '\alias' for EACH other topic documented here. \title{ %% ~~function to do ... ~~ Merge gaussian networks edges } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ This function is called by compareGaussNetworks() to merg...
/preprocess_yinxy/stroke data preprocessing.R
no_license
John2016/Stroke_dl
R
false
false
2,508
r
library(tidyverse) load("../data/myData.Rdata") df <- d %>% distinct(school) %>% mutate(title = row_number()) %>% mutate_at(vars(title), ~str_pad(., 2, pad = "0") ) ####################################################### render_report = function(school, title) { rmarkdown::render( "main_reports.Rmd"...
/edu_stats_report2020/Params_reports/render.R
no_license
perlatex/tidy_easyuse
R
false
false
605
r
library(tidyverse) load("../data/myData.Rdata") df <- d %>% distinct(school) %>% mutate(title = row_number()) %>% mutate_at(vars(title), ~str_pad(., 2, pad = "0") ) ####################################################### render_report = function(school, title) { rmarkdown::render( "main_reports.Rmd"...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/toposearch.R \name{spr_leaves} \alias{spr_leaves} \title{Modify a graph by regrafting a leaf} \usage{ spr_leaves(graph, fix_outgroup = TRUE) } \arguments{ \item{graph}{An admixture graph} } \value{ A new admixture graph } \description{ Modify...
/man/spr_leaves.Rd
no_license
uqrmaie1/admixtools
R
false
true
352
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/toposearch.R \name{spr_leaves} \alias{spr_leaves} \title{Modify a graph by regrafting a leaf} \usage{ spr_leaves(graph, fix_outgroup = TRUE) } \arguments{ \item{graph}{An admixture graph} } \value{ A new admixture graph } \description{ Modify...
#' Bean #' #' Bean plot. #' #' @inherit Distribution #' @examples #' Bean(rnorm(100)) #' Bean(list(rnorm(100), rexp(100))) #' @importFrom utils modifyList #' @importFrom pryr modify_call #' @export Bean <- function(x, weights = NULL, vertical = FALSE, density.col...
/R/bean.R
no_license
Displayr/flipStandardCharts
R
false
false
5,497
r
#' Bean #' #' Bean plot. #' #' @inherit Distribution #' @examples #' Bean(rnorm(100)) #' Bean(list(rnorm(100), rexp(100))) #' @importFrom utils modifyList #' @importFrom pryr modify_call #' @export Bean <- function(x, weights = NULL, vertical = FALSE, density.col...
#' #' #' #mxAddNewModelData <- function(model=model, data=data, name="default", ...) { # return(mxModel(model,mxData(observed=data,type="raw"),name=name)) #} # mxAddNewModelData <- function(model=model, data=data, name="default", ...) { if(inherits(model,"MxModel") || inherits(model,"MxRAMModel")) { ...
/R/mxAddNewModelData.R
no_license
cran/semtree
R
false
false
706
r
#' #' #' #mxAddNewModelData <- function(model=model, data=data, name="default", ...) { # return(mxModel(model,mxData(observed=data,type="raw"),name=name)) #} # mxAddNewModelData <- function(model=model, data=data, name="default", ...) { if(inherits(model,"MxModel") || inherits(model,"MxRAMModel")) { ...
library(MetabolAnalyze) ### Name: mppca.metabol ### Title: Fit a mixture of probabilistic principal components analysis ### (MPPCA) model to a metabolomic data set via the EM algorithm to ### perform simultaneous dimension reduction and clustering. ### Aliases: mppca.metabol ### Keywords: methods ### ** Examples...
/data/genthat_extracted_code/MetabolAnalyze/examples/mppca.metabol.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
553
r
library(MetabolAnalyze) ### Name: mppca.metabol ### Title: Fit a mixture of probabilistic principal components analysis ### (MPPCA) model to a metabolomic data set via the EM algorithm to ### perform simultaneous dimension reduction and clustering. ### Aliases: mppca.metabol ### Keywords: methods ### ** Examples...
#' Synchronise installed packages between different computers #' #' This function takes a list of installed packages (e.g. from a backup folder) #' and check that all those packages are installed and updated in this computer. #' Note that only packages available in CRAN are installed or updated (that is, #' packages i...
/R/syncpackages.R
no_license
Pakillo/pacotools
R
false
false
1,149
r
#' Synchronise installed packages between different computers #' #' This function takes a list of installed packages (e.g. from a backup folder) #' and check that all those packages are installed and updated in this computer. #' Note that only packages available in CRAN are installed or updated (that is, #' packages i...
args <- commandArgs(trailingOnly=TRUE) nbFiles <- as.integer(args[1]) min <- as.integer(args[2]) max <- as.integer(args[3]) cpt <- 1; color <- rainbow(11); # Ratio output <- sprintf("preysRatioSStagsBStags.png"); png(output); while(cpt <= nbFiles) { filename = sprintf("refactDataRatio_run%d.dat", cpt); graph <- re...
/scriptsArthur/BCK/scriptRatioSStagsBStags.R
no_license
CAThanatos/sferes
R
false
false
2,505
r
args <- commandArgs(trailingOnly=TRUE) nbFiles <- as.integer(args[1]) min <- as.integer(args[2]) max <- as.integer(args[3]) cpt <- 1; color <- rainbow(11); # Ratio output <- sprintf("preysRatioSStagsBStags.png"); png(output); while(cpt <= nbFiles) { filename = sprintf("refactDataRatio_run%d.dat", cpt); graph <- re...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tskfold.R \name{crossv_tskfold} \alias{crossv_tskfold} \alias{crossv_tskfold.data.frame} \alias{crossv_tskfold.grouped_df} \title{Generate cross-validated time-series K-fold test-training pairs} \usage{ crossv_tskfold(data, K, ...) \method{c...
/man/crossv_tskfold.Rd
no_license
jrnold/resamplr
R
false
true
1,757
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tskfold.R \name{crossv_tskfold} \alias{crossv_tskfold} \alias{crossv_tskfold.data.frame} \alias{crossv_tskfold.grouped_df} \title{Generate cross-validated time-series K-fold test-training pairs} \usage{ crossv_tskfold(data, K, ...) \method{c...
context("SEMinR correctly estimates the model orthogonally\n") # Test cases ## Interaction case # seminr syntax for creating measurement model mobi_mm <- measure( reflect("Image", multi_items("IMAG", 1:5)), reflect("Expectation", multi_items("CUEX", 1:3)), reflect("Value", multi_items("P...
/tests/testthat/test-output.r
no_license
GeorgeMZXu/seminr
R
false
false
4,328
r
context("SEMinR correctly estimates the model orthogonally\n") # Test cases ## Interaction case # seminr syntax for creating measurement model mobi_mm <- measure( reflect("Image", multi_items("IMAG", 1:5)), reflect("Expectation", multi_items("CUEX", 1:3)), reflect("Value", multi_items("P...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/distributions.R \name{distributions} \alias{distributions} \title{Analyze each variable and generate a histogram describing it's distribution.} \usage{ distributions(data_analyze, outdir, charts = T) } \arguments{ \item{data_analyze}{a data f...
/man/distributions.Rd
no_license
cran/xray
R
false
true
697
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/distributions.R \name{distributions} \alias{distributions} \title{Analyze each variable and generate a histogram describing it's distribution.} \usage{ distributions(data_analyze, outdir, charts = T) } \arguments{ \item{data_analyze}{a data f...
# load libraries library(data.table) library(tidyverse) library(iNEXT) library(furrr) library(tictoc) # we have some kind of results to read in tic() csamples<-fread("data/new_samples_for_rarefaction_2.csv") logit<-function(x){log(x/(1-x))} invlogit<-function(x)(exp(x)/(1+exp(x))) clev<-invlogit(seq(0.5, 5, 0.25))[ 7 ]...
/scripts/checkplots_for_parallel_amarel/raref_for_test_6.R
no_license
dushoff/diversity_metrics
R
false
false
871
r
# load libraries library(data.table) library(tidyverse) library(iNEXT) library(furrr) library(tictoc) # we have some kind of results to read in tic() csamples<-fread("data/new_samples_for_rarefaction_2.csv") logit<-function(x){log(x/(1-x))} invlogit<-function(x)(exp(x)/(1+exp(x))) clev<-invlogit(seq(0.5, 5, 0.25))[ 7 ]...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils_incos_fun.R \name{inc_numero_justica_tribunal_fun} \alias{inc_numero_justica_tribunal_fun} \alias{inc_classe_fun} \alias{incos} \alias{inc_digito_fun} \alias{inc_data_ajuizamento_fun} \alias{inc_sistema_fun} \alias{inc_proc_el_fun} \ali...
/App/man/incos.Rd
no_license
camilatavarez/inovaCNJ
R
false
true
2,495
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils_incos_fun.R \name{inc_numero_justica_tribunal_fun} \alias{inc_numero_justica_tribunal_fun} \alias{inc_classe_fun} \alias{incos} \alias{inc_digito_fun} \alias{inc_data_ajuizamento_fun} \alias{inc_sistema_fun} \alias{inc_proc_el_fun} \ali...
testlist <- list(Rs = c(-1.9577272327571e+276, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), atmp = numeric(0), relh = c(7.64681398433536e-304, -4.29227809743625e-307, 1.44830160871374e+88, -2.93112217825115e-158, 9.03412394302482e-46, 7.31195213563656e+256, -1.939255246...
/meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615862341-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
473
r
testlist <- list(Rs = c(-1.9577272327571e+276, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), atmp = numeric(0), relh = c(7.64681398433536e-304, -4.29227809743625e-307, 1.44830160871374e+88, -2.93112217825115e-158, 9.03412394302482e-46, 7.31195213563656e+256, -1.939255246...
# Function for testing whether a package exists, if yes, then load, if not, then install. pkgTest <- function(x) { if (!require(x,character.only = TRUE)) { install.packages(x,dep=TRUE) if(!require(x,character.only = TRUE)) stop("Package not found") } }
/pkgTest.R
no_license
jrummyrum/hertie_school_of_governance
R
false
false
266
r
# Function for testing whether a package exists, if yes, then load, if not, then install. pkgTest <- function(x) { if (!require(x,character.only = TRUE)) { install.packages(x,dep=TRUE) if(!require(x,character.only = TRUE)) stop("Package not found") } }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rtMod.R \docType{class} \name{rtMod-class} \alias{rtMod-class} \alias{rtMod} \title{\pkg{rtemis} Supervised Model Class} \description{ R6 Class for \pkg{rtemis} Supervised Models } \details{ Note on terminology: The training set ('x.train') i...
/man/rtMod-class.Rd
no_license
tlarzg/rtemis
R
false
true
6,817
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rtMod.R \docType{class} \name{rtMod-class} \alias{rtMod-class} \alias{rtMod} \title{\pkg{rtemis} Supervised Model Class} \description{ R6 Class for \pkg{rtemis} Supervised Models } \details{ Note on terminology: The training set ('x.train') i...
library(shiny) library(ggplot2) shinyUI(fluidPage( titlePanel("Simple Distributions Graphs Example App"), sidebarLayout( sidebarPanel( radioButtons("dist", "Distribution type:", c("Normal" = "norm", "Uniform" = "unif", "Log-normal" = "lnor...
/ui.R
no_license
maria-pedroto/basic_distributions
R
false
false
920
r
library(shiny) library(ggplot2) shinyUI(fluidPage( titlePanel("Simple Distributions Graphs Example App"), sidebarLayout( sidebarPanel( radioButtons("dist", "Distribution type:", c("Normal" = "norm", "Uniform" = "unif", "Log-normal" = "lnor...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/top_n_plots.R \name{top_n_plots} \alias{top_n_plots} \title{Outputs a bar graph giving the top n in frequency in specified column of dataframe} \usage{ top_n_plots(df, n, colName, color = "default colors") } \arguments{ \item{df}{A dataframe ...
/man/top_n_plots.Rd
no_license
cran/rfishnet2
R
false
true
1,064
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/top_n_plots.R \name{top_n_plots} \alias{top_n_plots} \title{Outputs a bar graph giving the top n in frequency in specified column of dataframe} \usage{ top_n_plots(df, n, colName, color = "default colors") } \arguments{ \item{df}{A dataframe ...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 21838 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 21838 c c Input Parameter (command line, file): c input filename QBFLIB/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#3.E#130.A#48.c#.w#7.s#2.asp/ctrl.e#1.a#3.E#130.A#48.c#.w#7.s#2.asp.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
730
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 21838 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 21838 c c Input Parameter (command line, file): c input filename QBFLIB/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#...
#' @param x input object to plot #' @param by chr string describing aggregation period, passed to \code{\link{aggregate}}. See details for accepted values. #' @param alpha numeric indicating alpha level for confidence intervals in aggregated data. Use \code{NULL} to remove from the plot. #' @param width numeric indicat...
/R/plot.R
permissive
fawda123/WtRegDO
R
false
false
2,091
r
#' @param x input object to plot #' @param by chr string describing aggregation period, passed to \code{\link{aggregate}}. See details for accepted values. #' @param alpha numeric indicating alpha level for confidence intervals in aggregated data. Use \code{NULL} to remove from the plot. #' @param width numeric indicat...
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function # This function creates a special list containing functions to # 1) set a new matrix # 2) get the matix values # 3) set the inverse of matrix # 4) get the inverse of matrix (if calc...
/cachematrix.R
no_license
ganguvamshi/ProgrammingAssignment2
R
false
false
1,360
r
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function # This function creates a special list containing functions to # 1) set a new matrix # 2) get the matix values # 3) set the inverse of matrix # 4) get the inverse of matrix (if calc...
testlist <- list(Beta = 0, CVLinf = -1.37672045511449e-268, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = 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), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 9.9794...
/DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615827542-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
488
r
testlist <- list(Beta = 0, CVLinf = -1.37672045511449e-268, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = 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), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 9.9794...
library(h2o) library(data.table) h2o.init() train <- data.table(read.csv("/Users/MarkDerry/R/Projects/HousingPrice_kaggle/train.csv")) test <- data.table(read.csv("/Users/MarkDerry/R/Projects/HousingPrice_kaggle/test.csv")) colnames(train) <- c("Id","MSSubClass","MSZoning","LotFrontage","LotArea","Street","Alley","L...
/model1.R
no_license
markderry/kaggle_housing_prices
R
false
false
4,774
r
library(h2o) library(data.table) h2o.init() train <- data.table(read.csv("/Users/MarkDerry/R/Projects/HousingPrice_kaggle/train.csv")) test <- data.table(read.csv("/Users/MarkDerry/R/Projects/HousingPrice_kaggle/test.csv")) colnames(train) <- c("Id","MSSubClass","MSZoning","LotFrontage","LotArea","Street","Alley","L...
shinyUI(fluidPage( titlePanel("Demographics by County, 2010"), sidebarLayout( sidebarPanel( p("The demographic map included here was populated with county-by-county data from the 2010 US Census."), selectInput("var", label="Choose a variable to display", ...
/ui.R
no_license
mr-z-ro/census-app
R
false
false
682
r
shinyUI(fluidPage( titlePanel("Demographics by County, 2010"), sidebarLayout( sidebarPanel( p("The demographic map included here was populated with county-by-county data from the 2010 US Census."), selectInput("var", label="Choose a variable to display", ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geom_polygon_interactive.R \name{geom_polygon_interactive} \alias{geom_polygon_interactive} \title{add polygons with tooltips or click actions or double click actions} \usage{ geom_polygon_interactive(mapping = NULL, data = NULL, stat = "iden...
/man/geom_polygon_interactive.Rd
no_license
petrbouchal/ggiraph
R
false
true
2,082
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geom_polygon_interactive.R \name{geom_polygon_interactive} \alias{geom_polygon_interactive} \title{add polygons with tooltips or click actions or double click actions} \usage{ geom_polygon_interactive(mapping = NULL, data = NULL, stat = "iden...
#' prepara dataset de scores a partir dos dados originais HG #' param: i_df -> dataframe com dados do teste HG e coluna de turnover #' return: dataframe com scores calculados #require(dplyr) f_tidy_scores_HG_geral <- function(df_in) { # substitui valores "?" por NA # obs: como estas colunas vieram com "?" fora...
/R/f_tidy_scores_HG_geral.R
no_license
jcassiojr/HumanGuide
R
false
false
2,813
r
#' prepara dataset de scores a partir dos dados originais HG #' param: i_df -> dataframe com dados do teste HG e coluna de turnover #' return: dataframe com scores calculados #require(dplyr) f_tidy_scores_HG_geral <- function(df_in) { # substitui valores "?" por NA # obs: como estas colunas vieram com "?" fora...
# data will be generated from tau1=tau^2, tau2=tau^2/2, and tau3=tau^2/4 library(parallel) simRep <- 5000 # Replication times in one simulation pvalue.true <- .05 # Testing type I error b.var <- c(0) # The set of varaince of random covariates b as random slope smooth <- 1 # measurement error is added to M if smooth = ...
/full simulation/summer/size/seed2/test_seed2_s_2020.R
no_license
wma9/FMRI-project
R
false
false
8,708
r
# data will be generated from tau1=tau^2, tau2=tau^2/2, and tau3=tau^2/4 library(parallel) simRep <- 5000 # Replication times in one simulation pvalue.true <- .05 # Testing type I error b.var <- c(0) # The set of varaince of random covariates b as random slope smooth <- 1 # measurement error is added to M if smooth = ...
#Open the table data<-read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings="?", colClasses = c('character','character','numeric','numeric','numeric','numeric','numeric','numeric','numeric')) #Format Date and Time to Date type date<-data$Date <- as.Date(data$Date, "%d/%m/%Y") #Create subs...
/Plot1.R
no_license
david-carpy/ExData_Plotting1
R
false
false
857
r
#Open the table data<-read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings="?", colClasses = c('character','character','numeric','numeric','numeric','numeric','numeric','numeric','numeric')) #Format Date and Time to Date type date<-data$Date <- as.Date(data$Date, "%d/%m/%Y") #Create subs...
#' Extract data from Fogo Cruzado's API of shootings in Brazil. #' #' \code{get_fogocruzado()} extracts data from shootings and fire gun shots #' from Fogo Cruzado's API (\url{https://api.fogocruzado.org.br/}). #' The function returns a \code{data.frame} where each observation corresponds #' to an occurrence. #' #' @p...
/R/get_fogocruzado.R
no_license
mathiasfls/crossfire
R
false
false
6,106
r
#' Extract data from Fogo Cruzado's API of shootings in Brazil. #' #' \code{get_fogocruzado()} extracts data from shootings and fire gun shots #' from Fogo Cruzado's API (\url{https://api.fogocruzado.org.br/}). #' The function returns a \code{data.frame} where each observation corresponds #' to an occurrence. #' #' @p...
rm(list=ls()) setwd("13428_2016_746_MOESM1_ESM/LBA/") library(rstan) library(parallel) options(mc.cores = 3) #run the Stan model fit <- stan(file='naive_coinflip_model.stan', data = list(tosses=c(0,0,0,1,1,1),n_tosses=6), warmup = 500, iter = 1000, chains = 3) #model...
/13428_2016_746_MOESM1_ESM/LBA/naive_coinflip_model.R
permissive
bjsmith/reversallearning
R
false
false
2,329
r
rm(list=ls()) setwd("13428_2016_746_MOESM1_ESM/LBA/") library(rstan) library(parallel) options(mc.cores = 3) #run the Stan model fit <- stan(file='naive_coinflip_model.stan', data = list(tosses=c(0,0,0,1,1,1),n_tosses=6), warmup = 500, iter = 1000, chains = 3) #model...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/deren.R \docType{data} \name{deren} \alias{deren} \title{Deren prevalence data on child thinness, overweight and obesity} \format{ A tibble with 22 observations on the following 11 variables: \describe{ \item{Age}{postnatal age from 7 to ...
/man/deren.Rd
no_license
statist7/sitar
R
false
true
3,322
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/deren.R \docType{data} \name{deren} \alias{deren} \title{Deren prevalence data on child thinness, overweight and obesity} \format{ A tibble with 22 observations on the following 11 variables: \describe{ \item{Age}{postnatal age from 7 to ...
model.getSerialRBMs = function(model.cfg,layer.cfg,base.cfg,baseRBMup,andsave = FALSE) { numThreads = model.cfg$numThreads order = layer.cfg$order numHidden = layer.cfg$numHidden numEpochs = layer.cfg$numEpochs learnrate = layer.cfg$learningRate lrdecay = layer.cfg$learningRateDecay sectorWidth = ...
/Rsource/model.serial.R
no_license
hendrikTpl/PrecipitationDBN
R
false
false
3,974
r
model.getSerialRBMs = function(model.cfg,layer.cfg,base.cfg,baseRBMup,andsave = FALSE) { numThreads = model.cfg$numThreads order = layer.cfg$order numHidden = layer.cfg$numHidden numEpochs = layer.cfg$numEpochs learnrate = layer.cfg$learningRate lrdecay = layer.cfg$learningRateDecay sectorWidth = ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/youtube_objects.R \name{CommentThreadSnippet} \alias{CommentThreadSnippet} \title{CommentThreadSnippet Object} \usage{ CommentThreadSnippet(canReply = NULL, channelId = NULL, isPublic = NULL, topLevelComment = NULL, totalReplyCount = NULL, ...
/googleyoutubev3.auto/man/CommentThreadSnippet.Rd
permissive
GVersteeg/autoGoogleAPI
R
false
true
1,075
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/youtube_objects.R \name{CommentThreadSnippet} \alias{CommentThreadSnippet} \title{CommentThreadSnippet Object} \usage{ CommentThreadSnippet(canReply = NULL, channelId = NULL, isPublic = NULL, topLevelComment = NULL, totalReplyCount = NULL, ...
x <- c(-0.5,0,1,1,1.5) y <- c(0,0,2,0,0) plot(x,y, lwd = 3,frame =FALSE, type = "1") pbeta(0.75,2,1) qbeta(0.5,2,1)
/intro.R
no_license
PraveenSebastian/Statistical-Inference
R
false
false
123
r
x <- c(-0.5,0,1,1,1.5) y <- c(0,0,2,0,0) plot(x,y, lwd = 3,frame =FALSE, type = "1") pbeta(0.75,2,1) qbeta(0.5,2,1)
library(httr) airport_current <- GET( "http://localhost:8080/otp/routers/current/isochrone", query = list( toPlace = "53.3627432,-2.2729342", # latlong of Manchester Airport fromPlace = "53.3627432,-2.2729342", # latlong of Manchester Airport arriveBy = TRUE, mode = "WALK,TRANSIT...
/isochrone.r
no_license
dannyykimball/TLC-Commute
R
false
false
785
r
library(httr) airport_current <- GET( "http://localhost:8080/otp/routers/current/isochrone", query = list( toPlace = "53.3627432,-2.2729342", # latlong of Manchester Airport fromPlace = "53.3627432,-2.2729342", # latlong of Manchester Airport arriveBy = TRUE, mode = "WALK,TRANSIT...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/correlation.R \name{correlation} \alias{correlation} \title{Correlation Function} \usage{ correlation(year) } \arguments{ \item{year}{The year of the data} } \description{ This function outputs a correlation matrix for all numeric variables i...
/man/correlation.Rd
no_license
tony-924/HW5
R
false
true
401
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/correlation.R \name{correlation} \alias{correlation} \title{Correlation Function} \usage{ correlation(year) } \arguments{ \item{year}{The year of the data} } \description{ This function outputs a correlation matrix for all numeric variables i...
# LIBRERIAS library(dplyr) library(ggplot2) library(lattice) library(reshape2) library(caret) library(mlbench) library(rpart) library(party) library(ROCR) library(forcats) library(corrplot) library(DMwR2) library(class) library(mice) library(e1071) library(lattice) library(DMwR2) library(foreach) library(class) library...
/NachoAriasBarra/Minería de datos/codigo.R
no_license
IABcb/MasterDataScienceRepo
R
false
false
15,137
r
# LIBRERIAS library(dplyr) library(ggplot2) library(lattice) library(reshape2) library(caret) library(mlbench) library(rpart) library(party) library(ROCR) library(forcats) library(corrplot) library(DMwR2) library(class) library(mice) library(e1071) library(lattice) library(DMwR2) library(foreach) library(class) library...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ui.R \name{get_datasets} \alias{get_datasets} \title{Get Datasets} \usage{ get_datasets(dataset_filenames, download_option = "rds", reformat = FALSE, all_lower = TRUE, output_dir_root = NULL, clear_cache = FALSE, ...) } \arguments{ \item{da...
/man/get_datasets.Rd
no_license
LucyMcGowan/rdhs
R
false
true
2,635
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ui.R \name{get_datasets} \alias{get_datasets} \title{Get Datasets} \usage{ get_datasets(dataset_filenames, download_option = "rds", reformat = FALSE, all_lower = TRUE, output_dir_root = NULL, clear_cache = FALSE, ...) } \arguments{ \item{da...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bary2point.r \name{transferPoints} \alias{transferPoints} \title{transfer points between two registered meshes} \usage{ transferPoints(x, mesh1, mesh2, tolwarn = 0.01) } \arguments{ \item{x}{a matrix with 3D-coordinates (or a mesh), positione...
/man/transferPoints.Rd
no_license
zarquon42b/mesheR
R
false
true
1,293
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bary2point.r \name{transferPoints} \alias{transferPoints} \title{transfer points between two registered meshes} \usage{ transferPoints(x, mesh1, mesh2, tolwarn = 0.01) } \arguments{ \item{x}{a matrix with 3D-coordinates (or a mesh), positione...
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { j <- NULL set <- function(y){ x <<- y j <<- NULL } get <- function()x setInverse <- function(inverse) j <<- inverse g...
/cachematrix.R
no_license
JayaSuma-star/ProgrammingAssignment2
R
false
false
736
r
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { j <- NULL set <- function(y){ x <<- y j <<- NULL } get <- function()x setInverse <- function(inverse) j <<- inverse g...
library(lubridate) ##Pulling in and transforming the data power_raw <- read.table("./Project1/household_power_consumption.txt", header = TRUE, sep = ";", stringsAsFactors = FALSE) power_raw$Date <- dmy(power_raw$Date) sobset <- subset(power_raw, Date >= "2007-02-01" & Date <= "2007-02-02") sobset[3:9] <- lapply(so...
/Code/Plot3.R
no_license
AharonYL/ExData_Plotting1
R
false
false
896
r
library(lubridate) ##Pulling in and transforming the data power_raw <- read.table("./Project1/household_power_consumption.txt", header = TRUE, sep = ";", stringsAsFactors = FALSE) power_raw$Date <- dmy(power_raw$Date) sobset <- subset(power_raw, Date >= "2007-02-01" & Date <= "2007-02-02") sobset[3:9] <- lapply(so...
if(RUN_TESTS) { data("champions") test_that("crown() throws the right errors", { expect_error(crown(status ~ circumference + height + spread + species(scientific_name), data = champions), "one-sided") expect_error(crown( ~ circumference + height + spread + scientific_name, data = champions), "three terms")...
/tests/testthat/test-crown.R
no_license
eheinzen/championtrees
R
false
false
412
r
if(RUN_TESTS) { data("champions") test_that("crown() throws the right errors", { expect_error(crown(status ~ circumference + height + spread + species(scientific_name), data = champions), "one-sided") expect_error(crown( ~ circumference + height + spread + scientific_name, data = champions), "three terms")...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calcBootEst.R \name{calcBCaA} \alias{calcBCaA} \title{Calculate BCa acceleration factor} \usage{ calcBCaA(origData, calcStat) } \arguments{ \item{origData}{numeric vector. Original sample.} \item{calcStat}{function. A numeric function that t...
/man/calcBCaA.Rd
permissive
MiguelRodo/ggboot
R
false
true
800
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calcBootEst.R \name{calcBCaA} \alias{calcBCaA} \title{Calculate BCa acceleration factor} \usage{ calcBCaA(origData, calcStat) } \arguments{ \item{origData}{numeric vector. Original sample.} \item{calcStat}{function. A numeric function that t...
/Plots/ggplot bivariate.R
no_license
storopoli/R_Scripts
R
false
false
1,247
r
# # Copyright 2007-2018 The OpenMx Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
/SilveR/R-3.5.1/library/OpenMx/demo/MultipleRegression_MatrixRaw.R
permissive
kevinmiles/SilveR
R
false
false
3,713
r
# # Copyright 2007-2018 The OpenMx Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
## Caching the inverse of a matrix ## In order to cache the inverse of a matrix, a special matrix object is required ## which has the capability to store its inverse as well ## This function receives a matrix data as input ## and has 4 functions ## set and get to set and get the matrix data and setInverse and GetInve...
/cachematrix.R
no_license
SANTHOSHKSHETTY/ProgrammingAssignment2
R
false
false
1,588
r
## Caching the inverse of a matrix ## In order to cache the inverse of a matrix, a special matrix object is required ## which has the capability to store its inverse as well ## This function receives a matrix data as input ## and has 4 functions ## set and get to set and get the matrix data and setInverse and GetInve...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/test-output-contains.R \name{test_output_contains} \alias{test_output_contains} \title{Check whether the student printed something to the console} \usage{ test_output_contains(expr, times = 1, console_output = get_student_output(), incorrec...
/man/test_output_contains.Rd
no_license
selcukfidan47/testwhat
R
false
true
1,335
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/test-output-contains.R \name{test_output_contains} \alias{test_output_contains} \title{Check whether the student printed something to the console} \usage{ test_output_contains(expr, times = 1, console_output = get_student_output(), incorrec...
members.cohclust <- function(cohclust) ## members method for class cohclust { labels(cohclust$dendrogram) } nmembers.cohclust <- function(cohclust) ## nmembers method for class cohclust { length(labels(cohclust$dendrogram)) } plot.cohclust <- function(cohclust, leaflab ='...
/R/cohclust.methods.R
no_license
yaomin/pfclust
R
false
false
2,219
r
members.cohclust <- function(cohclust) ## members method for class cohclust { labels(cohclust$dendrogram) } nmembers.cohclust <- function(cohclust) ## nmembers method for class cohclust { length(labels(cohclust$dendrogram)) } plot.cohclust <- function(cohclust, leaflab ='...
# Figure 1 - Map map <- map_data('world') map <- subset(map, map$long > -160 & map$long < -30) map <- subset(map, map$lat > 20 & map$lat < 83) map_plot <- ggplot(data = data.frame(map), aes(x, y)) + geom_polygon(aes(group=group), color='blue', alpha=0.7) + geom_point(data = data.frame(climate), aes(x = x, y = ...
/R/figures/figure1_map.R
no_license
SimonGoring/NoAnalogueError
R
false
false
584
r
# Figure 1 - Map map <- map_data('world') map <- subset(map, map$long > -160 & map$long < -30) map <- subset(map, map$lat > 20 & map$lat < 83) map_plot <- ggplot(data = data.frame(map), aes(x, y)) + geom_polygon(aes(group=group), color='blue', alpha=0.7) + geom_point(data = data.frame(climate), aes(x = x, y = ...
library(shiny) library(ggplot2) library(ggpubr) options(shiny.maxRequestSize=200*1024^2, shiny.launch.browser = TRUE) # Define server logic server <- function(input, output) { # Render drop down menu to select gene observe({ output$gene1<-renderUI({ expTable <- input$file1 if(is.null(expTable)) ret...
/supp_analysis/dge/SHINY/App.R
no_license
NSafarian/Within_Subject
R
false
false
5,828
r
library(shiny) library(ggplot2) library(ggpubr) options(shiny.maxRequestSize=200*1024^2, shiny.launch.browser = TRUE) # Define server logic server <- function(input, output) { # Render drop down menu to select gene observe({ output$gene1<-renderUI({ expTable <- input$file1 if(is.null(expTable)) ret...
# Patient propagules: do long-term soil archives preserve legacy fungal and bacterial communities? # Benucci GMN, Rennick B, Bonito G. # Michigan State University # PloSONE journal # IF YOU USE THIS CODE, PLEASE CITE THE RELATED PAPER. YOU CAN FIND MORE # DETAILS ON GITHUB AT THIS LINK https://github.com/Gian77/Scient...
/Benucci_etal_2020_Patient_Propagules/S2_File_R_scripts_revised.R
permissive
Gian77/Scientific-Papers-R-Code
R
false
false
122,964
r
# Patient propagules: do long-term soil archives preserve legacy fungal and bacterial communities? # Benucci GMN, Rennick B, Bonito G. # Michigan State University # PloSONE journal # IF YOU USE THIS CODE, PLEASE CITE THE RELATED PAPER. YOU CAN FIND MORE # DETAILS ON GITHUB AT THIS LINK https://github.com/Gian77/Scient...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/render.R \name{confetti_button} \alias{confetti_button} \title{Title} \usage{ confetti_button(button_text = "Click me!", config = "Default") } \arguments{ \item{button_text}{The text of the button, default = 'Click me!'} \item{config}{config...
/man/confetti_button.Rd
no_license
Kiki-Jiji/confetti
R
false
true
453
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/render.R \name{confetti_button} \alias{confetti_button} \title{Title} \usage{ confetti_button(button_text = "Click me!", config = "Default") } \arguments{ \item{button_text}{The text of the button, default = 'Click me!'} \item{config}{config...
mcmc_sampler.mfbvar_minn_csv <- function(x, ...){ n_vars <- ncol(x$Y) if (!(!is.null(x$Y) && !is.null(x$n_lags) && !is.null(x$n_burnin) && !is.null(x$n_reps))) { test_all <- sapply(x, is.null) test_sub <- test_all[c("Y", "n_lags", "n_burnin", "n_reps")] stop("Missing elements: ", paste(names(test_sub)[w...
/R/mcmc_sampler_csv.R
no_license
anonymnous2023-lab/mfbvar
R
false
false
25,638
r
mcmc_sampler.mfbvar_minn_csv <- function(x, ...){ n_vars <- ncol(x$Y) if (!(!is.null(x$Y) && !is.null(x$n_lags) && !is.null(x$n_burnin) && !is.null(x$n_reps))) { test_all <- sapply(x, is.null) test_sub <- test_all[c("Y", "n_lags", "n_burnin", "n_reps")] stop("Missing elements: ", paste(names(test_sub)[w...
SELECTUNDERGOER <- function(speakerID, situation, verb=NULL){ distinctiveness=world$distinctiveness speaker=population[[speakerID]] target=situation[situation$target==1,] distractors=situation[situation$target==0,] personU=target$personU nouns=speaker$nouns[speaker$nouns$person==personU,] nouns=nouns[sample(nrow...
/subroutines/SELECTUNDERGOER.R
no_license
samlestrade/MoLE
R
false
false
2,112
r
SELECTUNDERGOER <- function(speakerID, situation, verb=NULL){ distinctiveness=world$distinctiveness speaker=population[[speakerID]] target=situation[situation$target==1,] distractors=situation[situation$target==0,] personU=target$personU nouns=speaker$nouns[speaker$nouns$person==personU,] nouns=nouns[sample(nrow...
#' Add 2 to a number or vector #' #' @param x A number or vector. #' #' @return \code{y} which is the sum of \code{x} and 2. #' @examples #' buzz1(rnorm(5)) #' buzz1(3) buzz1 <- function(x) { y <- x+2 return(y) }
/R/buzz1.R
no_license
hodgesse1/newFort1
R
false
false
217
r
#' Add 2 to a number or vector #' #' @param x A number or vector. #' #' @return \code{y} which is the sum of \code{x} and 2. #' @examples #' buzz1(rnorm(5)) #' buzz1(3) buzz1 <- function(x) { y <- x+2 return(y) }
setwd("C:/CUSTOM_R_FILES") #setwd("C:/R_MESADATA") CB_L2.5 = -1.3221 CB_U97.5 = 1.834 CB_L25 = -0.5747 CB_U75 = 0.4669 #RESULTS.MATRIX.CTRL = read.table("MESA_X5Balance_test_s4983_noex0tBEXT0.05_PROLONG1200_CHANGETRAITLIM.out", header=T) RESULTS.MATRIX.CTRL = read.table("MESA_X5Balance_test_s4997_noext0.9....
/doc/week3/w3p2/Other scripts/Plot_MESAData_outputV3.R
permissive
naturalis/mebioda
R
false
false
9,687
r
setwd("C:/CUSTOM_R_FILES") #setwd("C:/R_MESADATA") CB_L2.5 = -1.3221 CB_U97.5 = 1.834 CB_L25 = -0.5747 CB_U75 = 0.4669 #RESULTS.MATRIX.CTRL = read.table("MESA_X5Balance_test_s4983_noex0tBEXT0.05_PROLONG1200_CHANGETRAITLIM.out", header=T) RESULTS.MATRIX.CTRL = read.table("MESA_X5Balance_test_s4997_noext0.9....
#factors gender=sample(c('M','F'),size = 20,replace = T) summary(gender) genderF=factor(gender) summary(genderF) genderF #nominal type of data () likscale=sample(c('Ex','Good','Satisfactory','Poor'),size = 20,replace = T) summary(likscale) likscaleF=factor(likscale) summary(likscaleF) class(likscaleF) likscaleOF=fac...
/Factors.R
no_license
abani013/analytics1
R
false
false
557
r
#factors gender=sample(c('M','F'),size = 20,replace = T) summary(gender) genderF=factor(gender) summary(genderF) genderF #nominal type of data () likscale=sample(c('Ex','Good','Satisfactory','Poor'),size = 20,replace = T) summary(likscale) likscaleF=factor(likscale) summary(likscaleF) class(likscaleF) likscaleOF=fac...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/updateFit.R \name{updateFit} \alias{updateFit} \title{Update fit} \usage{ updateFit(object) } \arguments{ \item{object}{An \code{"emulatorFit"} object to update.} } \value{ Returns the updated \code{"emulatorFit"} object. } \des...
/man/updateFit.Rd
no_license
Sajnim/MUCM
R
false
true
517
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/updateFit.R \name{updateFit} \alias{updateFit} \title{Update fit} \usage{ updateFit(object) } \arguments{ \item{object}{An \code{"emulatorFit"} object to update.} } \value{ Returns the updated \code{"emulatorFit"} object. } \des...
#' The GOV.UK colour palette #' #' @description \code{\link{govuk_colours}} provides a vector of named #' hexadecimal colour codes from the \href{ #' https://design-system.service.gov.uk/styles/colour/#colour-palette}{GOV.UK #' colour palette}. #' #' @return A named character vector of hexadecimal colour codes. #' #' ...
/R/govuk_colours.R
no_license
mattkerlogue/govplot
R
false
false
837
r
#' The GOV.UK colour palette #' #' @description \code{\link{govuk_colours}} provides a vector of named #' hexadecimal colour codes from the \href{ #' https://design-system.service.gov.uk/styles/colour/#colour-palette}{GOV.UK #' colour palette}. #' #' @return A named character vector of hexadecimal colour codes. #' #' ...
## ----setup, include = FALSE---------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>", cache = TRUE ) ## ------------------------------------------------------------------------ library("rscopus") library("dplyr") library("tidyr") ## ---------------------------------...
/inst/doc/multi_author.R
no_license
cran/rscopus
R
false
false
7,422
r
## ----setup, include = FALSE---------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>", cache = TRUE ) ## ------------------------------------------------------------------------ library("rscopus") library("dplyr") library("tidyr") ## ---------------------------------...
#' @name irf #' @title Impulse Response Function #' @usage irf(x, n.ahead=24, ident=NULL, shockinfo=NULL, save.store=FALSE, #' applyfun=NULL, cores=NULL, verbose=TRUE) #' @param x object of class \code{bvar}. #' @param n.ahead forecasting horizon. #' @param ident preferred identification scheme. #' @param sh...
/R/irf.R
no_license
lnsongxf/BTSM
R
false
false
28,934
r
#' @name irf #' @title Impulse Response Function #' @usage irf(x, n.ahead=24, ident=NULL, shockinfo=NULL, save.store=FALSE, #' applyfun=NULL, cores=NULL, verbose=TRUE) #' @param x object of class \code{bvar}. #' @param n.ahead forecasting horizon. #' @param ident preferred identification scheme. #' @param sh...
#load train and test file train <- read.csv("train_Big.txt") test <- read.csv("test_Big.txt") #add a column test$Item_Outlet_Sales <- 1 #combine the data set combi <- rbind(train, test) #impute missing values with median combi$Item_Weight[is.na(combi$Item_Weight)] <- median(combi$Item_Weight, na.rm = ...
/UsingPCAasPredictors.r
no_license
gsdavis1959/R_examples
R
false
false
3,394
r
#load train and test file train <- read.csv("train_Big.txt") test <- read.csv("test_Big.txt") #add a column test$Item_Outlet_Sales <- 1 #combine the data set combi <- rbind(train, test) #impute missing values with median combi$Item_Weight[is.na(combi$Item_Weight)] <- median(combi$Item_Weight, na.rm = ...
##setwd("C:/Users/ocsuser/Desktop/Coursera work/EDA/") dt <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings ="?") ## read data file head(dt) str(dt) dt2 <- dt[dt$Date %in% c("1/2/2007", "2/2/2007"),] ## new data frame of subset during 2007-02-01~02 dt2$datetime <- strptime(paste(dt2[,1]...
/plot1.R
no_license
jyune15/ExData_Plotting1
R
false
false
640
r
##setwd("C:/Users/ocsuser/Desktop/Coursera work/EDA/") dt <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings ="?") ## read data file head(dt) str(dt) dt2 <- dt[dt$Date %in% c("1/2/2007", "2/2/2007"),] ## new data frame of subset during 2007-02-01~02 dt2$datetime <- strptime(paste(dt2[,1]...
args<-commandArgs(TRUE) ####################################################### # author : wangchao3@staff.sina.com.cn # # predict future flow and write back to table # ####################################################### #args[1] csv filename #args[2] predict days #args[3] if totally update pred_it...
/model/HW_model.r
no_license
benben-yunyun/sina-video_forecast
R
false
false
790
r
args<-commandArgs(TRUE) ####################################################### # author : wangchao3@staff.sina.com.cn # # predict future flow and write back to table # ####################################################### #args[1] csv filename #args[2] predict days #args[3] if totally update pred_it...
library(Cairo) siRNAs = c('scramble','Smad4') datafile = 'data/TI10_summaryStats.csv' data = read.table( datafile, sep=',', header=T, stringsAsFactors=F ) reps = 3 pValCutoff = 0.05 readouts = c('Smad23','pSmad158') colors = c('blue','darkgreen') channels = c(2,2,3) celltypes = c('HCEC') allTr...
/FIGS/insulation/bmpTgfbInsulation_siRNA.r
permissive
adam-coster/dissertation
R
false
false
3,898
r
library(Cairo) siRNAs = c('scramble','Smad4') datafile = 'data/TI10_summaryStats.csv' data = read.table( datafile, sep=',', header=T, stringsAsFactors=F ) reps = 3 pValCutoff = 0.05 readouts = c('Smad23','pSmad158') colors = c('blue','darkgreen') channels = c(2,2,3) celltypes = c('HCEC') allTr...
#' This is an internal function but need to be exported for the function ExecuteSNF.CC() call. #' #' This is Spectral Clustering Algorithm extracted from SNFtools package spectralClustering() with #' a tiny modification. #' @param affinity Similarity matrix #' @param K Number of clusters #' @param type The var...
/R/internal.R
no_license
gregpoore/CancerSubtypes
R
false
false
3,290
r
#' This is an internal function but need to be exported for the function ExecuteSNF.CC() call. #' #' This is Spectral Clustering Algorithm extracted from SNFtools package spectralClustering() with #' a tiny modification. #' @param affinity Similarity matrix #' @param K Number of clusters #' @param type The var...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/app_modules.R \name{plotModuleServer} \alias{plotModuleServer} \title{Interactive plot or table (server-side)} \usage{ plotModuleServer( input, output, session, plotFunction, data, openingstijdenData, toekenningsData = NULL, c...
/reporting-grofwild/man/plotModuleServer.Rd
permissive
inbo/reporting-rshiny-grofwildjacht
R
false
true
2,977
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/app_modules.R \name{plotModuleServer} \alias{plotModuleServer} \title{Interactive plot or table (server-side)} \usage{ plotModuleServer( input, output, session, plotFunction, data, openingstijdenData, toekenningsData = NULL, c...
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y) { x <<- y m <<- NULL } get <- function() x setinv <- function(Solve) m <<- Solve getinv <- f...
/cachematrix.R
no_license
shripalkar/ProgrammingAssignment2
R
false
false
723
r
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y) { x <<- y m <<- NULL } get <- function() x setinv <- function(Solve) m <<- Solve getinv <- f...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/allClass.R \docType{class} \name{LinkDataFrame-class} \alias{LinkDataFrame-class} \title{LinkDataFrame: A S4 class extended from DataFrame An S4 class LinkDataFrame} \description{ The \strong{LinkDataFrame} is extended from the class \strong{...
/man/LinkDataFrame-class.Rd
no_license
jkanche/TreeSummarizedExperiment
R
false
true
956
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/allClass.R \docType{class} \name{LinkDataFrame-class} \alias{LinkDataFrame-class} \title{LinkDataFrame: A S4 class extended from DataFrame An S4 class LinkDataFrame} \description{ The \strong{LinkDataFrame} is extended from the class \strong{...
#' @importFrom reticulate r_to_py import_builtins py_eval py_dict py_call #' @export r_to_py.R6ClassGenerator <- function(x, convert = FALSE) { if(!is.null(x$private_fields) || !is.null(x$private_methods)) stop("Python classes do not support private attributes") inherit <- resolve_py_type_inherits(x$get_inher...
/R/py-classes.R
no_license
DrRoad/keras-1
R
false
false
13,530
r
#' @importFrom reticulate r_to_py import_builtins py_eval py_dict py_call #' @export r_to_py.R6ClassGenerator <- function(x, convert = FALSE) { if(!is.null(x$private_fields) || !is.null(x$private_methods)) stop("Python classes do not support private attributes") inherit <- resolve_py_type_inherits(x$get_inher...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/trav_both_edge.R \name{trav_both_edge} \alias{trav_both_edge} \title{Traverse from one or more selected nodes onto adjacent edges} \usage{ trav_both_edge(graph, conditions = NULL, copy_attrs_from = NULL, copy_attrs_as = NULL, agg = "sum") }...
/man/trav_both_edge.Rd
permissive
lionel-/DiagrammeR
R
false
true
6,175
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/trav_both_edge.R \name{trav_both_edge} \alias{trav_both_edge} \title{Traverse from one or more selected nodes onto adjacent edges} \usage{ trav_both_edge(graph, conditions = NULL, copy_attrs_from = NULL, copy_attrs_as = NULL, agg = "sum") }...
#' Modal Error Handling #' #' Bring up a modal dialog for application errors #' #' Module code will summon a modal dialog to display an error when execution fails, #' something is seriously not allowed, etc. #' This defaults to a generic user-facing message of #' "Sorry, something went wrong. Try again later or let us ...
/R/meh.R
no_license
anngvu/DIVE
R
false
false
1,907
r
#' Modal Error Handling #' #' Bring up a modal dialog for application errors #' #' Module code will summon a modal dialog to display an error when execution fails, #' something is seriously not allowed, etc. #' This defaults to a generic user-facing message of #' "Sorry, something went wrong. Try again later or let us ...
##################################################### # txt保险文档套路 shan_clean_dat<-function(dat){ dat<-shan_clean_remove_pagenumber(dat) word<-paste(dat,collapse = " ") word<-shan_remove_space(shan_str_extract_all("\\d+ 日",word)[[1]],word) word<-shan_remove_space(shan_str_extract_all("\\d+ 天",word)[[1]],word)...
/shan_cn_language_packages/data_cleaning/one_string_method/one_string_method.R
no_license
morindaz/insurance
R
false
false
2,750
r
##################################################### # txt保险文档套路 shan_clean_dat<-function(dat){ dat<-shan_clean_remove_pagenumber(dat) word<-paste(dat,collapse = " ") word<-shan_remove_space(shan_str_extract_all("\\d+ 日",word)[[1]],word) word<-shan_remove_space(shan_str_extract_all("\\d+ 天",word)[[1]],word)...
context("Group metiods") test_that("Group methods", { skip_on_cran() eplusr_option(verbose_info = FALSE) if (!is_avail_eplus(8.8)) install_eplus(8.8) path_idfs <- normalizePath(file.path(eplus_config(8.8)$dir, "ExampleFiles", c("1ZoneDataCenterCRAC_wPumpedDXCoolingCoil.idf", "1ZoneE...
/tests/testthat/test-group.R
permissive
thongle3103/eplusr
R
false
false
7,728
r
context("Group metiods") test_that("Group methods", { skip_on_cran() eplusr_option(verbose_info = FALSE) if (!is_avail_eplus(8.8)) install_eplus(8.8) path_idfs <- normalizePath(file.path(eplus_config(8.8)$dir, "ExampleFiles", c("1ZoneDataCenterCRAC_wPumpedDXCoolingCoil.idf", "1ZoneE...
##download file download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", "power_consumption.zip") ##unzip the file unzip("power_consumption.zip", list=F) ## read file into a data frame power_consumption <- read.csv2("household_power_consumption.txt", na.strings="?") ## c...
/plot4.R
no_license
ruaram/ExData_Plotting1
R
false
false
2,600
r
##download file download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", "power_consumption.zip") ##unzip the file unzip("power_consumption.zip", list=F) ## read file into a data frame power_consumption <- read.csv2("household_power_consumption.txt", na.strings="?") ## c...
library(dplyr) ss.bounds <- readRDS("ss.bounds.rds") alpha <- 0.025 method <- 'fm' scenario <- 5 param <- 1 anal_type <- "sing" ss <- ss.bounds%>% dplyr::filter(method == "fm", scenario.id == scenario) do_val <- 0.2 x1 <- parallel::mclapply(X = 1:10000, mc.cores = parallel::detectCor...
/sim_pgms/fm/do20/2xcontH0_sc5_do20_sing.R
no_license
yuliasidi/nibinom_apply
R
false
false
2,228
r
library(dplyr) ss.bounds <- readRDS("ss.bounds.rds") alpha <- 0.025 method <- 'fm' scenario <- 5 param <- 1 anal_type <- "sing" ss <- ss.bounds%>% dplyr::filter(method == "fm", scenario.id == scenario) do_val <- 0.2 x1 <- parallel::mclapply(X = 1:10000, mc.cores = parallel::detectCor...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{yrly_crime_2018} \alias{yrly_crime_2018} \title{Yearly incident based crime statistics with detailed violations for Winnipeg, Manitoba, municipal code 46064 collected by Statistics Canada. Data ranges from 1998 to ...
/man/yrly_crime_2018.Rd
permissive
jdallmann/winnipegr
R
false
true
1,673
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{yrly_crime_2018} \alias{yrly_crime_2018} \title{Yearly incident based crime statistics with detailed violations for Winnipeg, Manitoba, municipal code 46064 collected by Statistics Canada. Data ranges from 1998 to ...
#' Scatter and trend plot comparison. #' #' @import ggplot2 #' @export #' @param df a data.frame. #' @param x the horizontal axis variable. #' @param y the vertical axis variable. #' @param comparison_var the variable to group by. #' @return a ggplot2 plot object. plot_comparison <- function(df, x, y, comparison_var) {...
/R/plots.R
permissive
potterzot/naptools
R
false
false
647
r
#' Scatter and trend plot comparison. #' #' @import ggplot2 #' @export #' @param df a data.frame. #' @param x the horizontal axis variable. #' @param y the vertical axis variable. #' @param comparison_var the variable to group by. #' @return a ggplot2 plot object. plot_comparison <- function(df, x, y, comparison_var) {...
#Case ver library(gapminder) library(epiDisplay) library(magrittr) library(foreign) library(psych) library(ggplot2) library(AICcmodavg) library(ncdf4) library(raster) library(data.table) library(tidyverse) getwd() setwd("C:\\Users\\Gabriella\\Documents\\Vet Epi\\MSc Project\\Map\\Case Verification") #i...
/Case_verification4.R
no_license
tayl0rina/WestNileVirus_ProcB
R
false
false
7,954
r
#Case ver library(gapminder) library(epiDisplay) library(magrittr) library(foreign) library(psych) library(ggplot2) library(AICcmodavg) library(ncdf4) library(raster) library(data.table) library(tidyverse) getwd() setwd("C:\\Users\\Gabriella\\Documents\\Vet Epi\\MSc Project\\Map\\Case Verification") #i...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/functionals.R \name{filtermap} \alias{filtermap} \title{Filter a list to certain elements, apply a function to those elements, and return the initial list with the changed elements.} \usage{ filtermap(xs, filter_f, map_f) } \arguments{ \item{...
/man/filtermap.Rd
permissive
peterhurford/funtools
R
false
true
650
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/functionals.R \name{filtermap} \alias{filtermap} \title{Filter a list to certain elements, apply a function to those elements, and return the initial list with the changed elements.} \usage{ filtermap(xs, filter_f, map_f) } \arguments{ \item{...
library(sf) library(raster) library(dplyr) library(spData) library(spDataLarge) rotation = function(a){ r = a * pi / 180 #degrees to radians matrix(c(cos(r), sin(r), -sin(r), cos(r)), nrow = 2, ncol = 2) } world_whole = st_union(world) world_cent = st_centroid(world_whole) world_flip = (world_whole - world_cen...
/rotation_tutorial (1).r
no_license
cschwab1/GIS3_Spring2019
R
false
false
352
r
library(sf) library(raster) library(dplyr) library(spData) library(spDataLarge) rotation = function(a){ r = a * pi / 180 #degrees to radians matrix(c(cos(r), sin(r), -sin(r), cos(r)), nrow = 2, ncol = 2) } world_whole = st_union(world) world_cent = st_centroid(world_whole) world_flip = (world_whole - world_cen...
cbdCutPoint0 <- function(myRangeIn,myVecIn){ #myCuts <- classIntervals(myRangeIn, n = nC,intervalClosure="left") myCuts <- classIntervals(myRangeIn, n = nC, style = "fisher",dataPrecision=0) Leg <- findColours(myCuts,myColor1,between="-",under="<",over=">",cutlabels=FALSE) mCols <- f...
/myCBD/myFunctions/archived/cbdCutPoint0.R
no_license
sharygin/CACommunityBurden
R
false
false
577
r
cbdCutPoint0 <- function(myRangeIn,myVecIn){ #myCuts <- classIntervals(myRangeIn, n = nC,intervalClosure="left") myCuts <- classIntervals(myRangeIn, n = nC, style = "fisher",dataPrecision=0) Leg <- findColours(myCuts,myColor1,between="-",under="<",over=">",cutlabels=FALSE) mCols <- f...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/read_heims_fst.R \name{read_heims_fst} \alias{read_heims_fst} \title{Read HEIMS data from decoded fst files} \usage{ read_heims_fst(filename) } \arguments{ \item{filename}{File path to \code{.fst} file of a decoded HEIMS file (\code{\link{dec...
/man/read_heims_fst.Rd
no_license
HughParsonage/heims
R
false
true
485
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/read_heims_fst.R \name{read_heims_fst} \alias{read_heims_fst} \title{Read HEIMS data from decoded fst files} \usage{ read_heims_fst(filename) } \arguments{ \item{filename}{File path to \code{.fst} file of a decoded HEIMS file (\code{\link{dec...
#' \code{distribute_fleet} moves the fishing fleet around #' #' @param pop #' @param effort #' @param fleet #' #' @return a redistributed vector of effort in space #' @export #' #' @examples #' \dontrun{ #' distribute_fleet(pop, effort, fleet) #' } distribute_fleet <- function(pop, effort, p...
/R/distribute_fleet.R
permissive
lennon-thomas/spasm
R
false
false
2,243
r
#' \code{distribute_fleet} moves the fishing fleet around #' #' @param pop #' @param effort #' @param fleet #' #' @return a redistributed vector of effort in space #' @export #' #' @examples #' \dontrun{ #' distribute_fleet(pop, effort, fleet) #' } distribute_fleet <- function(pop, effort, p...
#' Title Computes PR curve for DEG classification #' #' @param sim #' @param DETestoutput #' @author Satabdi Saha #' @return PR plot #' @export #' #' @examples compute_PR_curve<-function(sim,DETestoutput){ require(PRROC) true_model<-rowData(sim)[,"Model"] true_model<-ifelse(true_model== "Unchanged",0,1) fg <- D...
/R/compute_PR_curve.R
no_license
satabdisaha1288/scBT
R
false
false
1,175
r
#' Title Computes PR curve for DEG classification #' #' @param sim #' @param DETestoutput #' @author Satabdi Saha #' @return PR plot #' @export #' #' @examples compute_PR_curve<-function(sim,DETestoutput){ require(PRROC) true_model<-rowData(sim)[,"Model"] true_model<-ifelse(true_model== "Unchanged",0,1) fg <- D...