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
\name{ICP} \alias{ICP} \title{ Invariant Causal Prediction } \description{ Confidence intervals for causal effects in a regression setting. } \usage{ ICP(X, Y, ExpInd, alpha=0.01, test = "normal", selection = c("lasso", "all", "stability", "boosting") [if (ncol(X) <=8...
/man/ICP.Rd
no_license
cran/InvariantCausalPrediction
R
false
false
10,483
rd
\name{ICP} \alias{ICP} \title{ Invariant Causal Prediction } \description{ Confidence intervals for causal effects in a regression setting. } \usage{ ICP(X, Y, ExpInd, alpha=0.01, test = "normal", selection = c("lasso", "all", "stability", "boosting") [if (ncol(X) <=8...
/3. Estimacion y Contrastes de hipotesis/2 Estimacion y contrastes.R
no_license
yukochperdok/examples-stadistics
R
false
false
13,629
r
\name{ratebytree} \alias{ratebytree} \title{Likelihood test for rate variation among trees} \usage{ ratebytree(trees, x, ...) } \arguments{ \item{trees}{an object of class \code{"multiPhylo"}.} \item{x}{a list of trait vectors for a continuous trait in which the names of each vectors correspond to the tip labels of \...
/man/ratebytree.Rd
no_license
willpett/phytools
R
false
false
3,906
rd
\name{ratebytree} \alias{ratebytree} \title{Likelihood test for rate variation among trees} \usage{ ratebytree(trees, x, ...) } \arguments{ \item{trees}{an object of class \code{"multiPhylo"}.} \item{x}{a list of trait vectors for a continuous trait in which the names of each vectors correspond to the tip labels of \...
library(TMB) ## Exercise 1: using TMB derivative compile("polynomial.cpp") dyn.load(dynlib("polynomial")) obj <- MakeADFun(data=list(), parameters=list(x=0), DLL='polynomial') obj$fn(5) obj$gr(5) ## Solution x <- seq(-3,2, len=200) y <- g <- rep(NA, 200) for(i in 1:length(x)) { y[i] <- obj$fn(x[i]) g[i] <- obj$gr...
/Week 1/week1.R
no_license
jin-gao/TMB_Study_Group_CFER_MUN
R
false
false
2,725
r
library(TMB) ## Exercise 1: using TMB derivative compile("polynomial.cpp") dyn.load(dynlib("polynomial")) obj <- MakeADFun(data=list(), parameters=list(x=0), DLL='polynomial') obj$fn(5) obj$gr(5) ## Solution x <- seq(-3,2, len=200) y <- g <- rep(NA, 200) for(i in 1:length(x)) { y[i] <- obj$fn(x[i]) g[i] <- obj$gr...
context('ermineJ usage') # utils::download.file('http://archive.geneontology.org/latest-termdb/go_daily-termdb.rdf-xml.gz',destfile = 'GO.xml.gz',quiet= TRUE) test_that('ermineJ basic usage',{ annotation = 'Generic_human.txt' scores <-read.table("testFiles/pValues", header=T, row.names = 1) result1 =...
/tests/testthat/test_ermineR.R
permissive
PavlidisLab/ermineR
R
false
false
2,793
r
context('ermineJ usage') # utils::download.file('http://archive.geneontology.org/latest-termdb/go_daily-termdb.rdf-xml.gz',destfile = 'GO.xml.gz',quiet= TRUE) test_that('ermineJ basic usage',{ annotation = 'Generic_human.txt' scores <-read.table("testFiles/pValues", header=T, row.names = 1) result1 =...
## Mobility and Malaria transmission model functions ## Created for the Animal and Parasitism Book Chapter by Hannah Meredith and Amy Wesolowski ## Last updated May 26, 2021 make.constant.travel.rate.matrix <- function(travel.dates, prob.travel.base, prob.travel.holiday){ travel.days <- lubridate::yday(tr...
/Malaria_Mobility_Functions.R
no_license
hrmeredith12/seasonal_malaria_mobility
R
false
false
35,029
r
## Mobility and Malaria transmission model functions ## Created for the Animal and Parasitism Book Chapter by Hannah Meredith and Amy Wesolowski ## Last updated May 26, 2021 make.constant.travel.rate.matrix <- function(travel.dates, prob.travel.base, prob.travel.holiday){ travel.days <- lubridate::yday(tr...
# Requirements # position items on grids and layer them correctly so they are mobile friendly and desktop friendly (use fluidPage, etc.) # #Calender Selector should open a calender DateInput to select the date Use: #For Dec 3rd, 2016 to June 3rd 2017, english- dateInput(inputId, label, value, min, #max, format, startvi...
/ui.main.R
no_license
carlycs/rshinyAnaheim
R
false
false
4,148
r
# Requirements # position items on grids and layer them correctly so they are mobile friendly and desktop friendly (use fluidPage, etc.) # #Calender Selector should open a calender DateInput to select the date Use: #For Dec 3rd, 2016 to June 3rd 2017, english- dateInput(inputId, label, value, min, #max, format, startvi...
testlist <- list(id = NULL, id = NULL, booklet_id = c(8168473L, 2127314835L, 171177770L, -1942759639L, -1815221204L, 601253144L, -804651186L, 2094281728L, 860713787L, -971707632L, -1475044502L, 870040598L, -1182814578L, -1415711445L, 1901326755L, -1882837573L, 1340545259L ), person_id = c(-1048157941L, -453977424L, ...
/dexterMST/inst/testfiles/is_person_booklet_sorted/AFL_is_person_booklet_sorted/is_person_booklet_sorted_valgrind_files/1615937869-test.R
no_license
akhikolla/updatedatatype-list1
R
false
false
750
r
testlist <- list(id = NULL, id = NULL, booklet_id = c(8168473L, 2127314835L, 171177770L, -1942759639L, -1815221204L, 601253144L, -804651186L, 2094281728L, 860713787L, -971707632L, -1475044502L, 870040598L, -1182814578L, -1415711445L, 1901326755L, -1882837573L, 1340545259L ), person_id = c(-1048157941L, -453977424L, ...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/scale-manual.r, R/zxx.r \name{scale_manual} \alias{scale_alpha_manual} \alias{scale_color_manual} \alias{scale_colour_manual} \alias{scale_fill_manual} \alias{scale_linetype_manual} \alias{scale_manual} \alias{scale_shape_manual} \ali...
/man/scale_manual.Rd
no_license
sctyner/ggplot2
R
false
false
2,293
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/scale-manual.r, R/zxx.r \name{scale_manual} \alias{scale_alpha_manual} \alias{scale_color_manual} \alias{scale_colour_manual} \alias{scale_fill_manual} \alias{scale_linetype_manual} \alias{scale_manual} \alias{scale_shape_manual} \ali...
MSD_Sim <- function(data, plot_MSD=0){ mu_X <- mean(data$X) mu_Y <- mean(data$Y) sig2_X <- (data$sig2_x) sig2_Y <- (data$sig2_y) cov_xy <- (data$cov_xy) MSD= ((mu_X- mu_Y)^2 + sig2_X+ sig2_Y- 2* cov_xy) if(plot_MSD==1) { hist(MSD, prob = T, main="Histogram of MSD", xlab="MSD") } else { C...
/scripts_and_functions/MSD_Sim.R
permissive
malooney/Decision_Theory
R
false
false
432
r
MSD_Sim <- function(data, plot_MSD=0){ mu_X <- mean(data$X) mu_Y <- mean(data$Y) sig2_X <- (data$sig2_x) sig2_Y <- (data$sig2_y) cov_xy <- (data$cov_xy) MSD= ((mu_X- mu_Y)^2 + sig2_X+ sig2_Y- 2* cov_xy) if(plot_MSD==1) { hist(MSD, prob = T, main="Histogram of MSD", xlab="MSD") } else { C...
#' De-duplicate dataframe #' #' Ensures only unique observations are kept according to specific features #' #' @param data [required | data.frame] #' @param id.feats [required | character] Names of ID features or other features to de-duplicate by #' @return Data frame containing unique observations #' @export #' @exa...
/R/de_duplicate.R
permissive
XanderHorn/lazy
R
false
false
773
r
#' De-duplicate dataframe #' #' Ensures only unique observations are kept according to specific features #' #' @param data [required | data.frame] #' @param id.feats [required | character] Names of ID features or other features to de-duplicate by #' @return Data frame containing unique observations #' @export #' @exa...
#Change working directory setwd("~/Desktop/MOOC/Programming_assignment/Explore/P2") file.url<-"https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip" if(!file.exists("./exdata-data-NEI_data.zip")) {download.file(file.url, destfile = "./exdata-data-NEI_data.zip", method="curl")} unzip("exdata-data-NEI_data...
/Plot3.R
no_license
AugustinJossa/ExData_Plotting2
R
false
false
912
r
#Change working directory setwd("~/Desktop/MOOC/Programming_assignment/Explore/P2") file.url<-"https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip" if(!file.exists("./exdata-data-NEI_data.zip")) {download.file(file.url, destfile = "./exdata-data-NEI_data.zip", method="curl")} unzip("exdata-data-NEI_data...
#' 3-parameter-logistic model #' @name model_3pl NULL #' @rdname model_3pl #' @description \code{model_3pl_prob} computes the probability of a correct response for given parameters #' @param t ability parameter, 1d vector #' @param a discrimination parameters, 1d vector #' @param b difficulty parameters, 1d v...
/R/module1_model_3pl.R
no_license
Janehappiest/xxIRT
R
false
false
22,548
r
#' 3-parameter-logistic model #' @name model_3pl NULL #' @rdname model_3pl #' @description \code{model_3pl_prob} computes the probability of a correct response for given parameters #' @param t ability parameter, 1d vector #' @param a discrimination parameters, 1d vector #' @param b difficulty parameters, 1d v...
{ # skip to loop # housekeeping rm(list = ls()) # libraries library(robofalcon) library(stringr) library(plyr) library(circular) # objects only.small.groups = F only.remaining.indivs = F # files / folders fold = file.path(PROJHOME, "Output", "gGPS" , "site-radius500") fold.rem...
/source/Figuresources/PredictingFutureCentroidSource.r
no_license
sankeydan/robofalcon
R
false
false
3,453
r
{ # skip to loop # housekeeping rm(list = ls()) # libraries library(robofalcon) library(stringr) library(plyr) library(circular) # objects only.small.groups = F only.remaining.indivs = F # files / folders fold = file.path(PROJHOME, "Output", "gGPS" , "site-radius500") fold.rem...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 25835 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 25835 c c Input Parameter (command line, file): c input filename QBFLIB/Diptarama-Jordan-Shinohara/Generalized-Tic-Tac-Toe/gtt...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Diptarama-Jordan-Shinohara/Generalized-Tic-Tac-Toe/gttt_2_1_0010_4x4_torus_w/gttt_2_1_0010_4x4_torus_w.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
721
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 25835 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 25835 c c Input Parameter (command line, file): c input filename QBFLIB/Diptarama-Jordan-Shinohara/Generalized-Tic-Tac-Toe/gtt...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/report.R \name{report} \alias{report} \title{Scorecard Modeling Report} \usage{ report(dt, y, x, breaks_list, special_values = NULL, seed = 618, save_report = "report", positive = "bad|1", ...) } \arguments{ \item{dt}{A data frame or a list...
/man/report.Rd
permissive
SimaShanhe/scorecard
R
false
true
4,183
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/report.R \name{report} \alias{report} \title{Scorecard Modeling Report} \usage{ report(dt, y, x, breaks_list, special_values = NULL, seed = 618, save_report = "report", positive = "bad|1", ...) } \arguments{ \item{dt}{A data frame or a list...
source("~/Dropbox/Chido/convBase.R") source("~/Dropbox/Chido/obtAtrGenIte.R") source("~/Dropbox/Chido/plotAtr.R") #Definiendo sistema nodos <-c("Temperatura", "Presion", "Precipitacion", "Herbivoros", "Depredadores", "MaizG", "FrijolEG", "CalabazaG", "Maiz", "FrijolE", "Calabaza", "MaizJ", "CalabazaJ", "Polinizadores"...
/precipitacion/milpa_Roundup_precipitacion_1212.R
no_license
laparcela/modelo_red_booleana_milpa_rafa
R
false
false
1,246
r
source("~/Dropbox/Chido/convBase.R") source("~/Dropbox/Chido/obtAtrGenIte.R") source("~/Dropbox/Chido/plotAtr.R") #Definiendo sistema nodos <-c("Temperatura", "Presion", "Precipitacion", "Herbivoros", "Depredadores", "MaizG", "FrijolEG", "CalabazaG", "Maiz", "FrijolE", "Calabaza", "MaizJ", "CalabazaJ", "Polinizadores"...
context("Reveal Outcomes") test_that("Reveal Outcomes", { my_population <- declare_population(N = 1000, u = rnorm(N)) my_sampling <- declare_sampling(S = complete_rs(N, n = 100)) my_assignment <- declare_assignment(Z = complete_ra(N, m = 50)) my_potential_outcomes <- declare_potential_outcomes( ...
/tests/testthat/test-reveal-outcomes.R
no_license
reuning/DeclareDesign
R
false
false
4,502
r
context("Reveal Outcomes") test_that("Reveal Outcomes", { my_population <- declare_population(N = 1000, u = rnorm(N)) my_sampling <- declare_sampling(S = complete_rs(N, n = 100)) my_assignment <- declare_assignment(Z = complete_ra(N, m = 50)) my_potential_outcomes <- declare_potential_outcomes( ...
configs <- list( docker = create_docker_config(), singularity = create_singularity_config(cache_dir = tempdir()) ) config <- configs[[1]] for (config in configs) { context(paste0("Testing ", config$backend)) set_default_config(config, permanent = FALSE) skip_on_cran() skip_on_github_actions() test_th...
/tests/testthat/test-run_auto_mount.R
permissive
dynverse/babelwhale
R
false
false
1,527
r
configs <- list( docker = create_docker_config(), singularity = create_singularity_config(cache_dir = tempdir()) ) config <- configs[[1]] for (config in configs) { context(paste0("Testing ", config$backend)) set_default_config(config, permanent = FALSE) skip_on_cran() skip_on_github_actions() test_th...
y=as.integer(readline()) if (y %% 400 == 0){print(TRUE) }else if (y %% 100 == 0 && y %% 4 != 0){print(TRUE) }else print(FALSE)
/lab2/l2-leap.R
no_license
Srinjoy-Santra/Advanced-Programming-Lab
R
false
false
128
r
y=as.integer(readline()) if (y %% 400 == 0){print(TRUE) }else if (y %% 100 == 0 && y %% 4 != 0){print(TRUE) }else print(FALSE)
# library loads add-on packages library(rpart) library(rpart.plot) library(ggplot2) library(randomForest) #Read the file df <- read.csv('~/Downloads/wine_dataset.csv') #Check the data and variable types head(df) str(df) #Checking the summary for the data summary(df) # Outputs the name of the columns which consists...
/Classification_Wines.R
no_license
chavisingal/Wine-Classification
R
false
false
7,559
r
# library loads add-on packages library(rpart) library(rpart.plot) library(ggplot2) library(randomForest) #Read the file df <- read.csv('~/Downloads/wine_dataset.csv') #Check the data and variable types head(df) str(df) #Checking the summary for the data summary(df) # Outputs the name of the columns which consists...
################################################################################ # Module pretty_value_box # # Author: Stefan Schliebs # Created: 2019-01-31 08:07:42 ################################################################################ # Module constants ----------------------------------------------------...
/cran-explorer/app/modules/mod_pretty_value_box.R
no_license
NorwegianVeterinaryInstitute/shiny-gallery
R
false
false
3,673
r
################################################################################ # Module pretty_value_box # # Author: Stefan Schliebs # Created: 2019-01-31 08:07:42 ################################################################################ # Module constants ----------------------------------------------------...
library(networkGen) ### Name: nodeLogic ### Title: Node Logic ### Aliases: nodeLogic ### ** Examples nodeLogic(value = 1, type= "circuit", itemFamily= 1)
/data/genthat_extracted_code/networkGen/examples/nodeLogic.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
162
r
library(networkGen) ### Name: nodeLogic ### Title: Node Logic ### Aliases: nodeLogic ### ** Examples nodeLogic(value = 1, type= "circuit", itemFamily= 1)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/linreg.R \name{linreg_vcov} \alias{linreg_vcov} \title{Linear Regression (variance-covariance of OLS estimates)} \usage{ linreg_vcov(beta_hat = NULL, X, y, m = FALSE, s2_est = "ols") } \arguments{ \item{beta_hat}{Vector of \eqn{k} estimated r...
/man/linreg_vcov.Rd
permissive
jeksterslabds/jeksterslabRds
R
false
true
1,454
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/linreg.R \name{linreg_vcov} \alias{linreg_vcov} \title{Linear Regression (variance-covariance of OLS estimates)} \usage{ linreg_vcov(beta_hat = NULL, X, y, m = FALSE, s2_est = "ols") } \arguments{ \item{beta_hat}{Vector of \eqn{k} estimated r...
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!# #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!# #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!# #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!...
/R/internal.r
no_license
kevin-wamae/poppr
R
false
false
103,604
r
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!# #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!# #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!# #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!...
library(ggplot2) library(reshape2) library(viridis) #Load data d98A <- read.csv("98A.txt", sep="\t") d98B <- read.csv("98B.txt", sep="\t") d02A <- read.csv("02A.txt", sep="\t") d02B <- read.csv("02B.txt", sep="\t") #Add n2 variable d98A$N2 <- "N2.1998A" d98B$N2 <- "N2.1998B" d02A$N2 <- "N2.2002A" d02B$N2 <- "N2.2002B...
/figures8_N2_reassortment/bfheatmap_edited.r
permissive
flu-crew/n2-diversity
R
false
false
2,972
r
library(ggplot2) library(reshape2) library(viridis) #Load data d98A <- read.csv("98A.txt", sep="\t") d98B <- read.csv("98B.txt", sep="\t") d02A <- read.csv("02A.txt", sep="\t") d02B <- read.csv("02B.txt", sep="\t") #Add n2 variable d98A$N2 <- "N2.1998A" d98B$N2 <- "N2.1998B" d02A$N2 <- "N2.2002A" d02B$N2 <- "N2.2002B...
#' @references Barua R., Chakravarty S.R., and Sarkar P. (2012) "Measuring p-power of voting", Journal of Economic Theory and Social Development 1(1) <%=BARUA_CHAKRAVARTY_ET_SARKAR_2012_P%>
/CoopGame/man-roxygen/cites/BARUA_CHAKRAVARTY_ET_SARKAR_2012.R
no_license
anwanjohannes/CoopGame
R
false
false
191
r
#' @references Barua R., Chakravarty S.R., and Sarkar P. (2012) "Measuring p-power of voting", Journal of Economic Theory and Social Development 1(1) <%=BARUA_CHAKRAVARTY_ET_SARKAR_2012_P%>
if (!require(remotes)) install.packages("remotes", repo = "http://cran.ch.r-project.org") if (!require(tidyverse)) install.packages("tidyverse", repo = "http://cran.ch.r-project.org") if (!require(ggpp)) install.packages("ggpp", repo = "http://cran.ch.r-project.org") remotes::install_local("ainet_0.0-1.tar.gz...
/dependencies.R
no_license
SamCH93/SimPaper
R
false
false
324
r
if (!require(remotes)) install.packages("remotes", repo = "http://cran.ch.r-project.org") if (!require(tidyverse)) install.packages("tidyverse", repo = "http://cran.ch.r-project.org") if (!require(ggpp)) install.packages("ggpp", repo = "http://cran.ch.r-project.org") remotes::install_local("ainet_0.0-1.tar.gz...
# Downloading and unzipping initial archive tempfile <- tempfile() url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip" download.file(url, tempfile, method="curl") unzip(tempfile) # unzip our archive unlink(tempfile) #delete temporary file setwd("exdata-data-NEI_data") NEI <- readRDS("summarySC...
/plot3.R
no_license
arcan77/exploratory2
R
false
false
1,729
r
# Downloading and unzipping initial archive tempfile <- tempfile() url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip" download.file(url, tempfile, method="curl") unzip(tempfile) # unzip our archive unlink(tempfile) #delete temporary file setwd("exdata-data-NEI_data") NEI <- readRDS("summarySC...
rnorm(n=100,m=0,sd=1) # new text # add memo
/test.R
no_license
HyungeunOh/20_Spring
R
false
false
44
r
rnorm(n=100,m=0,sd=1) # new text # add memo
require("MCMCpack") require("mclust") ## Sample an undirected graph on n vertices ## Input: P is n times n matrix giving the parameters of the Bernoulli r.v. rg.sample <- function(P){ n <- nrow(P) U <- matrix(0, nrow = n, ncol = n) U[col(U) > row(U)] <- runif(n*(n-1)/2) U <- (U + t(U)) A <- (U < P) + 0 ; ...
/stfp_rohe.R
no_license
dpmcsuss/stfpSim
R
false
false
3,801
r
require("MCMCpack") require("mclust") ## Sample an undirected graph on n vertices ## Input: P is n times n matrix giving the parameters of the Bernoulli r.v. rg.sample <- function(P){ n <- nrow(P) U <- matrix(0, nrow = n, ncol = n) U[col(U) > row(U)] <- runif(n*(n-1)/2) U <- (U + t(U)) A <- (U < P) + 0 ; ...
#' Subtract Function #' #' This function is good to subtract #' #' @param a A any number #' @param b B is another random number #' #' @examples #' subtrair(5,9) #' #' @export subtrair <- function(a, b = 2) { a - b } #' Sum Function #' #' This function is good to sum #' #' @param a A any number #' @param b B is anoth...
/R/aritmetica.R
no_license
mdfsdev/contas
R
false
false
474
r
#' Subtract Function #' #' This function is good to subtract #' #' @param a A any number #' @param b B is another random number #' #' @examples #' subtrair(5,9) #' #' @export subtrair <- function(a, b = 2) { a - b } #' Sum Function #' #' This function is good to sum #' #' @param a A any number #' @param b B is anoth...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SMOTEWrapper.R \name{makeSMOTEWrapper} \alias{makeSMOTEWrapper} \title{Fuse learner with SMOTE oversampling for imbalancy correction in binary classification.} \usage{ makeSMOTEWrapper(learner, sw.rate = 1, sw.nn = 5L, sw.standardize = TRUE, ...
/man/makeSMOTEWrapper.Rd
permissive
JiaHaobo/mlr
R
false
true
2,777
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SMOTEWrapper.R \name{makeSMOTEWrapper} \alias{makeSMOTEWrapper} \title{Fuse learner with SMOTE oversampling for imbalancy correction in binary classification.} \usage{ makeSMOTEWrapper(learner, sw.rate = 1, sw.nn = 5L, sw.standardize = TRUE, ...
rm(list=ls()) require("tensorsparse") require(ggplot2) ######################################## ### Figure 4 ####################### ######################################## set.seed(1) cat("The first situation:\n") n = 50; p = 50; q = 50; k = 4; r = 4; l = 4; s = 3 our_cerC = 1:50; cp_cerC = 1:50 our_cerD = 1:...
/code/sparse tensor/figures/figure4/figure4.R
no_license
Miaoyanwang/tensor-clustering
R
false
false
4,765
r
rm(list=ls()) require("tensorsparse") require(ggplot2) ######################################## ### Figure 4 ####################### ######################################## set.seed(1) cat("The first situation:\n") n = 50; p = 50; q = 50; k = 4; r = 4; l = 4; s = 3 our_cerC = 1:50; cp_cerC = 1:50 our_cerD = 1:...
#====================================================# # # #Video5.6 - Getting Practical: Portfolio Optimization# # # #====================================================# #Install and load PortfolioAnalytics package...
/Section 5/Video5.6.R
permissive
magnusmel/Quantitative-Finance-with-R
R
false
false
3,098
r
#====================================================# # # #Video5.6 - Getting Practical: Portfolio Optimization# # # #====================================================# #Install and load PortfolioAnalytics package...
x = c(1, 3, 5, 2, 4, 6, 3, 4, 5) y = c(1, 1, 1, 3, 3, 3, 5, 5, 5) tt = rep(c("A", "B", "C"), each = 3) d = data.frame(x = x, y = y, time = tt) library(SVGAnnotation) doc = svgPlot(with(subset(d, time == "A"), plot(x, y)))
/animate.R
no_license
dshen1/SVGAnnotation
R
false
false
227
r
x = c(1, 3, 5, 2, 4, 6, 3, 4, 5) y = c(1, 1, 1, 3, 3, 3, 5, 5, 5) tt = rep(c("A", "B", "C"), each = 3) d = data.frame(x = x, y = y, time = tt) library(SVGAnnotation) doc = svgPlot(with(subset(d, time == "A"), plot(x, y)))
# Script control ---------------------------------------------------------- remove_0_var <- T replace_RSSI_strongweak <- T remove_userID6_weird_signals <- T scale_deviceID <- F test_juan <- T normal_scaling <- F model = "knn" # Load data --------------------------------------------------------------- source('./R/data...
/wifi/R/model_building0.R
no_license
Taros007/ubiqum_projects
R
false
false
14,156
r
# Script control ---------------------------------------------------------- remove_0_var <- T replace_RSSI_strongweak <- T remove_userID6_weird_signals <- T scale_deviceID <- F test_juan <- T normal_scaling <- F model = "knn" # Load data --------------------------------------------------------------- source('./R/data...
#' First-order partial correlation coefficient #' #' Internal function to obtain the first-order partial correlation coefficient. #' #' #' @encoding UTF-8 #' @param rxy Correlation between xy #' @param rxz Correlation between xz #' @param ryz Correlation between yz #' @return The first-order partial correlation coef...
/R/part.cor.R
no_license
bastazini/SYNCSA
R
false
false
733
r
#' First-order partial correlation coefficient #' #' Internal function to obtain the first-order partial correlation coefficient. #' #' #' @encoding UTF-8 #' @param rxy Correlation between xy #' @param rxz Correlation between xz #' @param ryz Correlation between yz #' @return The first-order partial correlation coef...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rds_operations.R \name{rds_create_option_group} \alias{rds_create_option_group} \title{Creates a new option group} \usage{ rds_create_option_group(OptionGroupName, EngineName, MajorEngineVersion, OptionGroupDescription, Tags) } \arguments{ ...
/paws/man/rds_create_option_group.Rd
permissive
sanchezvivi/paws
R
false
true
1,378
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rds_operations.R \name{rds_create_option_group} \alias{rds_create_option_group} \title{Creates a new option group} \usage{ rds_create_option_group(OptionGroupName, EngineName, MajorEngineVersion, OptionGroupDescription, Tags) } \arguments{ ...
# Set environmental variable athena_option_env <- new.env(parent=emptyenv()) athena_option_env$file_parser <- "file_method" athena_option_env$cache_size <- 0 class(athena_option_env$file_parser) <- "athena_data.table" cache_dt = data.table("QueryId" = character(), "Query" = character(), "State"= character(), ...
/R/Options.R
no_license
TheThirtyFour/noctua
R
false
false
5,808
r
# Set environmental variable athena_option_env <- new.env(parent=emptyenv()) athena_option_env$file_parser <- "file_method" athena_option_env$cache_size <- 0 class(athena_option_env$file_parser) <- "athena_data.table" cache_dt = data.table("QueryId" = character(), "Query" = character(), "State"= character(), ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_several_tracks_features_vectorized.R \name{get_several_tracks_features_vectorized} \alias{get_several_tracks_features_vectorized} \title{Get Several Tracks Features Vectorized} \usage{ get_several_tracks_features_vectorized(tracks_d...
/man/get_several_tracks_features_vectorized.Rd
permissive
AlbertoAlmuinha/DSpoty
R
false
true
967
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_several_tracks_features_vectorized.R \name{get_several_tracks_features_vectorized} \alias{get_several_tracks_features_vectorized} \title{Get Several Tracks Features Vectorized} \usage{ get_several_tracks_features_vectorized(tracks_d...
testlist <- list(barrier = 0, ben = numeric(0), fee = 0, penalty = numeric(0), spot = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
/valuer/inst/testfiles/calc_account/libFuzzer_calc_account/calc_account_valgrind_files/1616985804-test.R
no_license
akhikolla/updatedatatype-list4
R
false
false
441
r
testlist <- list(barrier = 0, ben = numeric(0), fee = 0, penalty = numeric(0), spot = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
#Data for tables '%!in%' <- function(x,y)!('%in%'(x,y)) canon <- read.csv("../data/work/canon.csv", stringsAsFactors = FALSE) canon <- canon[1:1000,] author_data <- read.csv("../../estc-author-analysis-data/author_analysis_finished.csv", stringsAsFactors = FALSE) works_places <- read.csv("../data/work/works_places.csv...
/code/table_data.r
no_license
COMHIS/article_2019_early_modern_canon
R
false
false
4,277
r
#Data for tables '%!in%' <- function(x,y)!('%in%'(x,y)) canon <- read.csv("../data/work/canon.csv", stringsAsFactors = FALSE) canon <- canon[1:1000,] author_data <- read.csv("../../estc-author-analysis-data/author_analysis_finished.csv", stringsAsFactors = FALSE) works_places <- read.csv("../data/work/works_places.csv...
### ========================================================================= ### Pairs objects ### ------------------------------------------------------------------------- ### ### Two parallel vectors. Could result from "dereferencing" a Hits. ### setClass("Pairs", contains="Vector", representation...
/R/Pairs-class.R
no_license
Liubuntu/S4Vectors-1
R
false
false
7,100
r
### ========================================================================= ### Pairs objects ### ------------------------------------------------------------------------- ### ### Two parallel vectors. Could result from "dereferencing" a Hits. ### setClass("Pairs", contains="Vector", representation...
#' Generate cell weighted Fold-Changes (cwFold-changes) #' #' This function takes a count matrix, signature matrix, and differentially expressed genes (DEGs) before generating cwFold-changes for each cell-type. #' #' This function completes the pre-processing, normalization, and scaling steps in the scMappR algori...
/R/deconvolute_and_contextualize.R
no_license
cran/scMappR
R
false
false
30,536
r
#' Generate cell weighted Fold-Changes (cwFold-changes) #' #' This function takes a count matrix, signature matrix, and differentially expressed genes (DEGs) before generating cwFold-changes for each cell-type. #' #' This function completes the pre-processing, normalization, and scaling steps in the scMappR algori...
relm <- function(x_sdf,matrix=FALSE){ if(sum(names(x_sdf)=="status")==1) sdf <- x_sdf[,-which(names(x_sdf)=="status")] else (sdf <- x_sdf) m <- ncol(sdf) r <- apply(as.matrix(sdf[,-c(m-1,m)]),1,max) if(matrix==FALSE) return(cbind(r,sdf[,c(m-1,m)])) else { p <- max(sdf[,m]) mat <- matrix(ncol=p,nrow=...
/R/relm.R
no_license
cran/mbgraphic
R
false
false
501
r
relm <- function(x_sdf,matrix=FALSE){ if(sum(names(x_sdf)=="status")==1) sdf <- x_sdf[,-which(names(x_sdf)=="status")] else (sdf <- x_sdf) m <- ncol(sdf) r <- apply(as.matrix(sdf[,-c(m-1,m)]),1,max) if(matrix==FALSE) return(cbind(r,sdf[,c(m-1,m)])) else { p <- max(sdf[,m]) mat <- matrix(ncol=p,nrow=...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/assignIDs.R \name{assignIDs} \alias{assignIDs} \title{Assign ID numbers to samples} \usage{ assignIDs(data, xCoord = "x", yCoord = "y", neighborhood = "tertiary") } \arguments{ \item{data}{The dataset containing x- and y-coordinat...
/man/assignIDs.Rd
no_license
cammiller/imagingPC
R
false
true
949
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/assignIDs.R \name{assignIDs} \alias{assignIDs} \title{Assign ID numbers to samples} \usage{ assignIDs(data, xCoord = "x", yCoord = "y", neighborhood = "tertiary") } \arguments{ \item{data}{The dataset containing x- and y-coordinat...
## Craig Calder # Data Wrangling Exercise 1: Basic Data Manipulation ############################################################ # 1. set working directory and load data ############################################################ getwd() setwd ('C:/Users/crcalder/Google Drive/eBay/Data-Science/datascience/assignme...
/assignments/refine.R
no_license
clcinpdx/datascience
R
false
false
4,121
r
## Craig Calder # Data Wrangling Exercise 1: Basic Data Manipulation ############################################################ # 1. set working directory and load data ############################################################ getwd() setwd ('C:/Users/crcalder/Google Drive/eBay/Data-Science/datascience/assignme...
#'Uploads a file to Dropbox using PUT semantics. #' #' This function will allow you to write files of any size to Dropbox(even ones #' that cannot be read into memory) by uploading them in chunks. #'@param file Relative path to local file. #'@param dest The relative path on Dropbox where the file should get uploaded...
/R/drop_upload.R
no_license
scheidec/rdrop2
R
false
false
2,398
r
#'Uploads a file to Dropbox using PUT semantics. #' #' This function will allow you to write files of any size to Dropbox(even ones #' that cannot be read into memory) by uploading them in chunks. #'@param file Relative path to local file. #'@param dest The relative path on Dropbox where the file should get uploaded...
svc <- paws::cloudtrail() test_that("describe_query", { expect_error(svc$describe_query(), NA) }) test_that("describe_trails", { expect_error(svc$describe_trails(), NA) }) test_that("list_channels", { expect_error(svc$list_channels(), NA) }) test_that("list_channels", { expect_error(svc$list_channels(MaxRes...
/cran/paws.management/tests/testthat/test_cloudtrail.R
permissive
paws-r/paws
R
false
false
841
r
svc <- paws::cloudtrail() test_that("describe_query", { expect_error(svc$describe_query(), NA) }) test_that("describe_trails", { expect_error(svc$describe_trails(), NA) }) test_that("list_channels", { expect_error(svc$list_channels(), NA) }) test_that("list_channels", { expect_error(svc$list_channels(MaxRes...
.get_hoopshype_teams_ids <- memoise(function() { data <- tibble( nameTeam = c( "Atlanta Hawks", "Boston Celtics", "Brooklyn Nets", "Charlotte Hornets", "Chicago Bulls", "Cleveland Cavaliers", "Dallas Mavericks", "Denver...
/nba-over-under-2022-2023/nbastatR-r-files/hoops_hype_functions.R
no_license
ismayc/ismayc.github.io
R
false
false
15,853
r
.get_hoopshype_teams_ids <- memoise(function() { data <- tibble( nameTeam = c( "Atlanta Hawks", "Boston Celtics", "Brooklyn Nets", "Charlotte Hornets", "Chicago Bulls", "Cleveland Cavaliers", "Dallas Mavericks", "Denver...
#Decision Tree Instability library("MASS") library(parsnip) library(titanic) library(parttree) library(rpart) library(ggplot2) #Category 0 n0 <- 50 mu0 <- c(0,0) Sigma0 <- matrix(c(1, 0.8, 0.8, 1),ncol = 2) in_data_0 = mvrnorm(n = n0, mu = mu0...
/DecisionTreeVolatility.R
no_license
SrijitMukherjee/RCodes
R
false
false
1,336
r
#Decision Tree Instability library("MASS") library(parsnip) library(titanic) library(parttree) library(rpart) library(ggplot2) #Category 0 n0 <- 50 mu0 <- c(0,0) Sigma0 <- matrix(c(1, 0.8, 0.8, 1),ncol = 2) in_data_0 = mvrnorm(n = n0, mu = mu0...
\name{ca125} \alias{ca125} \docType{data} \title{Recurrent ovarian carcinoma study} \description{A meta-analysis of 52 studies that were reported between January 1995 and November 2007.} \format{ The data frame contains the following columns: \describe{ \item{n}{total number of subjects} \i...
/man/ca125.Rd
no_license
ChuanHong/xmeta
R
false
false
1,171
rd
\name{ca125} \alias{ca125} \docType{data} \title{Recurrent ovarian carcinoma study} \description{A meta-analysis of 52 studies that were reported between January 1995 and November 2007.} \format{ The data frame contains the following columns: \describe{ \item{n}{total number of subjects} \i...
# Reference to: # https://raw.githubusercontent.com/karthik/rdrop2/master/R/drop_auth.R # environment to store credentials .dstate <- new.env(parent = emptyenv()) #' Authentication for Bangumi.tv #' #' This function authenticates you into Bangumi. The documentation for the #' \href{https://bangumi.github.io/api/}{Ba...
/R/bgm-auth.R
permissive
swsoyee/bangumir
R
false
false
3,948
r
# Reference to: # https://raw.githubusercontent.com/karthik/rdrop2/master/R/drop_auth.R # environment to store credentials .dstate <- new.env(parent = emptyenv()) #' Authentication for Bangumi.tv #' #' This function authenticates you into Bangumi. The documentation for the #' \href{https://bangumi.github.io/api/}{Ba...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/distributions.R \name{tfd_gaussian_process_regression_model} \alias{tfd_gaussian_process_regression_model} \title{Posterior predictive distribution in a conjugate GP regression model.} \usage{ tfd_gaussian_process_regression_model( kernel, ...
/man/tfd_gaussian_process_regression_model.Rd
no_license
cran/tfprobability
R
false
true
8,401
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/distributions.R \name{tfd_gaussian_process_regression_model} \alias{tfd_gaussian_process_regression_model} \title{Posterior predictive distribution in a conjugate GP regression model.} \usage{ tfd_gaussian_process_regression_model( kernel, ...
\name{crackRcalcSfpofMc} \alias{crackRcalcSfpofMc} \title{ Calculates SFPOF by post-processing an explicit Monte Carlo analysis as performed by crackRmc. } \description{ crackRmc will calculate SFPOF on the intervals specified for that function, along with the raw results of the simulation. If a d...
/man/crackRcalcSfpofMc.Rd
no_license
cran/crackR
R
false
false
1,600
rd
\name{crackRcalcSfpofMc} \alias{crackRcalcSfpofMc} \title{ Calculates SFPOF by post-processing an explicit Monte Carlo analysis as performed by crackRmc. } \description{ crackRmc will calculate SFPOF on the intervals specified for that function, along with the raw results of the simulation. If a d...
library(adlift) ### Name: make.signal2 ### Title: make.signal2 ### Aliases: make.signal2 ### Keywords: datagen ### ** Examples #create grid vector # xgrid<-rnorm(50) xgrid # pp<-make.signal2("ppoly",x=xgrid) # #piecewise polynomial data vector # plot(sort(xgrid),pp[order(xgrid)],type="l") #
/data/genthat_extracted_code/adlift/examples/make.signal2.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
301
r
library(adlift) ### Name: make.signal2 ### Title: make.signal2 ### Aliases: make.signal2 ### Keywords: datagen ### ** Examples #create grid vector # xgrid<-rnorm(50) xgrid # pp<-make.signal2("ppoly",x=xgrid) # #piecewise polynomial data vector # plot(sort(xgrid),pp[order(xgrid)],type="l") #
# list all packages/libraries and assign them to "my_packages"-variable # load libraries #ipak <- function(pkg){ # new.pkg <- pkg[!(pkg %in% installed.packages()[, "Package"])] # if (length(new.pkg)) # install.packages(new.pkg, dependencies = TRUE, repos = "http://cran.us.r-project.org") # sapply(pkg, ...
/knn_building.R
no_license
johannesjones/wifi_loc
R
false
false
2,405
r
# list all packages/libraries and assign them to "my_packages"-variable # load libraries #ipak <- function(pkg){ # new.pkg <- pkg[!(pkg %in% installed.packages()[, "Package"])] # if (length(new.pkg)) # install.packages(new.pkg, dependencies = TRUE, repos = "http://cran.us.r-project.org") # sapply(pkg, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/final_loadings_subfamilies.R \name{compute_score_subfamily} \alias{compute_score_subfamily} \title{compute_score_subfamily, computes all the scores of the list of neurons against theneurons of the subfamilie} \usage{ compute_score_subfamily(l...
/man/compute_score_subfamily.Rd
no_license
jefferislab/familynblast
R
false
true
1,331
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/final_loadings_subfamilies.R \name{compute_score_subfamily} \alias{compute_score_subfamily} \title{compute_score_subfamily, computes all the scores of the list of neurons against theneurons of the subfamilie} \usage{ compute_score_subfamily(l...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dynamic.R \name{knapsack_dynamic} \alias{knapsack_dynamic} \title{Knapsack problem using dynamic algortihm} \usage{ knapsack_dynamic(x, W) } \arguments{ \item{x}{a data.frame with two variables v and w (values and weights)} \item{...
/man/knapsack_dynamic.Rd
no_license
RoshniSundaramurthy09/Knapsack
R
false
true
627
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dynamic.R \name{knapsack_dynamic} \alias{knapsack_dynamic} \title{Knapsack problem using dynamic algortihm} \usage{ knapsack_dynamic(x, W) } \arguments{ \item{x}{a data.frame with two variables v and w (values and weights)} \item{...
#This function creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function( m = matrix() ) { i <- NULL set <- function( matrix ){ m <<- matrix i <<- NULL } get <- function() { m } setInverse <- function() { i <<- inverse } getInverse <- functi...
/cachematrix.R
no_license
Sterrennacht/ProgrammingAssignment2
R
false
false
780
r
#This function creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function( m = matrix() ) { i <- NULL set <- function( matrix ){ m <<- matrix i <<- NULL } get <- function() { m } setInverse <- function() { i <<- inverse } getInverse <- functi...
#Bar graph - rectangular rep of set of values,(x and y) c=c(10,20,30,40,50) barplot(c) #barplot barplot(c,xlab="X-axis",ylab="Y-axis",main="Bar Chart") #assign colors a=c(10,20,30,40,50) b=c("Jan","Feb","Mar","Apr","May") barplot(a,names.arg=b,xlab="Month",ylab="Sales in thousand",col="red",main="sale per ...
/graphs.R
no_license
Prathyusha-L/100DaysofCode---Day-65-Graphs-
R
false
false
3,045
r
#Bar graph - rectangular rep of set of values,(x and y) c=c(10,20,30,40,50) barplot(c) #barplot barplot(c,xlab="X-axis",ylab="Y-axis",main="Bar Chart") #assign colors a=c(10,20,30,40,50) b=c("Jan","Feb","Mar","Apr","May") barplot(a,names.arg=b,xlab="Month",ylab="Sales in thousand",col="red",main="sale per ...
# qPCR Shiny App # Data Visualisation UI components data.vis <- tabPanel( 'Data Visualisation', titlePanel("Data Visualisation Panel"), tags$hr(), # Sidebar panel with options sidebarLayout( sidebarPanel( strong('Select variable'), tags$hr(), # Variable selection uiOutpu...
/ui/data_vis_ui.R
no_license
Hartecky/qpcr-stat-package
R
false
false
787
r
# qPCR Shiny App # Data Visualisation UI components data.vis <- tabPanel( 'Data Visualisation', titlePanel("Data Visualisation Panel"), tags$hr(), # Sidebar panel with options sidebarLayout( sidebarPanel( strong('Select variable'), tags$hr(), # Variable selection uiOutpu...
#' CBOE Volatility Index (VIX) Financial Time Series Data #' #' A dataset that contains the daily financial data of the VIX from #' 1990 to July 2019 (currency in USD). #' #' @format A data frame with 7452 rows and 9 variables: #' \describe{ #' \item{Year}{the observation year} #' \item{Month}{the observati...
/R/vix.R
no_license
cran/smoots
R
false
false
902
r
#' CBOE Volatility Index (VIX) Financial Time Series Data #' #' A dataset that contains the daily financial data of the VIX from #' 1990 to July 2019 (currency in USD). #' #' @format A data frame with 7452 rows and 9 variables: #' \describe{ #' \item{Year}{the observation year} #' \item{Month}{the observati...
# this file should always be called from a subdirectory setwd('..') options( repos = c( inzight = 'https://r.docker.stat.auckland.ac.nz', CRAN = 'https://cran.r-project.org' ), help_type = 'html' ) Sys.setenv( 'R_HOME' = file.path(getwd(), 'R'), 'R_USER_CONFIG_DIR' = file.path(getwd(), ".config"), 'R_USER_...
/launcher.R
no_license
iNZightVIT/win-installer
R
false
false
2,658
r
# this file should always be called from a subdirectory setwd('..') options( repos = c( inzight = 'https://r.docker.stat.auckland.ac.nz', CRAN = 'https://cran.r-project.org' ), help_type = 'html' ) Sys.setenv( 'R_HOME' = file.path(getwd(), 'R'), 'R_USER_CONFIG_DIR' = file.path(getwd(), ".config"), 'R_USER_...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/curly.R \name{curly} \alias{curly} \title{Adds curly brackets to plot} \usage{ curly( x, y, len = 1, theta = 0, wid, shape = 1, col = 1, lwd = 1, lty = 1, grid = FALSE, npoints = 50, text = NULL, offset = c(0.05, 0) ...
/man/curly.Rd
no_license
cran/lava
R
false
true
1,446
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/curly.R \name{curly} \alias{curly} \title{Adds curly brackets to plot} \usage{ curly( x, y, len = 1, theta = 0, wid, shape = 1, col = 1, lwd = 1, lty = 1, grid = FALSE, npoints = 50, text = NULL, offset = c(0.05, 0) ...
testlist <- list(data = structure(0, .Dim = c(1L, 1L)), x = structure(c(2.75909158610328e-306, 0, 0, 0, 0, 0), .Dim = 3:2)) result <- do.call(distr6:::C_EmpiricalMVPdf,testlist) str(result)
/distr6/inst/testfiles/C_EmpiricalMVPdf/libFuzzer_C_EmpiricalMVPdf/C_EmpiricalMVPdf_valgrind_files/1610036595-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
190
r
testlist <- list(data = structure(0, .Dim = c(1L, 1L)), x = structure(c(2.75909158610328e-306, 0, 0, 0, 0, 0), .Dim = 3:2)) result <- do.call(distr6:::C_EmpiricalMVPdf,testlist) str(result)
\name{getNumber-methods} \alias{getNumber} \docType{methods} \alias{getNumber-methods} \alias{getNumber,mmctSamplerGeneric-method} \alias{getNumber,mmctSampler-method} \title{Methods for Function `cont' in class `mmctestres', Package `simctest'} \description{ Function to request number of hypotheses. } \usage{ getNu...
/man/getNumber-methods.Rd
no_license
cran/simctest
R
false
false
787
rd
\name{getNumber-methods} \alias{getNumber} \docType{methods} \alias{getNumber-methods} \alias{getNumber,mmctSamplerGeneric-method} \alias{getNumber,mmctSampler-method} \title{Methods for Function `cont' in class `mmctestres', Package `simctest'} \description{ Function to request number of hypotheses. } \usage{ getNu...
library(CARBayes) ### Name: S.CARleroux ### Title: Fit a spatial generalised linear mixed model to data, where the ### random effects have a Leroux conditional autoregressive prior. ### Aliases: S.CARleroux ### ** Examples ################################################# #### Run the model on simulated data on a...
/data/genthat_extracted_code/CARBayes/examples/S.CARleroux.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,360
r
library(CARBayes) ### Name: S.CARleroux ### Title: Fit a spatial generalised linear mixed model to data, where the ### random effects have a Leroux conditional autoregressive prior. ### Aliases: S.CARleroux ### ** Examples ################################################# #### Run the model on simulated data on a...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/reseller_functions.R \name{subscriptions.suspend} \alias{subscriptions.suspend} \title{Suspends an active subscription} \usage{ subscriptions.suspend(customerId, subscriptionId) } \arguments{ \item{customerId}{Id of the Customer} \item{subsc...
/googleresellerv1.auto/man/subscriptions.suspend.Rd
permissive
Phippsy/autoGoogleAPI
R
false
true
898
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/reseller_functions.R \name{subscriptions.suspend} \alias{subscriptions.suspend} \title{Suspends an active subscription} \usage{ subscriptions.suspend(customerId, subscriptionId) } \arguments{ \item{customerId}{Id of the Customer} \item{subsc...
## Various internal utility functions for trackObjs ## Design: ## ## There is a trackingEnv variable in the tracked ## environment (e.g., .GlobalEnv) ## ## Tracked vars are active bindings, whose function refers to their ## name and trackingEnv ## ## The trackingEnv has several pieces of metadata: ## * .t...
/R/utils.R
no_license
cran/trackObjs
R
false
false
32,952
r
## Various internal utility functions for trackObjs ## Design: ## ## There is a trackingEnv variable in the tracked ## environment (e.g., .GlobalEnv) ## ## Tracked vars are active bindings, whose function refers to their ## name and trackingEnv ## ## The trackingEnv has several pieces of metadata: ## * .t...
library('ggplot2') library('ggthemes') library('scales') library('dplyr') library('mice') library('randomForest') library('rpart') library('rpart.plot') library('RColorBrewer') # Import the training set: train train_url <- "http://s3.amazonaws.com/assets.datacamp.com/course/Kaggle/train.csv" train <- read.csv("/h...
/titanik4.R
no_license
meIanika/Titanik
R
false
false
4,033
r
library('ggplot2') library('ggthemes') library('scales') library('dplyr') library('mice') library('randomForest') library('rpart') library('rpart.plot') library('RColorBrewer') # Import the training set: train train_url <- "http://s3.amazonaws.com/assets.datacamp.com/course/Kaggle/train.csv" train <- read.csv("/h...
# function - network3M # ######################################################################## # File: network3M.R # Aim : Draw a network diagram of the correlation between metabolites,microbes and phenotypes #------------------------------------------------------------------------------------------------------...
/network3M.R
no_license
qindan2008/3MCorServer
R
false
false
38,730
r
# function - network3M # ######################################################################## # File: network3M.R # Aim : Draw a network diagram of the correlation between metabolites,microbes and phenotypes #------------------------------------------------------------------------------------------------------...
/plot2.R
no_license
keiraamr/ExData_Plotting1
R
false
false
733
r
## Put comments here that give an overall description of what your ## functions do ## Create an object to store a matrix and cache it's inverse makeCacheMatrix <- function(x = matrix()) { ## Initially set the inverse to NULL inv <- NULL ## Set the matrix value and clear the inverse set <- function(y_mat) { ...
/cachematrix.R
no_license
donford74/ProgrammingAssignment2
R
false
false
1,394
r
## Put comments here that give an overall description of what your ## functions do ## Create an object to store a matrix and cache it's inverse makeCacheMatrix <- function(x = matrix()) { ## Initially set the inverse to NULL inv <- NULL ## Set the matrix value and clear the inverse set <- function(y_mat) { ...
% Generated by roxygen2 (4.0.2): do not edit by hand \name{mtukey.test} \alias{mtukey.test} \title{Modified Tukey Additivity Test} \usage{ mtukey.test(Y, alpha = 0.05, correction = 0, Nboot = 1000) } \arguments{ \item{Y}{data matrix} \item{alpha}{level of the test} \item{correction}{type of small sample s...
/man/mtukey.test.Rd
no_license
simecek/additivityTests
R
false
false
1,508
rd
% Generated by roxygen2 (4.0.2): do not edit by hand \name{mtukey.test} \alias{mtukey.test} \title{Modified Tukey Additivity Test} \usage{ mtukey.test(Y, alpha = 0.05, correction = 0, Nboot = 1000) } \arguments{ \item{Y}{data matrix} \item{alpha}{level of the test} \item{correction}{type of small sample s...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/chipmunk.R \name{cpMomentForPoly} \alias{cpMomentForPoly} \title{Calculate the moment of inertia for a solid polygon shape assuming it's center of gravity is at it's centroid. The offset is added to each vertex.} \usage{ cpMomentForPoly(m, co...
/man/cpMomentForPoly.Rd
permissive
coolbutuseless/chipmunkcore
R
false
true
859
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/chipmunk.R \name{cpMomentForPoly} \alias{cpMomentForPoly} \title{Calculate the moment of inertia for a solid polygon shape assuming it's center of gravity is at it's centroid. The offset is added to each vertex.} \usage{ cpMomentForPoly(m, co...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/wrappers.R \name{insertImage} \alias{insertImage} \title{Insert an image into a worksheet} \usage{ insertImage(wb, sheet, file, width = 6, height = 3, startRow = 1, startCol = 1, units = "in", dpi = 300) } \arguments{ \item{wb}{A workbook o...
/man/insertImage.Rd
no_license
CIP-RIU/openxlsx
R
false
true
1,408
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/wrappers.R \name{insertImage} \alias{insertImage} \title{Insert an image into a worksheet} \usage{ insertImage(wb, sheet, file, width = 6, height = 3, startRow = 1, startCol = 1, units = "in", dpi = 300) } \arguments{ \item{wb}{A workbook o...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_edge_df.R \name{get_edge_df} \alias{get_edge_df} \title{Get an edge data frame from a graph} \usage{ get_edge_df(graph) } \arguments{ \item{graph}{a graph object of class \code{dgr_graph}.} } \value{ an edge data frame. } \description{ Fr...
/man/get_edge_df.Rd
permissive
lionel-/DiagrammeR
R
false
true
1,059
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_edge_df.R \name{get_edge_df} \alias{get_edge_df} \title{Get an edge data frame from a graph} \usage{ get_edge_df(graph) } \arguments{ \item{graph}{a graph object of class \code{dgr_graph}.} } \value{ an edge data frame. } \description{ Fr...
invisible(' exclude all non-dakar ') library(ape) # Reads the phylogenetic tree that will be used in the coalescent analysis. # This tree had removed the tips from children and tips that risk group = NA or and sex = NA tree.02_AG <- readRDS(system.file("data/trees_by_subtype/dtr.AG.CGR.GTR_Gp12+3_byCodon.RDS", packag...
/analyses/scripts/R-scripts/Models/BySubtype/02_AG_m4/OSG/2.load_data_osg.02_AG_m4.R
no_license
thednainus/senegalHIVmodel
R
false
false
3,013
r
invisible(' exclude all non-dakar ') library(ape) # Reads the phylogenetic tree that will be used in the coalescent analysis. # This tree had removed the tips from children and tips that risk group = NA or and sex = NA tree.02_AG <- readRDS(system.file("data/trees_by_subtype/dtr.AG.CGR.GTR_Gp12+3_byCodon.RDS", packag...
###################################### ########## Fundamentos de R ########## ########## Sesi?n 01 ########## ########## Ejercicio 04 ########## ###################################### # Para ver la ruta de d?nde estamos trabajando getwd() # Para bajar dos niveles del directorio de trabajo # utilizamos ../...
/Sesion-01/Ejemplo-04/Ejercicio04.R
no_license
fleiz/curso_R
R
false
false
1,030
r
###################################### ########## Fundamentos de R ########## ########## Sesi?n 01 ########## ########## Ejercicio 04 ########## ###################################### # Para ver la ruta de d?nde estamos trabajando getwd() # Para bajar dos niveles del directorio de trabajo # utilizamos ../...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/circular.averaging.R \name{circular.averaging} \alias{circular.averaging} \alias{vector.averaging} \title{Circular Averaging based on Vector Averaging} \usage{ circular.averaging(direction, deg = TRUE) vector.averaging(direction, distance, d...
/man/circular.averaging.Rd
permissive
IhsanKhaliq/spatiotemporaldynamics
R
false
true
1,715
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/circular.averaging.R \name{circular.averaging} \alias{circular.averaging} \alias{vector.averaging} \title{Circular Averaging based on Vector Averaging} \usage{ circular.averaging(direction, deg = TRUE) vector.averaging(direction, distance, d...
library(rnaturalearth) library(rnaturalearthdata) library(sf) library(rgeos) library(ggplot2) library(reshape2) library(plyr) library(plotly) df = fread(file = "case-fatality-rate-of-covid-19-vs-median-age.txt", sep = "\t", header = T) covidage= df[,c(1,3,5)] #covidconfmelt = melt(covidconf2, id.vars = "Country/Regi...
/figure 1.R
no_license
akhurs18/Bioinformatics
R
false
false
1,062
r
library(rnaturalearth) library(rnaturalearthdata) library(sf) library(rgeos) library(ggplot2) library(reshape2) library(plyr) library(plotly) df = fread(file = "case-fatality-rate-of-covid-19-vs-median-age.txt", sep = "\t", header = T) covidage= df[,c(1,3,5)] #covidconfmelt = melt(covidconf2, id.vars = "Country/Regi...
makeCacheMatrix <- function(x = matrix()) #This function creates a special #"matrix" object that can cache #its inverse. #define a default arg mode with "matrix". { invrtd <- NULL #NULL...
/cachematrix.R
no_license
McGuckinSean/ProgrammingAssignment2
R
false
false
2,803
r
makeCacheMatrix <- function(x = matrix()) #This function creates a special #"matrix" object that can cache #its inverse. #define a default arg mode with "matrix". { invrtd <- NULL #NULL...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/waf_operations.R \name{waf_list_sql_injection_match_sets} \alias{waf_list_sql_injection_match_sets} \title{This is AWS WAF Classic documentation} \usage{ waf_list_sql_injection_match_sets(NextMarker, Limit) } \arguments{ \item{NextMarker}{If ...
/cran/paws.security.identity/man/waf_list_sql_injection_match_sets.Rd
permissive
sanchezvivi/paws
R
false
true
1,942
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/waf_operations.R \name{waf_list_sql_injection_match_sets} \alias{waf_list_sql_injection_match_sets} \title{This is AWS WAF Classic documentation} \usage{ waf_list_sql_injection_match_sets(NextMarker, Limit) } \arguments{ \item{NextMarker}{If ...
#' Get node IDs for predecessor nodes to the specified node #' @description Provides a vector of node IDs for all nodes that have a link to the given node. #' @param graph a graph object of class 'gv_graph'. #' @param node a node ID for the selected node. #' @return a vector of node ID values. #' @export get_predecesso...
/R/get_predecessors.R
no_license
taylorruss/DiagrammeR
R
false
false
931
r
#' Get node IDs for predecessor nodes to the specified node #' @description Provides a vector of node IDs for all nodes that have a link to the given node. #' @param graph a graph object of class 'gv_graph'. #' @param node a node ID for the selected node. #' @return a vector of node ID values. #' @export get_predecesso...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/iot_operations.R \name{iot_create_policy} \alias{iot_create_policy} \title{Creates an AWS IoT policy} \usage{ iot_create_policy(policyName, policyDocument, tags) } \arguments{ \item{policyName}{[required] The policy name.} \item{policyDocume...
/cran/paws.internet.of.things/man/iot_create_policy.Rd
permissive
paws-r/paws
R
false
true
1,416
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/iot_operations.R \name{iot_create_policy} \alias{iot_create_policy} \title{Creates an AWS IoT policy} \usage{ iot_create_policy(policyName, policyDocument, tags) } \arguments{ \item{policyName}{[required] The policy name.} \item{policyDocume...
############################################################################################### ###Figure 1B The distribution of methylation beta values across the genome # ###Figure 1C The methylation heterogeneity index(MHI) value # ###Figure 1D The global methy...
/analysis/Figure-1B-E_global_DNA_methylation.r
no_license
GenomicsNX/impel
R
false
false
7,173
r
############################################################################################### ###Figure 1B The distribution of methylation beta values across the genome # ###Figure 1C The methylation heterogeneity index(MHI) value # ###Figure 1D The global methy...
library(data.table) library(tidyverse) library(skimr) # Q1. na가 있는 펭귄은 제거 # 1) na가 1개라도 있는 행 찾기 idx <- is.na(penguins) %>% apply(1, sum) idx > 0 which(idx == 0) # 2) 찾은 행 제거 # Q2. 펭귄종류에 따라 'bill_length_mm', 'bill_depth_mm', 'flipper_length_mm' 의 평균을 계산하고 출력하시오 # 아래와 같이 출력 # species bill_length_...
/answer.R
no_license
pluswc/lecture
R
false
false
4,410
r
library(data.table) library(tidyverse) library(skimr) # Q1. na가 있는 펭귄은 제거 # 1) na가 1개라도 있는 행 찾기 idx <- is.na(penguins) %>% apply(1, sum) idx > 0 which(idx == 0) # 2) 찾은 행 제거 # Q2. 펭귄종류에 따라 'bill_length_mm', 'bill_depth_mm', 'flipper_length_mm' 의 평균을 계산하고 출력하시오 # 아래와 같이 출력 # species bill_length_...
MethodsList <- function(data) { ## Calculate necessary variables and store in list: # # Summary of CTI # meanCTI = mean(data$CTI, na.rm = T) # sdCTI = sd(data$CTI, na.rm = T) # # Summary of ITI # meanITI = mean(data$ITI, na.rm = T) # sdITI = sd(data$ITI, na.rm = T) # # # Percentage of Errors, Split...
/Functions/MethodsList.R
no_license
SkippenP/C-MAT
R
false
false
7,048
r
MethodsList <- function(data) { ## Calculate necessary variables and store in list: # # Summary of CTI # meanCTI = mean(data$CTI, na.rm = T) # sdCTI = sd(data$CTI, na.rm = T) # # Summary of ITI # meanITI = mean(data$ITI, na.rm = T) # sdITI = sd(data$ITI, na.rm = T) # # # Percentage of Errors, Split...
## # Select and format data ## datasetp <- read.csv("C:/Users/KE/OneDrive/Development/Data Science/Projects/Titanic/Dataset/train_prelim2.csv", header = TRUE, stringsAsFactors = FALSE) datasetf <- FormatData4Model(datasetp[,-1], as.data.frame(paste0("cat_",datasetp[,1...
/Model/Deprecated/mdecisiontree_test.R
no_license
DrRoad/ShinyMLHome
R
false
false
1,614
r
## # Select and format data ## datasetp <- read.csv("C:/Users/KE/OneDrive/Development/Data Science/Projects/Titanic/Dataset/train_prelim2.csv", header = TRUE, stringsAsFactors = FALSE) datasetf <- FormatData4Model(datasetp[,-1], as.data.frame(paste0("cat_",datasetp[,1...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mergeReport.r \name{getSurfaces} \alias{getSurfaces} \alias{getSurfaces.egret} \alias{getSurfaces.default} \title{Get surfaces matrix from EGRET object} \usage{ getSurfaces(x, ...) \method{getSurfaces}{egret}(x, ...) \method{getSurfaces}{de...
/man/getSurfaces.Rd
permissive
kashenfelter/EGRET
R
false
true
732
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mergeReport.r \name{getSurfaces} \alias{getSurfaces} \alias{getSurfaces.egret} \alias{getSurfaces.default} \title{Get surfaces matrix from EGRET object} \usage{ getSurfaces(x, ...) \method{getSurfaces}{egret}(x, ...) \method{getSurfaces}{de...
#convert from base 10 to base x nnary=function(x,y){ if(y==0) return(0) else { k=y b=c() while(k !=0){ b=c(b, k %% x) k=floor(k/x) } return(rev(b)) } } l=4 #base n=l^6 f1=sapply(1:n, function(x) nnary(l,x)) #base n #make periodic derivative of n f2=vector(n,mod...
/scripts/base2_periodic_Derivative.R
no_license
somasushma/R-code
R
false
false
1,293
r
#convert from base 10 to base x nnary=function(x,y){ if(y==0) return(0) else { k=y b=c() while(k !=0){ b=c(b, k %% x) k=floor(k/x) } return(rev(b)) } } l=4 #base n=l^6 f1=sapply(1:n, function(x) nnary(l,x)) #base n #make periodic derivative of n f2=vector(n,mod...
#时域对齐 #左右移动寻找最佳位置使设备间和合速度相关性最大 testAlign = function(data1, data2,s1,e1,tag = "") { #时域对齐 #data1:基准数据 #data2:被校准数据 #s1:基准数据的开始索引 #e1:基准数据的结束索引 #tag:画图名称 c1 = sqrt(data1$Acc0 ^ 2 + data1$Acc1 ^ 2 + data1$Acc2 ^ 2) c2 = sqrt(data2$Acc0 ^ 2 + data2$Acc1 ^ 2 + data2$Acc2 ^ 2) c11 = c1[s1:e1] maxCor = 0 maxS2 = s1...
/time_align_3_11_car.R
no_license
LeoCai/MultiDeviceAlign-R
R
false
false
2,544
r
#时域对齐 #左右移动寻找最佳位置使设备间和合速度相关性最大 testAlign = function(data1, data2,s1,e1,tag = "") { #时域对齐 #data1:基准数据 #data2:被校准数据 #s1:基准数据的开始索引 #e1:基准数据的结束索引 #tag:画图名称 c1 = sqrt(data1$Acc0 ^ 2 + data1$Acc1 ^ 2 + data1$Acc2 ^ 2) c2 = sqrt(data2$Acc0 ^ 2 + data2$Acc1 ^ 2 + data2$Acc2 ^ 2) c11 = c1[s1:e1] maxCor = 0 maxS2 = s1...
library(clickstream) ### Name: Pattern-class ### Title: Class 'Pattern' ### Aliases: Pattern-class ### Keywords: classes ### ** Examples # show Pattern definition showClass("Pattern") # create simple Pattern objects pattern1 <- new("Pattern", sequence = c("h", "c", "p")) pattern2 <- new("Pattern", sequence = c("c...
/data/genthat_extracted_code/clickstream/examples/Pattern-class.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
495
r
library(clickstream) ### Name: Pattern-class ### Title: Class 'Pattern' ### Aliases: Pattern-class ### Keywords: classes ### ** Examples # show Pattern definition showClass("Pattern") # create simple Pattern objects pattern1 <- new("Pattern", sequence = c("h", "c", "p")) pattern2 <- new("Pattern", sequence = c("c...
test_that(desc = "Check recoding", code = { skip_on_oldrel() expect_snapshot({ expect_error(recode_na_as( airquality, value = 0, subset_cols = c("Ozone", "not in") ...
/tests/testthat/test_recode_na_as.R
no_license
cran/mde
R
false
false
1,729
r
test_that(desc = "Check recoding", code = { skip_on_oldrel() expect_snapshot({ expect_error(recode_na_as( airquality, value = 0, subset_cols = c("Ozone", "not in") ...
library(data.table) fn <- '/home/nate/Dropbox/MSDS/MSDS680_ncg_S8W1_18/week1/data/auto-mpg.data' # as.is leaves characters as characters instead of converting to factors, so we can substitute NA for ? df <- read.table(fn, as.is = T) auto.dt <- as.data.table(df) str(auto.dt) fn <- '/home/nate/Dropbox/MSDS/MSDS680_ncg...
/week_1/code/R/week1_R_data_prep_demo.R
no_license
rruss2/msds680_student_files
R
false
false
1,688
r
library(data.table) fn <- '/home/nate/Dropbox/MSDS/MSDS680_ncg_S8W1_18/week1/data/auto-mpg.data' # as.is leaves characters as characters instead of converting to factors, so we can substitute NA for ? df <- read.table(fn, as.is = T) auto.dt <- as.data.table(df) str(auto.dt) fn <- '/home/nate/Dropbox/MSDS/MSDS680_ncg...
library(tidyverse) library(viridis) library(extrafont) library(RColorBrewer) library(readxl) library(lubridate) library(scales) library(ggTimeSeries) tema <- function(){ theme_minimal() + theme( text = element_text(family = "Source Sans Pro", colour = "grey20"), title = element_text(face = "bold", si...
/modulo-leiloes/analise.R
no_license
tiagombp/projeto-divida
R
false
false
3,035
r
library(tidyverse) library(viridis) library(extrafont) library(RColorBrewer) library(readxl) library(lubridate) library(scales) library(ggTimeSeries) tema <- function(){ theme_minimal() + theme( text = element_text(family = "Source Sans Pro", colour = "grey20"), title = element_text(face = "bold", si...
## Sebastian Sippel # 11.03.2018 # This script is to write functions that calculate # complexity measures based on the q-logarithm # see H. V. Ribeiro et al., 2017, ArXiv "Characterizing Time Series via Complexity-Entropy Curves # " # https://arxiv.org/abs/1705.04779 # -----------------------------------------------...
/R/complexity_measures_q-log.R
no_license
cran/statcomp
R
false
false
3,652
r
## Sebastian Sippel # 11.03.2018 # This script is to write functions that calculate # complexity measures based on the q-logarithm # see H. V. Ribeiro et al., 2017, ArXiv "Characterizing Time Series via Complexity-Entropy Curves # " # https://arxiv.org/abs/1705.04779 # -----------------------------------------------...
#' Function for performing normalization and batch corrections on imputed data. #' #' Perform normalization and batch corrections on specified imputed dataset. #' Routines included are quantile, RUV (remove unwanted variation), SVA #' (surrogate variable analysis), median, CRMN (cross-contribution #' compensating multi...
/R/normalize.R
no_license
tuh8888/MSPrep
R
false
false
19,143
r
#' Function for performing normalization and batch corrections on imputed data. #' #' Perform normalization and batch corrections on specified imputed dataset. #' Routines included are quantile, RUV (remove unwanted variation), SVA #' (surrogate variable analysis), median, CRMN (cross-contribution #' compensating multi...