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
plot4 <- function() { library(dplyr) #Extraction and data preparation filename <- 'household_power_consumption.csv' init_df <- read.csv(filename, colClasses = "character") date_interval <- c("1/2/2007","2/2/2007") filter_df <- subset(init_df,init_df$Date %in% date_interval) filter_df <- mutate(filter_df,Date = ...
/plot4.R
no_license
NB75/ExData_Plotting1
R
false
false
1,486
r
plot4 <- function() { library(dplyr) #Extraction and data preparation filename <- 'household_power_consumption.csv' init_df <- read.csv(filename, colClasses = "character") date_interval <- c("1/2/2007","2/2/2007") filter_df <- subset(init_df,init_df$Date %in% date_interval) filter_df <- mutate(filter_df,Date = ...
# library(maptools) # library(sp) library(sf) # # mySA2s<-states=readShapePoly("C:/Users/amaher2/Downloads/meshblocks/SA2_2021_AUST_GDA2020.shp",verbose=TRUE) # plot(mySA2s) sa2_bnd <- st_read( "C:/Users/amaher2/Downloads/meshblocks/SA2_2021_AUST_GDA2020.shp") install.packages("raster") install.packag...
/geospatial.R
no_license
dranthonymaher/handycode
R
false
false
625
r
# library(maptools) # library(sp) library(sf) # # mySA2s<-states=readShapePoly("C:/Users/amaher2/Downloads/meshblocks/SA2_2021_AUST_GDA2020.shp",verbose=TRUE) # plot(mySA2s) sa2_bnd <- st_read( "C:/Users/amaher2/Downloads/meshblocks/SA2_2021_AUST_GDA2020.shp") install.packages("raster") install.packag...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fastGWASDS.R \name{.fittedValues_exponential} \alias{.fittedValues_exponential} \title{Fit values for binomial model} \usage{ .fittedValues_exponential(mod_values, mod_values_names, x) } \description{ Internal function }
/man/dot-fittedValues_exponential.Rd
permissive
isglobal-brge/dsOmics
R
false
true
299
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fastGWASDS.R \name{.fittedValues_exponential} \alias{.fittedValues_exponential} \title{Fit values for binomial model} \usage{ .fittedValues_exponential(mod_values, mod_values_names, x) } \description{ Internal function }
#R-script analysis of ion intein interactions library(fitdistrplus) library(gtools) library(png) library(grid) library(ggplot2) library(reshape2) library(xtable) library(plyr) library(gridExtra) ############## ############### ##Loading data frames #INT-intein interactions # ion_int<-read.csv('../analysis_data/ion_int_r...
/MD/NAMD/nucl/nucleosome_CHARMM/simul/analysis_scripts_link_zw/int_plot_ions_sym_prof.r
no_license
TienMPhan/MolModEdu
R
false
false
6,767
r
#R-script analysis of ion intein interactions library(fitdistrplus) library(gtools) library(png) library(grid) library(ggplot2) library(reshape2) library(xtable) library(plyr) library(gridExtra) ############## ############### ##Loading data frames #INT-intein interactions # ion_int<-read.csv('../analysis_data/ion_int_r...
rm(list = ls()) library("foreach") library("doSNOW") library("parallel") library("lmom") closeAllConnections() colfunc <- colorRampPalette(c("red", "blue")) min_epy <- 1 min_epy_text = paste0(min_epy, " Events Per Year") max_epy <- 100 max_epy_text = paste0(max_epy, " Events Per Year") S <- 1000 # S <...
/maxstable.R
permissive
ejgumbel/RFragments
R
false
false
4,504
r
rm(list = ls()) library("foreach") library("doSNOW") library("parallel") library("lmom") closeAllConnections() colfunc <- colorRampPalette(c("red", "blue")) min_epy <- 1 min_epy_text = paste0(min_epy, " Events Per Year") max_epy <- 100 max_epy_text = paste0(max_epy, " Events Per Year") S <- 1000 # S <...
FastGabrielGraph <- function(X,Y,PlotIt=FALSE){ # res <- FastGabrielGraph(X,Y) # generates a delaunay graph and removes the edges that don't follow the # empty ball condition => result is a gabriel graph # INPUT # X(1:n) x coordinates of points # Y(1:n) y coordina...
/DbtTools/GraphAlgorithms/R/FastGabrielGraph.R
no_license
markus-flicke/KD_Projekt_1
R
false
false
576
r
FastGabrielGraph <- function(X,Y,PlotIt=FALSE){ # res <- FastGabrielGraph(X,Y) # generates a delaunay graph and removes the edges that don't follow the # empty ball condition => result is a gabriel graph # INPUT # X(1:n) x coordinates of points # Y(1:n) y coordina...
coef_congeneric <- function(x, N = NULL, vcov = TRUE) { if(vcov == FALSE) { colnames(x) <- make.names(colnames(x)) if(is.null(N)) N <- nrow(x) x <- var(x) } name.tempfile <- tempfile() model.cfa <- paste("F:", paste(colnames(x), collapse = ", ")) cat(model.cfa, file = name.tempfile) model.cfa <- cf...
/R/coef_congeneric.R
no_license
chang648/QME
R
false
false
824
r
coef_congeneric <- function(x, N = NULL, vcov = TRUE) { if(vcov == FALSE) { colnames(x) <- make.names(colnames(x)) if(is.null(N)) N <- nrow(x) x <- var(x) } name.tempfile <- tempfile() model.cfa <- paste("F:", paste(colnames(x), collapse = ", ")) cat(model.cfa, file = name.tempfile) model.cfa <- cf...
library(phylosim) ### Name: getRateParam.K80 ### Title: Get the value of a rate parameter ### Aliases: getRateParam.K80 K80.getRateParam getRateParam,K80-method ### ** Examples # construct a K80 object p<-K80(); # set/get a rate parameter setRateParam(p,"Alpha",4) getRateParam(p,"Beta") # get object summary ...
/data/genthat_extracted_code/phylosim/examples/getRateParam.K80.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
335
r
library(phylosim) ### Name: getRateParam.K80 ### Title: Get the value of a rate parameter ### Aliases: getRateParam.K80 K80.getRateParam getRateParam,K80-method ### ** Examples # construct a K80 object p<-K80(); # set/get a rate parameter setRateParam(p,"Alpha",4) getRateParam(p,"Beta") # get object summary ...
\name{naive.bayes} \alias{naive.bayes} \alias{tree.bayes} \alias{predict.bn.naive} \alias{predict.bn.tan} \title{ Naive Bayes classifiers } \description{ Create, fit and perform predictions with naive Bayes and Tree-Augmented naive Bayes (TAN) classifiers. } \usage{ naive.bayes(training, explanatory, data) \meth...
/man/naive.bayes.Rd
no_license
gasse/bnlearn-clone-3.1
R
false
false
4,548
rd
\name{naive.bayes} \alias{naive.bayes} \alias{tree.bayes} \alias{predict.bn.naive} \alias{predict.bn.tan} \title{ Naive Bayes classifiers } \description{ Create, fit and perform predictions with naive Bayes and Tree-Augmented naive Bayes (TAN) classifiers. } \usage{ naive.bayes(training, explanatory, data) \meth...
#8장 애국가 분석하여 워드클라우드 만들기 #wordcloud2 패키지 버그가 있는 경우는 이걸 쓰세요. #install.packages("devtools") #library(devtools) #devtools::install_github("lchiffon/wordcloud2") #KoNLP 패키지 설치 install.packages("KoNLP") #wordcloud2 패키지 설치 install.packages("wordcloud2") library(KoNLP) library(wordcloud2) #useSystemDic() #세종사전 useSejongDi...
/Code/Chapter08/KoNLP.r
no_license
newstars/HelloR
R
false
false
1,993
r
#8장 애국가 분석하여 워드클라우드 만들기 #wordcloud2 패키지 버그가 있는 경우는 이걸 쓰세요. #install.packages("devtools") #library(devtools) #devtools::install_github("lchiffon/wordcloud2") #KoNLP 패키지 설치 install.packages("KoNLP") #wordcloud2 패키지 설치 install.packages("wordcloud2") library(KoNLP) library(wordcloud2) #useSystemDic() #세종사전 useSejongDi...
\name{MiClip.enriched} \alias{MiClip.enriched} \title{ Identify enriched bins } \description{ This function implements the firstHMM and tries to identify enriched bins within CLIP clusters. } \usage{MiClip.enriched(mic,quiet=FALSE) } \arguments{ \item{mic}{ \code{mic} is an ojbect of class "MiClip" returned by ...
/man/MiClip.enriched.Rd
no_license
cran/MiClip
R
false
false
1,771
rd
\name{MiClip.enriched} \alias{MiClip.enriched} \title{ Identify enriched bins } \description{ This function implements the firstHMM and tries to identify enriched bins within CLIP clusters. } \usage{MiClip.enriched(mic,quiet=FALSE) } \arguments{ \item{mic}{ \code{mic} is an ojbect of class "MiClip" returned by ...
\name{plot.cv.standGL} \alias{plot.cv.standGL} \title{plots the cross-validated error curve produced by cv.standGL} \description{ Plots the cross-validated error curve, and confidence bounds for each \code{lambda} in our regularization path.} \usage{ \method{plot}{cv.standGL}(x, ...) } \arguments{ \item{x}{fitted \co...
/man/plot.cv.standGL.Rd
no_license
dankessler/standGL
R
false
false
1,020
rd
\name{plot.cv.standGL} \alias{plot.cv.standGL} \title{plots the cross-validated error curve produced by cv.standGL} \description{ Plots the cross-validated error curve, and confidence bounds for each \code{lambda} in our regularization path.} \usage{ \method{plot}{cv.standGL}(x, ...) } \arguments{ \item{x}{fitted \co...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/search_NA.R \name{search_NA} \alias{search_NA} \title{Ricerca NA} \usage{ search_NA(data, exclude = NULL) } \arguments{ \item{data}{data.frame} \item{exclude}{numeric. Esclude le colonne corrispondenti. Viene usato se certe colonne sono tras...
/man/search_NA.Rd
no_license
ablanda/Esame
R
false
true
757
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/search_NA.R \name{search_NA} \alias{search_NA} \title{Ricerca NA} \usage{ search_NA(data, exclude = NULL) } \arguments{ \item{data}{data.frame} \item{exclude}{numeric. Esclude le colonne corrispondenti. Viene usato se certe colonne sono tras...
options(stringsAsFactors=F) library(rgdal) library(rgeos) library(foreign) library(classInt) library(RColorBrewer) ### Putting together the ward data dir_media = "/media/devans/KINGSTON/misc/election_dot_map" ### Ward data wrds = readOGR( dsn=dir_media, layer="wards_2011" ) ### Election Results from 2012 elec...
/misc_scripts/wards_scratchspace.r
no_license
Dave-Evans/GeRgraphyPresentation
R
false
false
3,875
r
options(stringsAsFactors=F) library(rgdal) library(rgeos) library(foreign) library(classInt) library(RColorBrewer) ### Putting together the ward data dir_media = "/media/devans/KINGSTON/misc/election_dot_map" ### Ward data wrds = readOGR( dsn=dir_media, layer="wards_2011" ) ### Election Results from 2012 elec...
\name{summarise} \alias{summarise} \alias{summarize} \title{Summarise a data frame.} \usage{ summarise(.data, ...) } \arguments{ \item{.data}{the data frame to be summarised} \item{...}{further arguments of the form var = value} } \description{ Summarise works in an analogous way to \code{\link{transform}}, ...
/man/summarise.Rd
no_license
akulkailwoo/plyr
R
false
false
907
rd
\name{summarise} \alias{summarise} \alias{summarize} \title{Summarise a data frame.} \usage{ summarise(.data, ...) } \arguments{ \item{.data}{the data frame to be summarised} \item{...}{further arguments of the form var = value} } \description{ Summarise works in an analogous way to \code{\link{transform}}, ...
function (x, y) { e <- get("data.env", .GlobalEnv) e[["cpp_ham_dist_mat"]][[length(e[["cpp_ham_dist_mat"]]) + 1]] <- list(x = x, y = y) .Call("_jiebaR_cpp_ham_dist_mat", x, y) }
/valgrind_test_dir/cpp_ham_dist_mat-test.R
no_license
akhikolla/RcppDeepStateTest
R
false
false
200
r
function (x, y) { e <- get("data.env", .GlobalEnv) e[["cpp_ham_dist_mat"]][[length(e[["cpp_ham_dist_mat"]]) + 1]] <- list(x = x, y = y) .Call("_jiebaR_cpp_ham_dist_mat", x, y) }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/blblm.R \docType{package} \name{blblm-package} \title{blblm: Linear Regression with a Bag of Little Bootstraps} \description{ Functions related to using little bootstraps to make linear models. Support for parallelism and CSV file reading is ...
/man/blblm-package.Rd
permissive
A10theHero/blblm
R
false
true
392
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/blblm.R \docType{package} \name{blblm-package} \title{blblm: Linear Regression with a Bag of Little Bootstraps} \description{ Functions related to using little bootstraps to make linear models. Support for parallelism and CSV file reading is ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ds.exactHWE.R \name{ds.exactHWE} \alias{ds.exactHWE} \title{Hardy-Weinberg Equilibrium testing} \usage{ ds.exactHWE( genoData, chromosome = "all", geno.counts = TRUE, block.size = 5000, permute = FALSE, controls_column = NULL, d...
/man/ds.exactHWE.Rd
permissive
isglobal-brge/dsOmicsClient
R
false
true
2,981
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ds.exactHWE.R \name{ds.exactHWE} \alias{ds.exactHWE} \title{Hardy-Weinberg Equilibrium testing} \usage{ ds.exactHWE( genoData, chromosome = "all", geno.counts = TRUE, block.size = 5000, permute = FALSE, controls_column = NULL, d...
library(MASS) test <- read.csv("../input/test.csv") train <- read.csv("../input/train.csv") head(train) str(train) summary(train) train$Pclass <- factor(train$Pclass) train$Survived <- factor(train$Survived) test$Pclass <- factor(test$Pclass) NAvalue_train <- sapply(train, function(x) sum(is.na(x))) MissingNA_train <- ...
/src/r/kernels/macrosp-logistic-regression-titanic-dataset/script/logistic-regression-titanic-dataset.r
no_license
PRL-PRG/trustworthy-titanic
R
false
false
1,497
r
library(MASS) test <- read.csv("../input/test.csv") train <- read.csv("../input/train.csv") head(train) str(train) summary(train) train$Pclass <- factor(train$Pclass) train$Survived <- factor(train$Survived) test$Pclass <- factor(test$Pclass) NAvalue_train <- sapply(train, function(x) sum(is.na(x))) MissingNA_train <- ...
#'Request client token #' #'Use this function to request client data #' #'@param client_data list of clientId & clientSecret #'@param cfg list of package options, created by created by [config()] #'@export #' request_token <- function(client_data, cfg) { url <- cfg['url'] fullUrl <- paste(url, "/api/v1/au...
/R/request.R
no_license
bahasa-ai/klasifikasi-r
R
false
false
2,838
r
#'Request client token #' #'Use this function to request client data #' #'@param client_data list of clientId & clientSecret #'@param cfg list of package options, created by created by [config()] #'@export #' request_token <- function(client_data, cfg) { url <- cfg['url'] fullUrl <- paste(url, "/api/v1/au...
#!/usr/bin/env Rscript #error rm(list=ls()) #setwd("~/Dropbox/Projects/032_Coexistence_mechanisms/src/levins_metapopulation/") require(data.table) require(RColorBrewer) source("util/figure_functions.R") source("util/filled.contour3.R") ################################### # Load output data ##########################...
/levins_metapopulation/plot_matchcor_out_array.R
no_license
adamtclark/coexistence_scale
R
false
false
12,843
r
#!/usr/bin/env Rscript #error rm(list=ls()) #setwd("~/Dropbox/Projects/032_Coexistence_mechanisms/src/levins_metapopulation/") require(data.table) require(RColorBrewer) source("util/figure_functions.R") source("util/filled.contour3.R") ################################### # Load output data ##########################...
get_cm_sym <- function(size) { cm <- vector(mode = "character", length = size ** 2) k <- 1 for(i in seq_len(size)) { for(j in seq_len(size)) { k_value <- str_glue("k{i}{j}") if(i > j) k_value <- str_glue("k{j}{i}") cm[[k]] <- k_value k <- k + 1 } }...
/R/matrix_utils.R
permissive
jandraor/SEIR_cohorts_calibration
R
false
false
327
r
get_cm_sym <- function(size) { cm <- vector(mode = "character", length = size ** 2) k <- 1 for(i in seq_len(size)) { for(j in seq_len(size)) { k_value <- str_glue("k{i}{j}") if(i > j) k_value <- str_glue("k{j}{i}") cm[[k]] <- k_value k <- k + 1 } }...
#Bonus Exercise: Regular Expressions Matching #Maggi Kraft #Programming for biologists Fall 2016 x="It was the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness, it was the epoch of belief, it was the epoch of incredulity, it it was the season of Light, it was the seaso...
/bonus_rgex.R
no_license
pearselab/r-intro-MaggiK
R
false
false
3,357
r
#Bonus Exercise: Regular Expressions Matching #Maggi Kraft #Programming for biologists Fall 2016 x="It was the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness, it was the epoch of belief, it was the epoch of incredulity, it it was the season of Light, it was the seaso...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/nplcm_plot_group_etiology.R \name{nplcm_plot_group_etiology} \alias{nplcm_plot_group_etiology} \title{Plot viral etiology posterior and distribution within bacterial and viral etiologies} \usage{ nplcm_plot_group_etiology(DIR_NPLCM, k...
/man/nplcm_plot_group_etiology.Rd
permissive
swihart/nplcm
R
false
false
965
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/nplcm_plot_group_etiology.R \name{nplcm_plot_group_etiology} \alias{nplcm_plot_group_etiology} \title{Plot viral etiology posterior and distribution within bacterial and viral etiologies} \usage{ nplcm_plot_group_etiology(DIR_NPLCM, k...
get_vars_by_code <- function(df, type, code) { if (type == "manual") { p_change <- "[_a-zA-Z]\\w*+(?!\\()" change <- str_extract_all(code, p_change)[[1]] change <- intersect(colnames(df), change) p_new <- "(?<=(^|\n))[_a-zA-Z]\\w*+(?!\\()" new <- str_extract_all(code, p_new)[[1]] } else if (type...
/functions/get_vars_by_code.R
no_license
Allan-Mo/psbc_risk_shiny
R
false
false
1,326
r
get_vars_by_code <- function(df, type, code) { if (type == "manual") { p_change <- "[_a-zA-Z]\\w*+(?!\\()" change <- str_extract_all(code, p_change)[[1]] change <- intersect(colnames(df), change) p_new <- "(?<=(^|\n))[_a-zA-Z]\\w*+(?!\\()" new <- str_extract_all(code, p_new)[[1]] } else if (type...
# mcp_plotting.R # Sarah Heidmann # Created 22 Jan 2018 # Modified 3 Jun 2020 # Summary: Plots minimum convex polygons (MCPs) for Brewers Bay mutton snapper # Data inputs: # - dataframes containing points depicting MCPs (exported from mcp_creation.R) # - dataframe containing points for Brewers Bay land polyg...
/scripts/mcp_plotting.R
no_license
sheidmann/Mutton_PAT_Brewers
R
false
false
8,281
r
# mcp_plotting.R # Sarah Heidmann # Created 22 Jan 2018 # Modified 3 Jun 2020 # Summary: Plots minimum convex polygons (MCPs) for Brewers Bay mutton snapper # Data inputs: # - dataframes containing points depicting MCPs (exported from mcp_creation.R) # - dataframe containing points for Brewers Bay land polyg...
#' Creating a Table of Summary Statistics #' #' This function takes three inputs: a dataframe, a grouping variable x, and an outcome y, and returns a table of summary statistics grouped by the x variable. The table contains commonly-requested parametric and nonparametric summary statistics, and the results can be passe...
/R/scaff_sumtable.R
no_license
mon4004/datascaffold
R
false
false
2,771
r
#' Creating a Table of Summary Statistics #' #' This function takes three inputs: a dataframe, a grouping variable x, and an outcome y, and returns a table of summary statistics grouped by the x variable. The table contains commonly-requested parametric and nonparametric summary statistics, and the results can be passe...
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/1615827549-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
486
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(esc) ### Name: combine_esc ### Title: Combine one or more 'esc' objects into a data frame ### Aliases: combine_esc ### ** Examples e1 <- esc_2x2(grp1yes = 30, grp1no = 50, grp2yes = 40, grp2no = 45, study = "Study 1") e2 <- esc_2x2(grp1yes = 30, grp1no = 50, grp2yes = 40, grp2no = 45, ...
/data/genthat_extracted_code/esc/examples/combine_esc.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
605
r
library(esc) ### Name: combine_esc ### Title: Combine one or more 'esc' objects into a data frame ### Aliases: combine_esc ### ** Examples e1 <- esc_2x2(grp1yes = 30, grp1no = 50, grp2yes = 40, grp2no = 45, study = "Study 1") e2 <- esc_2x2(grp1yes = 30, grp1no = 50, grp2yes = 40, grp2no = 45, ...
# Downloads necessary packages for the program # library(lubridate) # Creates a folder called "Exploaratory Data Analysis - Project 1" under the working directory, # # if one does not already exist. # if(!file.exists("./Exploratory Data Analysis...
/plot3.R
no_license
StephanieRevels/ExData_Plotting1
R
false
false
2,133
r
# Downloads necessary packages for the program # library(lubridate) # Creates a folder called "Exploaratory Data Analysis - Project 1" under the working directory, # # if one does not already exist. # if(!file.exists("./Exploratory Data Analysis...
library(webchem) ### Name: cs_inchi_mol ### Title: Convert a InChI to Molfile ### Aliases: cs_inchi_mol ### ** Examples ## No test: # might fail if API is not available inchi <- paste0("InChI=1S/C17H19NO3/c1-18-7-6-17-10-3-5-13(20)16(17)21-15-12(19)4-", "2-9(14(15)17)8-11(10)18/h2-5,10-11,13,16,19-20H,6-8H2,1H3/t...
/data/genthat_extracted_code/webchem/examples/cs_inchi_mol.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
446
r
library(webchem) ### Name: cs_inchi_mol ### Title: Convert a InChI to Molfile ### Aliases: cs_inchi_mol ### ** Examples ## No test: # might fail if API is not available inchi <- paste0("InChI=1S/C17H19NO3/c1-18-7-6-17-10-3-5-13(20)16(17)21-15-12(19)4-", "2-9(14(15)17)8-11(10)18/h2-5,10-11,13,16,19-20H,6-8H2,1H3/t...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DataDocumentation.R \docType{data} \name{Summary_Margins_2012_BeforeRedef} \alias{Summary_Margins_2012_BeforeRedef} \title{Summary Margins (Before Redef) table for 2012 (2012 schema)} \format{A dataframe with 4632 obs. and 9 variables: \descr...
/man/Summary_Margins_2012_BeforeRedef.Rd
permissive
ccourtUF/useeior
R
false
true
939
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DataDocumentation.R \docType{data} \name{Summary_Margins_2012_BeforeRedef} \alias{Summary_Margins_2012_BeforeRedef} \title{Summary Margins (Before Redef) table for 2012 (2012 schema)} \format{A dataframe with 4632 obs. and 9 variables: \descr...
### input ###### colnameList <- c("Motif", "Consensus", "pVal", "ln_pVal", "qVal", "Num.motifs", "Percent.motifs", "Num.bg.motifs", "Percent.bg.motifs") fileList <- c("HOMER.piRClust_upregulated", "HOMER.piRClust_downregulated", "HOMER.piRClust_strict_upregulated", "HOMER.piRC...
/Mouse/HOMER_Rscript.R
no_license
johnsonpupuLin/SPlab_script
R
false
false
1,841
r
### input ###### colnameList <- c("Motif", "Consensus", "pVal", "ln_pVal", "qVal", "Num.motifs", "Percent.motifs", "Num.bg.motifs", "Percent.bg.motifs") fileList <- c("HOMER.piRClust_upregulated", "HOMER.piRClust_downregulated", "HOMER.piRClust_strict_upregulated", "HOMER.piRC...
##' ---------------------------------------------------------------------------- ##' @title Convex hull computation for our species of interest ##' @date 13/10/2015 ##' @author Damien G. (inspired by Gilles D. and Anne O.B.) ##' @note This script is based on the IUCN Convexe Hull calculation extracted and ##' addapte...
/scripts/0_data_formatting/shrubs_convex_hull_computation.R
no_license
DamienGeorges/briscahub
R
false
false
7,744
r
##' ---------------------------------------------------------------------------- ##' @title Convex hull computation for our species of interest ##' @date 13/10/2015 ##' @author Damien G. (inspired by Gilles D. and Anne O.B.) ##' @note This script is based on the IUCN Convexe Hull calculation extracted and ##' addapte...
# About ==== #' title: "Statistical Analysis Using RStudio" #' subtitle: "Logistic Regression" #' author: "Wan Nor Arifin" # Library ==== # official CRAN library(foreign) library(tidyverse) library(gtsummary) library(ggplot2) library(ggpubr) library(GGally) library(psych) library(rsq) library(broom) library(ResourceSe...
/02-logistic.R
no_license
wnarifin/2021-ppsp-stats-in-R
R
false
false
5,567
r
# About ==== #' title: "Statistical Analysis Using RStudio" #' subtitle: "Logistic Regression" #' author: "Wan Nor Arifin" # Library ==== # official CRAN library(foreign) library(tidyverse) library(gtsummary) library(ggplot2) library(ggpubr) library(GGally) library(psych) library(rsq) library(broom) library(ResourceSe...
suppressPackageStartupMessages({ require(data.table) }) #' Create a list of LMIC locations #' #' this is meant to be run from command line. #' don't hard code paths, provide them as arguments .args <- if (interactive()) c( "LMICargs.txt", "LMIC.txt", "~/Dropbox/covidm_reports/interventions/inputs/../generation...
/X2-LMIC.R
no_license
paultanger/covidm_reports
R
false
false
3,714
r
suppressPackageStartupMessages({ require(data.table) }) #' Create a list of LMIC locations #' #' this is meant to be run from command line. #' don't hard code paths, provide them as arguments .args <- if (interactive()) c( "LMICargs.txt", "LMIC.txt", "~/Dropbox/covidm_reports/interventions/inputs/../generation...
library(gets) ### Name: hpdata ### Title: Hoover and Perez (1999) data ### Aliases: hpdata ### Keywords: datasets Time Series Econometrics Financial Econometrics ### ** Examples ##load Hoover and Perez (1999) data: data(hpdata) ##make quarterly data-matrix of zoo type: newhpdata <- zooreg(hpdata[,-1], start=c(1959...
/data/genthat_extracted_code/gets/examples/hpdata.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
507
r
library(gets) ### Name: hpdata ### Title: Hoover and Perez (1999) data ### Aliases: hpdata ### Keywords: datasets Time Series Econometrics Financial Econometrics ### ** Examples ##load Hoover and Perez (1999) data: data(hpdata) ##make quarterly data-matrix of zoo type: newhpdata <- zooreg(hpdata[,-1], start=c(1959...
#' Dependnecies #' #' Import dependencies, place this in your shiny UI. #' #' @importFrom shiny tags singleton tagList #' #' @return \link[shiny]{tags} containing the necessary dependencies. #' #' @name dependencies #' @export use_sever <- function(){ singleton( tags$head( tags$link(href = "sever-assets/st...
/R/deps.R
permissive
Steen24/sever
R
false
false
463
r
#' Dependnecies #' #' Import dependencies, place this in your shiny UI. #' #' @importFrom shiny tags singleton tagList #' #' @return \link[shiny]{tags} containing the necessary dependencies. #' #' @name dependencies #' @export use_sever <- function(){ singleton( tags$head( tags$link(href = "sever-assets/st...
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) library(rvest) library(httr) library(dplyr) library(jsonlite) library(XML) library(stringr) library...
/provideR/app.R
no_license
PHP2560-Statistical-Programming-R/r-package-yeet-thins
R
false
false
10,320
r
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) library(rvest) library(httr) library(dplyr) library(jsonlite) library(XML) library(stringr) library...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gutenberg_works.R \name{gutenberg_works} \alias{gutenberg_works} \title{Get a filtered table of Gutenberg work metadata} \usage{ gutenberg_works(..., languages = "en", only_text = TRUE, rights = c("Public domain in the USA.", "None"), disti...
/man/gutenberg_works.Rd
permissive
jimhester/gutenbergr
R
false
true
2,879
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gutenberg_works.R \name{gutenberg_works} \alias{gutenberg_works} \title{Get a filtered table of Gutenberg work metadata} \usage{ gutenberg_works(..., languages = "en", only_text = TRUE, rights = c("Public domain in the USA.", "None"), disti...
\name{redisFlushAll} \alias{redisFlushAll} \title{Delete all keys and values from all databases.} \description{ Delete all keys and values from all databases, not just the currently selected one.} \usage{ redisFlushAll() } \value{Returns TRUE if successful, FALSE otherwise. } \references{ http://code.google.com/p/redi...
/man/redisFlushAll.Rd
permissive
qwzybug/rredis
R
false
false
463
rd
\name{redisFlushAll} \alias{redisFlushAll} \title{Delete all keys and values from all databases.} \description{ Delete all keys and values from all databases, not just the currently selected one.} \usage{ redisFlushAll() } \value{Returns TRUE if successful, FALSE otherwise. } \references{ http://code.google.com/p/redi...
df<-data check_questions_in_questionnaire<-function(df,questionnaire){ }
/R/match_inputs.R
no_license
sharonorengo/hypegrammaR
R
false
false
76
r
df<-data check_questions_in_questionnaire<-function(df,questionnaire){ }
require(ggsci) require(ggpubr) require(ggplot2) require(ggrepel) source("../Cancer_HiC_data_TAD_DA/utils_fct.R") source("revision_settings.R") require(stringr) plotType <- "png" myWidthGG <- 7 myHeightGG <- 5 myHeight <- 400 myWidth <- 400 plotCex <- 1.2 tadSignifThresh <- 0.01 ### - discardPF => discard the purit...
/revision_expressionLevel_cptmts_notPF.R
no_license
marzuf/v2_Yuanlong_Cancer_HiC_data_TAD_DA
R
false
false
10,744
r
require(ggsci) require(ggpubr) require(ggplot2) require(ggrepel) source("../Cancer_HiC_data_TAD_DA/utils_fct.R") source("revision_settings.R") require(stringr) plotType <- "png" myWidthGG <- 7 myHeightGG <- 5 myHeight <- 400 myWidth <- 400 plotCex <- 1.2 tadSignifThresh <- 0.01 ### - discardPF => discard the purit...
# Loading packages -------------------------------------------------------- library(bayesrules) library(rstanarm) library(bayesplot) library(tidyverse) library(tidybayes) library(devtools) #### installing bayesrules package # install_github("bayes-rules/bayesrules") # Data Wrangling -------------------------------...
/R/00-setup.R
no_license
aloy/uscots-2021
R
false
false
953
r
# Loading packages -------------------------------------------------------- library(bayesrules) library(rstanarm) library(bayesplot) library(tidyverse) library(tidybayes) library(devtools) #### installing bayesrules package # install_github("bayes-rules/bayesrules") # Data Wrangling -------------------------------...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/nwos_weights_stratum_area_replicates_state.R \name{nwos_weights_stratum_area_replicates_state} \alias{nwos_weights_stratum_area_replicates_state} \title{NWOS Stratum Areas for Replicates by State} \usage{ nwos_stratum_area_apply(index.rep, in...
/man/nwos_weights_stratum_area_replicates_state.Rd
no_license
familyforestresearchcenter/nwos
R
false
true
1,312
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/nwos_weights_stratum_area_replicates_state.R \name{nwos_weights_stratum_area_replicates_state} \alias{nwos_weights_stratum_area_replicates_state} \title{NWOS Stratum Areas for Replicates by State} \usage{ nwos_stratum_area_apply(index.rep, in...
## Data files have been downloaded. ## Load the NEI & SCC data frames. NEI <- readRDS("./data/summarySCC_PM25.rds") SCC <- readRDS("./data/Source_Classification_Code.rds") ## Aggregate by sum the total emissions by year aggTotals <- aggregate(Emissions ~ year, NEI, sum) png("plot1.png",width=720,height=480,units="px"...
/plot1.R
no_license
fleclee/ExData_Plotting2
R
false
false
571
r
## Data files have been downloaded. ## Load the NEI & SCC data frames. NEI <- readRDS("./data/summarySCC_PM25.rds") SCC <- readRDS("./data/Source_Classification_Code.rds") ## Aggregate by sum the total emissions by year aggTotals <- aggregate(Emissions ~ year, NEI, sum) png("plot1.png",width=720,height=480,units="px"...
# OpenSilex API # # No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # # OpenAPI spec version: 1.0.0-rc+2 # # Generated by: https://github.com/swagger-api/swagger-codegen.git #' ObservationSummary Class #' #' @field collector #' @field observationDbId #' @field ...
/R/ObservationSummary.r
no_license
OpenSILEX/opensilexClientToolsR
R
false
false
7,030
r
# OpenSilex API # # No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # # OpenAPI spec version: 1.0.0-rc+2 # # Generated by: https://github.com/swagger-api/swagger-codegen.git #' ObservationSummary Class #' #' @field collector #' @field observationDbId #' @field ...
################## # Code Snipped-1 ################## # Example of typical two dimensional data # A demo dataset "students" with typical layout. This data contains # two students' exam score of "math", "literature" and "language" in # different term exam. students <- data.frame(sid=c(1,1,2,2), ...
/book/packt/Data.Manipulation.with.R/Chapter 4/code_list_chapter_4.R
no_license
xenron/sandbox-da-r
R
false
false
1,904
r
################## # Code Snipped-1 ################## # Example of typical two dimensional data # A demo dataset "students" with typical layout. This data contains # two students' exam score of "math", "literature" and "language" in # different term exam. students <- data.frame(sid=c(1,1,2,2), ...
# Truncation functions --------------------------------------------------- ## Calculates the probability on truncated outwards normal distribution calcProbDoubleTrunc <- function(x, lower.bound, upper.bound, mean, sd) { trunc.part <- pnorm(upper.bound, mean, sd) - pnorm(lower.bound, mean, sd) return((pnorm(min(lo...
/R/Truncation_functions.R
no_license
tfrostig/PSAT
R
false
false
4,746
r
# Truncation functions --------------------------------------------------- ## Calculates the probability on truncated outwards normal distribution calcProbDoubleTrunc <- function(x, lower.bound, upper.bound, mean, sd) { trunc.part <- pnorm(upper.bound, mean, sd) - pnorm(lower.bound, mean, sd) return((pnorm(min(lo...
install.packages("readxl") install.packages("dplyr") installed.packages("tidyverse") library(tidyverse) library(dplyr) library(readxl) #PART 1 awards_test <- read_excel("Awards_Test.xlsx") regions <- read_excel("AMP_Regions_MY19.xlsx") measures <- read_excel("Measure List.xlsx") #Join Data data <- merge(x=awards_test,...
/Healthcare Award.R
no_license
khristionk2/Healthcare-Award
R
false
false
5,630
r
install.packages("readxl") install.packages("dplyr") installed.packages("tidyverse") library(tidyverse) library(dplyr) library(readxl) #PART 1 awards_test <- read_excel("Awards_Test.xlsx") regions <- read_excel("AMP_Regions_MY19.xlsx") measures <- read_excel("Measure List.xlsx") #Join Data data <- merge(x=awards_test,...
library(lubridate) tabla=read.csv("power.txt",header=TRUE,sep = ";") copia=copy(tabla) copia[,1]=as.Date(copia[,1],"%d/%m/%Y") copia=copia[copia$Date>="2007-02-01",] copia=copia[copia$Date<="2007-02-02",] copia[,3]=as.numeric(copia[,3]) copia[,4]=as.numeric(copia[,4]) copia[,5]=as.numeric(copia[,5]) copia[,6]=...
/Plot3.R
no_license
ceche1212/ExData_Plotting1
R
false
false
942
r
library(lubridate) tabla=read.csv("power.txt",header=TRUE,sep = ";") copia=copy(tabla) copia[,1]=as.Date(copia[,1],"%d/%m/%Y") copia=copia[copia$Date>="2007-02-01",] copia=copia[copia$Date<="2007-02-02",] copia[,3]=as.numeric(copia[,3]) copia[,4]=as.numeric(copia[,4]) copia[,5]=as.numeric(copia[,5]) copia[,6]=...
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Classifier/cervix.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.45,family="gaussian",standardize=FALSE) sink('./cervix_056.txt',append=TRUE)...
/Model/EN/Classifier/cervix/cervix_056.R
no_license
esbgkannan/QSMART
R
false
false
350
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Classifier/cervix.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.45,family="gaussian",standardize=FALSE) sink('./cervix_056.txt',append=TRUE)...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/varsel.R \name{varsel} \alias{varsel} \title{Variable selection for generalized linear models} \usage{ varsel(fit, d_test = NULL, method = "L1", ns = NULL, nc = NULL, nv_max = NULL, intercept = NULL, verbose = F, ...) } \arguments{ \item{fi...
/man/varsel.Rd
no_license
bgoodri/glmproj
R
false
true
2,099
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/varsel.R \name{varsel} \alias{varsel} \title{Variable selection for generalized linear models} \usage{ varsel(fit, d_test = NULL, method = "L1", ns = NULL, nc = NULL, nv_max = NULL, intercept = NULL, verbose = F, ...) } \arguments{ \item{fi...
questions = data.frame(question = c("I enjoy coding.", "To what extent do you hate or love R?", "Done?"), responseOptions = c("No;Yes", "Strongly hate;Hate;Neither;Love;Strongly love", "No;Maybe;Yes"), questionID = c("enjoyCode", "hateLoveR", "done"), stringsAsFactors = F...
/qualtricsSurveyWriter.R
no_license
wilsone21/courses
R
false
false
2,444
r
questions = data.frame(question = c("I enjoy coding.", "To what extent do you hate or love R?", "Done?"), responseOptions = c("No;Yes", "Strongly hate;Hate;Neither;Love;Strongly love", "No;Maybe;Yes"), questionID = c("enjoyCode", "hateLoveR", "done"), stringsAsFactors = F...
.pdf .aux .log .tex .gz
/tables_and_charts/.gitignore.R
no_license
evenable/SexSpecificExpression
R
false
false
23
r
.pdf .aux .log .tex .gz
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/oneliners.R \name{sourceDir} \alias{sourceDir} \title{Source all R scripts in directory} \usage{ sourceDir(p) } \arguments{ \item{p}{path string} } \description{ Source all R scripts in directory }
/man/sourceDir.Rd
permissive
apoorvalal/LalRUtils
R
false
true
276
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/oneliners.R \name{sourceDir} \alias{sourceDir} \title{Source all R scripts in directory} \usage{ sourceDir(p) } \arguments{ \item{p}{path string} } \description{ Source all R scripts in directory }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_tickers.R \name{get_tickers} \alias{get_tickers} \title{Download list of tickers from a given public index} \usage{ get_tickers() } \value{ Returns a vector. } \description{ This function returns the list of available tickers in the data ...
/man/get_tickers.Rd
permissive
aljrico/rfinance
R
false
true
376
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_tickers.R \name{get_tickers} \alias{get_tickers} \title{Download list of tickers from a given public index} \usage{ get_tickers() } \value{ Returns a vector. } \description{ This function returns the list of available tickers in the data ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bucket_list.R \name{bucket_list} \alias{bucket_list} \title{Create a bucket list.} \usage{ bucket_list( header = NULL, ..., group_name, group_put_max = rep(Inf, length(labels)), options = sortable_options(), class = "default-sorta...
/man/bucket_list.Rd
permissive
thakk/sortable
R
false
true
2,139
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bucket_list.R \name{bucket_list} \alias{bucket_list} \title{Create a bucket list.} \usage{ bucket_list( header = NULL, ..., group_name, group_put_max = rep(Inf, length(labels)), options = sortable_options(), class = "default-sorta...
##----------------------------------------------------------------------------## ## col2alpha: convert color to transparent color ##----------------------------------------------------------------------------## #' @name col2alpha #' @title Convert color to transparent color #' #' @param col Character, the color #' @...
/R/col2alpha.R
permissive
How-to-Learn-to-Code/rclass
R
false
false
552
r
##----------------------------------------------------------------------------## ## col2alpha: convert color to transparent color ##----------------------------------------------------------------------------## #' @name col2alpha #' @title Convert color to transparent color #' #' @param col Character, the color #' @...
rm( list = ls( ) ) # Dependencies require( "data.table" ) # dataset -- (single Nace 2 assignment) load( file = paste0( "outputData/compCases.RData"), verbose = T ) str( dta.cases ) # I will need to get the totals as well dta1 <- copy( dta.cases ) dta2 <- copy( dta.cases ) dta2[ , type := "Total"] dta <- rbind( dta1...
/code/mkt_&_go4_table.R
no_license
mattia-cai/SICOMA_2020
R
false
false
1,353
r
rm( list = ls( ) ) # Dependencies require( "data.table" ) # dataset -- (single Nace 2 assignment) load( file = paste0( "outputData/compCases.RData"), verbose = T ) str( dta.cases ) # I will need to get the totals as well dta1 <- copy( dta.cases ) dta2 <- copy( dta.cases ) dta2[ , type := "Total"] dta <- rbind( dta1...
#PCA plot #changed on 2017-3-10 library(data.table) library(tidyverse,quietly = T) library(stringr,quietly = T) library(argparser,quietly = T) options(stringAsFactors = F) #-----pca_theme----- theme_onmath <- function(base_size = 14){ theme_bw()+ theme(panel.background = element_blank(), panel.grid.mino...
/mRNA_report_plot/PCA.R
no_license
jamebluntcc/BioVis
R
false
false
3,439
r
#PCA plot #changed on 2017-3-10 library(data.table) library(tidyverse,quietly = T) library(stringr,quietly = T) library(argparser,quietly = T) options(stringAsFactors = F) #-----pca_theme----- theme_onmath <- function(base_size = 14){ theme_bw()+ theme(panel.background = element_blank(), panel.grid.mino...
#' Create a pinpoint visualization #' #' @param data A table of data #' @param x A numeric variable. #' @param fill Point color. Either an unquoted column name or valid string/hex color #' @param tooltip Variable to display within tooltip #' @param compare_to the x-intercept to compare against values. Either a numeric ...
/R/pinpoint.R
permissive
daranzolin/pinpoint
R
false
false
5,664
r
#' Create a pinpoint visualization #' #' @param data A table of data #' @param x A numeric variable. #' @param fill Point color. Either an unquoted column name or valid string/hex color #' @param tooltip Variable to display within tooltip #' @param compare_to the x-intercept to compare against values. Either a numeric ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_veg_data_from_NASIS_db.R \name{get_veg_data_from_NASIS_db} \alias{get_veg_data_from_NASIS_db} \title{Get vegetation data from a local NASIS Database} \usage{ get_veg_data_from_NASIS_db(SS = TRUE, dsn = NULL) } \arguments{ \item{S...
/man/get_veg_data_from_NASIS_db.Rd
no_license
cran/soilDB
R
false
true
1,036
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_veg_data_from_NASIS_db.R \name{get_veg_data_from_NASIS_db} \alias{get_veg_data_from_NASIS_db} \title{Get vegetation data from a local NASIS Database} \usage{ get_veg_data_from_NASIS_db(SS = TRUE, dsn = NULL) } \arguments{ \item{S...
library(dirichletprocess) set.seed(100) for (n in c(50,200)){ #Load toy dataset y <- data.matrix(read.csv(paste("R_data/gmm_n",n,".csv",sep = ""),header = FALSE)) #Elicit prior and carry out MCMC n_samp = 4000 k = 1 system.time(dp_gmm <- Diri...
/run_expts/1_gmm_dpmm.R
permissive
deepmindrr/MP
R
false
false
2,088
r
library(dirichletprocess) set.seed(100) for (n in c(50,200)){ #Load toy dataset y <- data.matrix(read.csv(paste("R_data/gmm_n",n,".csv",sep = ""),header = FALSE)) #Elicit prior and carry out MCMC n_samp = 4000 k = 1 system.time(dp_gmm <- Diri...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/CalculatePtranEnergyAndEmissions.R \docType{data} \name{CalculatePtranEnergyAndEmissionsSpecifications} \alias{CalculatePtranEnergyAndEmissionsSpecifications} \title{Specifications list for CalculatePtranEnergyAndEmissions module} \format{A l...
/sources/modules/VETravelPerformance/man/CalculatePtranEnergyAndEmissionsSpecifications.Rd
permissive
rickdonnelly/VisionEval-Dev
R
false
true
771
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/CalculatePtranEnergyAndEmissions.R \docType{data} \name{CalculatePtranEnergyAndEmissionsSpecifications} \alias{CalculatePtranEnergyAndEmissionsSpecifications} \title{Specifications list for CalculatePtranEnergyAndEmissions module} \format{A l...
library(shiny) library(ggplot2) require(zoo) # Define UI for data upload app ---- ui <- fluidPage( # App title ---- titlePanel("QTLSurge"), tags$hr(), # Sidebar layout with input and output definitions ---- sidebarLayout( # Sidebar panel for inputs ---- sidebarPanel( # Input: Select a f...
/QTLsurge.R
permissive
hpli9527/QTLsurge
R
false
false
7,875
r
library(shiny) library(ggplot2) require(zoo) # Define UI for data upload app ---- ui <- fluidPage( # App title ---- titlePanel("QTLSurge"), tags$hr(), # Sidebar layout with input and output definitions ---- sidebarLayout( # Sidebar panel for inputs ---- sidebarPanel( # Input: Select a f...
# Author. JT Lovell # Version. 2.1 # The plot.qtlci function takes QTL models and statistics and makes plots # These plots are split by phenotype and chromosome to illustrate colocalization # The function takes four main datasets # cross- the R/qtl cross object # toplot- a dataframe of statistics. This needs to incl...
/plot.qtlci.R
no_license
smideros/genotyping
R
false
false
7,472
r
# Author. JT Lovell # Version. 2.1 # The plot.qtlci function takes QTL models and statistics and makes plots # These plots are split by phenotype and chromosome to illustrate colocalization # The function takes four main datasets # cross- the R/qtl cross object # toplot- a dataframe of statistics. This needs to incl...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ThreadNet_Misc.R \name{zoomColumn} \alias{zoomColumn} \title{zoomColumn} \usage{ zoomColumn(z) } \arguments{ \item{z}{integer for the zoom level} } \value{ column name for that zoom level ('ZM_n) } \description{ This function takes a slider v...
/man/zoomColumn.Rd
no_license
ThreadNet/ThreadNet
R
false
true
410
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ThreadNet_Misc.R \name{zoomColumn} \alias{zoomColumn} \title{zoomColumn} \usage{ zoomColumn(z) } \arguments{ \item{z}{integer for the zoom level} } \value{ column name for that zoom level ('ZM_n) } \description{ This function takes a slider v...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/River.R \name{shud.rivseg} \alias{shud.rivseg} \title{Generate the river segments table \code{shud.rivseg}} \usage{ shud.rivseg(sl) } \arguments{ \item{sl}{SpatialLinesDataFrame} } \value{ river segments table } \description{ Generate the riv...
/man/shud.rivseg.Rd
permissive
SHUD-System/rSHUD
R
false
true
359
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/River.R \name{shud.rivseg} \alias{shud.rivseg} \title{Generate the river segments table \code{shud.rivseg}} \usage{ shud.rivseg(sl) } \arguments{ \item{sl}{SpatialLinesDataFrame} } \value{ river segments table } \description{ Generate the riv...
####Pruebas de Hipotesis y ANOVA desde R### ##Ponentes: Neftali Eduardo Antonio-Villa y Luisa Fernandez Chirino ##31-Mayo-2021 #####Pruebas de hipótesis==== ##Procedimiento mediante el cual se decide si aceptar la hipótesis nula como no verdadera (RECHAZO) ##Hipótesis: Enunciado que hace referencia a los valores que a...
/Clase_6.R
no_license
TrinyEG/curso_R
R
false
false
22,282
r
####Pruebas de Hipotesis y ANOVA desde R### ##Ponentes: Neftali Eduardo Antonio-Villa y Luisa Fernandez Chirino ##31-Mayo-2021 #####Pruebas de hipótesis==== ##Procedimiento mediante el cual se decide si aceptar la hipótesis nula como no verdadera (RECHAZO) ##Hipótesis: Enunciado que hace referencia a los valores que a...
#행열병합 a=iris b=rbind(a,c(1,2,3,"setosa")) b=rbind(a,c(1,2,3,"setosa",1)) b=rbind(a,c(1,2,4,3,"setosa")) tail(b) str(b) d1=data.frame(Sepal.Length=1,Sepal.Width=1,Petal.Length=1,Petal.Width=1,Species="setosa") b=rbind(a,d1) tail(b) str(b) iris.Sepal=cbind(iris$Sepal.Length,iris$Sepal.Width);head(iris.Sepal) class(ir...
/data_cleanning/행열처리.R
no_license
ohsean93/Rstudy
R
false
false
2,231
r
#행열병합 a=iris b=rbind(a,c(1,2,3,"setosa")) b=rbind(a,c(1,2,3,"setosa",1)) b=rbind(a,c(1,2,4,3,"setosa")) tail(b) str(b) d1=data.frame(Sepal.Length=1,Sepal.Width=1,Petal.Length=1,Petal.Width=1,Species="setosa") b=rbind(a,d1) tail(b) str(b) iris.Sepal=cbind(iris$Sepal.Length,iris$Sepal.Width);head(iris.Sepal) class(ir...
#' Uses POV and fGetPitchCoordinates to give reoriented xy coords of pitch for plotting #' @import data.table #' @export fGetPitchTransformedCoordinates = function( lPitchCoordinates, mOriginCoordinates = NULL, mScreenCoordinates = NULL, mViewBeginsFromCoordinates = NULL, mVectorPointingUpOnScreen = cbin...
/R/fGetPitchTransformedCoordinates.R
permissive
thecomeonman/CodaBonito
R
false
false
4,821
r
#' Uses POV and fGetPitchCoordinates to give reoriented xy coords of pitch for plotting #' @import data.table #' @export fGetPitchTransformedCoordinates = function( lPitchCoordinates, mOriginCoordinates = NULL, mScreenCoordinates = NULL, mViewBeginsFromCoordinates = NULL, mVectorPointingUpOnScreen = cbin...
/ScriptR-master/R intro DataScience/ModeloPredictivoCovid19.R
no_license
kevinloormz/Herramientas
R
false
false
2,337
r
pollutantmean <- function(directory, pollutant, id = 1:332) { # 'directory' is a character vector of length 1 indicating the location # of the csv files. # The 'pollutant' is a character vector of length 1 indicating the name # of the pollutant for which we will calculate the mean; either 'sulfate'...
/pollutantmean.R
no_license
utomoreza/Assignment1_RProgramming_JohnsHopkins
R
false
false
1,873
r
pollutantmean <- function(directory, pollutant, id = 1:332) { # 'directory' is a character vector of length 1 indicating the location # of the csv files. # The 'pollutant' is a character vector of length 1 indicating the name # of the pollutant for which we will calculate the mean; either 'sulfate'...
#' @importFrom data.table rbindlist setDF rbind.match.columns <- function(list_df) { df <- rbindlist(list_df, use.names = TRUE, fill = TRUE) setDF(df) row.names(df) <- NULL df } check_formula_i_and_part <- function(i, part){ if( inherits(i, "formula") && "header" %in% part ){ stop("formula in argument ...
/R/utils.R
no_license
littlehifive/flextable
R
false
false
2,964
r
#' @importFrom data.table rbindlist setDF rbind.match.columns <- function(list_df) { df <- rbindlist(list_df, use.names = TRUE, fill = TRUE) setDF(df) row.names(df) <- NULL df } check_formula_i_and_part <- function(i, part){ if( inherits(i, "formula") && "header" %in% part ){ stop("formula in argument ...
# standardizer script # arguments to pass # a. location of paths # b. desired size OR a standard size for the dataset OR a ratio based reduction to a single sort of size # c. alpha of the rezised images - like .5 # d. name of the new folder which will be dumped into # e. a new dataframe that has all the data with the ...
/Output/standardizer.R
permissive
dungates/ImagePlotting
R
false
false
759
r
# standardizer script # arguments to pass # a. location of paths # b. desired size OR a standard size for the dataset OR a ratio based reduction to a single sort of size # c. alpha of the rezised images - like .5 # d. name of the new folder which will be dumped into # e. a new dataframe that has all the data with the ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/add_n_nodes_ws.R \name{add_n_nodes_ws} \alias{add_n_nodes_ws} \title{Add a multiple of new nodes with edges to or from one or more selected nodes} \usage{ add_n_nodes_ws(graph, n, direction = NULL, type = NULL, label = NULL, rel = NULL) } \...
/man/add_n_nodes_ws.Rd
no_license
yflyzhang/DiagrammeR
R
false
true
2,803
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/add_n_nodes_ws.R \name{add_n_nodes_ws} \alias{add_n_nodes_ws} \title{Add a multiple of new nodes with edges to or from one or more selected nodes} \usage{ add_n_nodes_ws(graph, n, direction = NULL, type = NULL, label = NULL, rel = NULL) } \...
library(rWishart) ### Name: rSingularWishart ### Title: Random Singular Wishart Matrix ### Aliases: rSingularWishart ### ** Examples rSingularWishart(2, 5, diag(1, 20))
/data/genthat_extracted_code/rWishart/examples/rSingularWishart.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
176
r
library(rWishart) ### Name: rSingularWishart ### Title: Random Singular Wishart Matrix ### Aliases: rSingularWishart ### ** Examples rSingularWishart(2, 5, diag(1, 20))
################################## # testes azure 2 # # Kele Rocha Firmiano # # 07/10/19 # ################################## start_time <- Sys.time() ############################## 1_setup_sdmdata ############################## # Packages library(modleR) library(ras...
/teste_azure2.R
no_license
Projeto-BHRD-INMA/teste_azure
R
false
false
4,102
r
################################## # testes azure 2 # # Kele Rocha Firmiano # # 07/10/19 # ################################## start_time <- Sys.time() ############################## 1_setup_sdmdata ############################## # Packages library(modleR) library(ras...
context("Git dates") test_that("Filling in is correct", { current_year <- as.numeric(format(Sys.Date(), "%Y")) expect_equal(format_iso_8601(parse_date("8/21")), paste0(current_year, "-08-21T00:00:00+00:00")) expect_equal(format_iso_8601(parse_date("8/21 15:50")), paste0(current_...
/tests/testthat/test-git.r
no_license
jcheng5/parsedate
R
false
false
1,306
r
context("Git dates") test_that("Filling in is correct", { current_year <- as.numeric(format(Sys.Date(), "%Y")) expect_equal(format_iso_8601(parse_date("8/21")), paste0(current_year, "-08-21T00:00:00+00:00")) expect_equal(format_iso_8601(parse_date("8/21 15:50")), paste0(current_...
\name{cbind.list} \alias{cbind.list} \title{Cbind for list} \usage{ cbind.list(l) } \arguments{ \item{l}{a list} } \description{ Cbind for list } \author{ David Hajage } \keyword{internal}
/man/cbind.list.Rd
no_license
eusebe/remix
R
false
false
198
rd
\name{cbind.list} \alias{cbind.list} \title{Cbind for list} \usage{ cbind.list(l) } \arguments{ \item{l}{a list} } \description{ Cbind for list } \author{ David Hajage } \keyword{internal}
####################################################################### # tcp-lda - test case prioritization with LDA # Copyright (C) 2012 Stephen W. Thomas # # This program 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...
/R/analyzeFaultMatrix.R
no_license
stepthom/tcp.lda
R
false
false
1,463
r
####################################################################### # tcp-lda - test case prioritization with LDA # Copyright (C) 2012 Stephen W. Thomas # # This program 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...
if(!require(shiny)){ install.packages("shiny") library(shiny) } if(!require(ggplot2)){ install.packages("ggplot2") library(ggplot2) } library(dplyr) if(!require(dplyr)){ install.packages("dplyr") library(dplyr) } fluidPage( headerPanel("Monte carlo simulation for stock price"), sidebarLayout( ...
/Monte_Carlo_stocks_animation/ui.R
no_license
kayeschong/r_projects
R
false
false
1,824
r
if(!require(shiny)){ install.packages("shiny") library(shiny) } if(!require(ggplot2)){ install.packages("ggplot2") library(ggplot2) } library(dplyr) if(!require(dplyr)){ install.packages("dplyr") library(dplyr) } fluidPage( headerPanel("Monte carlo simulation for stock price"), sidebarLayout( ...
load('data/objects/accession.df.object.R') library(reshape2) gn=200 gsigs=log(10^(seq(1,3,length.out=gn))) #vector of library sizes reptable=accession.df reptable=reptable[reptable$tissue=='embryo',] libsizes=reptable$library.size samplegroups=c('timepoint','line','collection','prep','seq') reptable=reptable[,c('acc',...
/lme_sketch.R
no_license
pnandak/eRNA_project
R
false
false
1,585
r
load('data/objects/accession.df.object.R') library(reshape2) gn=200 gsigs=log(10^(seq(1,3,length.out=gn))) #vector of library sizes reptable=accession.df reptable=reptable[reptable$tissue=='embryo',] libsizes=reptable$library.size samplegroups=c('timepoint','line','collection','prep','seq') reptable=reptable[,c('acc',...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Style.R \name{getStyle} \alias{getStyle} \title{Get A Style} \usage{ getStyle(styleId) } \arguments{ \item{styleId}{The styleId} } \value{ none } \description{ Gets a specific style by ID. } \concept{Style}
/man/getStyle.Rd
no_license
bpb824/brewerydb
R
false
true
285
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Style.R \name{getStyle} \alias{getStyle} \title{Get A Style} \usage{ getStyle(styleId) } \arguments{ \item{styleId}{The styleId} } \value{ none } \description{ Gets a specific style by ID. } \concept{Style}
n =20; t =142; tstar= min(t, (n*(n+1)/2) - t); P = matrix(1,20,tstar+1); P[1,1]= 0.5; P[1,2] = 1; for (i in 2:20){ for (j in 1:(tstar+1)){ if (j-i <1){ P[i,j] = 0.5*P[i-1, j] } else{ P[i,j] = 0.5*(P[i-1,j-i]+P[i-1,j]) } } } pvalue= 2*P[20,tstar+1]; cat("Pvalue is",pvalue)...
/Introduction_To_Probability_And_Statistics_For_Engineers_And_Scientists_by_Sheldon_M._Ross/CH12/EX12.3.c/Ex12_3c.R
permissive
FOSSEE/R_TBC_Uploads
R
false
false
455
r
n =20; t =142; tstar= min(t, (n*(n+1)/2) - t); P = matrix(1,20,tstar+1); P[1,1]= 0.5; P[1,2] = 1; for (i in 2:20){ for (j in 1:(tstar+1)){ if (j-i <1){ P[i,j] = 0.5*P[i-1, j] } else{ P[i,j] = 0.5*(P[i-1,j-i]+P[i-1,j]) } } } pvalue= 2*P[20,tstar+1]; cat("Pvalue is",pvalue)...
##Function that saves the scale parameters for wind power #' @param training_data The data frame containing the training data #' @return Returns the maximum and minimum used to scale the wind_power #' @export save_power_scale_params <- function(training_data) { wind_p <- training_data$wind_power max_s <- max(w...
/forecasting/scale_params_power.R
no_license
kalebphipps/ppStrategies_wind
R
false
false
1,535
r
##Function that saves the scale parameters for wind power #' @param training_data The data frame containing the training data #' @return Returns the maximum and minimum used to scale the wind_power #' @export save_power_scale_params <- function(training_data) { wind_p <- training_data$wind_power max_s <- max(w...
library(data.table) library(magrittr) library(rstudioapi) setwd(dirname(getActiveDocumentContext()$path)) #------------------------------------------ Define some useful functions ----------------------------------------------------------------------- linkage <- function(gff) { # creates a 2-column table with chi...
/Discard_noncoding_annotation.R
no_license
germaximus/ElongationRate
R
false
false
6,448
r
library(data.table) library(magrittr) library(rstudioapi) setwd(dirname(getActiveDocumentContext()$path)) #------------------------------------------ Define some useful functions ----------------------------------------------------------------------- linkage <- function(gff) { # creates a 2-column table with chi...
# poisson model for count data plotDispEsts( dds)#, ylim = c(1e-6, 1e1) ) hist( res$pvalue, breaks=20, col="grey" ) # create bins using the quantile function qs <- c( 0, quantile( res$baseMean[res$baseMean > 0], 0:7/7 ) ) # "cut" the genes into the bins bins <- cut( res$baseMean, qs ) # rename the levels of the bins ...
/stat_models.R
no_license
maingoc303/NGS-Analysis
R
false
false
4,770
r
# poisson model for count data plotDispEsts( dds)#, ylim = c(1e-6, 1e1) ) hist( res$pvalue, breaks=20, col="grey" ) # create bins using the quantile function qs <- c( 0, quantile( res$baseMean[res$baseMean > 0], 0:7/7 ) ) # "cut" the genes into the bins bins <- cut( res$baseMean, qs ) # rename the levels of the bins ...
n<-9 E<-10^-9 x<-1 y<-((1/2)*(x+(n/x))) cont<-0 while(abs(x-y)>E) { x<-y y<-(1/2)*(x+(n/x)) cont<- cont + 1 } cat("La raiz es ", y, "\n") cat ("El numero de iteraciones fue ", cont)
/Tareas/Raices/Babilonico.R
no_license
vompaula/Analisis_numerico
R
false
false
191
r
n<-9 E<-10^-9 x<-1 y<-((1/2)*(x+(n/x))) cont<-0 while(abs(x-y)>E) { x<-y y<-(1/2)*(x+(n/x)) cont<- cont + 1 } cat("La raiz es ", y, "\n") cat ("El numero de iteraciones fue ", cont)
# Read data from household_power_consupmtion.txt # The text file contains header line, and uses semicolon as separator. # Specify question mark as na string, and specify all column classes. # Only the first 2 columns are treated as character, # and the left ones are all numeric values. data <- read.table("../R/househo...
/plot1.R
no_license
asparagine/ExData_Plotting1
R
false
false
1,298
r
# Read data from household_power_consupmtion.txt # The text file contains header line, and uses semicolon as separator. # Specify question mark as na string, and specify all column classes. # Only the first 2 columns are treated as character, # and the left ones are all numeric values. data <- read.table("../R/househo...
library(e1071) library(plotly) library(factoextra) library(pca3d) library(MASS) setwd("C:\\DesktopPCGamer\\D\\Data\\IPSDS\\Disciplinas\\Project Consulting\\Digital Traces\\DigitalTraces-master\\") source("read_data.R") source("Classification_news_visits.R") set.seed(1) head(per_part) head(df.url1) ...
/classification_urls_Sorted_by_time_id_perc.R
no_license
aniko-b/DigitalTraces
R
false
false
9,729
r
library(e1071) library(plotly) library(factoextra) library(pca3d) library(MASS) setwd("C:\\DesktopPCGamer\\D\\Data\\IPSDS\\Disciplinas\\Project Consulting\\Digital Traces\\DigitalTraces-master\\") source("read_data.R") source("Classification_news_visits.R") set.seed(1) head(per_part) head(df.url1) ...
##cachematrix.R ##This file creates a special matrix object which will solve for the inverse ##of a matrix and store that value in a cach. Future attempts to solve for ##this inverse will retrieve the answer from the cache, saving on computation ##Create a special 'matrix object' that stores a vector, its inverse ...
/cachematrix.R
no_license
MitchellONeill/ProgrammingAssignment2
R
false
false
1,944
r
##cachematrix.R ##This file creates a special matrix object which will solve for the inverse ##of a matrix and store that value in a cach. Future attempts to solve for ##this inverse will retrieve the answer from the cache, saving on computation ##Create a special 'matrix object' that stores a vector, its inverse ...
library(shiny) library(tidyverse) covid19 <- read_csv("https://raw.githubusercontent.com/nytimes/covid-19-data/master/us-states.csv") state <- covid19 %>% select(state) %>% distinct(state) %>% dplyr::arrange(state) %>% pull(state) ui <- fluidPage(selectInput(inputId = "state", ...
/app.R
no_license
CarolinaL13/Week-6
R
false
false
1,087
r
library(shiny) library(tidyverse) covid19 <- read_csv("https://raw.githubusercontent.com/nytimes/covid-19-data/master/us-states.csv") state <- covid19 %>% select(state) %>% distinct(state) %>% dplyr::arrange(state) %>% pull(state) ui <- fluidPage(selectInput(inputId = "state", ...
#----------------------------------------------------------------------------# # File: January 25 R Homework # Author: Dylan Oh # # Created on 23 January 2018, 22:50 #----------------------------------------------------------------------------# # Plotting petal length vs sepal length plot(iris$Sepal.Length,iris$Petal....
/EBIO 1010/EBIO1010_HW_Jan25.R
no_license
dmwo/EBIO-R-Code
R
false
false
1,126
r
#----------------------------------------------------------------------------# # File: January 25 R Homework # Author: Dylan Oh # # Created on 23 January 2018, 22:50 #----------------------------------------------------------------------------# # Plotting petal length vs sepal length plot(iris$Sepal.Length,iris$Petal....
\name{plt_place} \alias{plt_place} \title{Translate numerical plotnik codes for following place to a readable code.} \usage{ plt_place(x) } \arguments{ \item{x}{a vector of numeric vowel codes} } \value{ A vector of readable codes } \description{ Translate numerical plotnik codes for following place to a read...
/man/plt_place.Rd
no_license
iveskins/FAVErtools
R
false
false
672
rd
\name{plt_place} \alias{plt_place} \title{Translate numerical plotnik codes for following place to a readable code.} \usage{ plt_place(x) } \arguments{ \item{x}{a vector of numeric vowel codes} } \value{ A vector of readable codes } \description{ Translate numerical plotnik codes for following place to a read...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/resourceviews_functions.R \name{zoneViews.addResources} \alias{zoneViews.addResources} \title{Add resources to the view.} \usage{ zoneViews.addResources(ZoneViewsAddResourcesRequest, project, zone, resourceView) } \arguments{ \item{ZoneView...
/googleresourceviewsv1beta2.auto/man/zoneViews.addResources.Rd
permissive
GVersteeg/autoGoogleAPI
R
false
true
1,350
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/resourceviews_functions.R \name{zoneViews.addResources} \alias{zoneViews.addResources} \title{Add resources to the view.} \usage{ zoneViews.addResources(ZoneViewsAddResourcesRequest, project, zone, resourceView) } \arguments{ \item{ZoneView...
weighted.faith <- function(my.phylo, my.sample){ weighted.faith.function = function(my.sub.sample){ ## extract the names of species in a community with an abundance greater than zero and use that information to make a pruned phylogeny for that community. tmp.tree = treedata(my.phylo, my.sub.sample[my.sub.sampl...
/R/weighted.faith.R
no_license
NGSwenson/lefse_0.5
R
false
false
1,382
r
weighted.faith <- function(my.phylo, my.sample){ weighted.faith.function = function(my.sub.sample){ ## extract the names of species in a community with an abundance greater than zero and use that information to make a pruned phylogeny for that community. tmp.tree = treedata(my.phylo, my.sub.sample[my.sub.sampl...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/polarity.R \name{print.polarity_count} \alias{print.polarity_count} \title{Prints a polarity_count Object} \usage{ \method{print}{polarity_count}(x, digits = 3, ...) } \arguments{ \item{x}{The polarity_count object.} \item{digits}{Th...
/man/print.polarity_count.Rd
no_license
Maddocent/qdap
R
false
false
426
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/polarity.R \name{print.polarity_count} \alias{print.polarity_count} \title{Prints a polarity_count Object} \usage{ \method{print}{polarity_count}(x, digits = 3, ...) } \arguments{ \item{x}{The polarity_count object.} \item{digits}{Th...
#' Calculation of information criterion #' #' \code{criterion} calculates various information criterion for the algorithms in this package #' @param n Number of observations #' @param loglik Loglikelihood from model #' @param param Number of parameters fit in model #' @return A list of the four IC #' \itemize{ #' \ite...
/R/criterion.R
no_license
kristyrobledo/VarReg
R
false
false
793
r
#' Calculation of information criterion #' #' \code{criterion} calculates various information criterion for the algorithms in this package #' @param n Number of observations #' @param loglik Loglikelihood from model #' @param param Number of parameters fit in model #' @return A list of the four IC #' \itemize{ #' \ite...