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
#Read in the data from file: #Text file needs to be in the same directory: hpc <- read.csv("~/Coursera/Exploratory Data Analysis/Week 1/ExData_Plotting1/household_power_consumption.txt", sep=";", stringsAsFactors=FALSE) #Subset the data: hpc = hpc[hpc$Date == "1/2/2007" | hpc$Date == "2/2/2007",] #Convert Date and Ti...
/plot3.R
no_license
thodl15/ExData_Plotting1
R
false
false
1,059
r
#Read in the data from file: #Text file needs to be in the same directory: hpc <- read.csv("~/Coursera/Exploratory Data Analysis/Week 1/ExData_Plotting1/household_power_consumption.txt", sep=";", stringsAsFactors=FALSE) #Subset the data: hpc = hpc[hpc$Date == "1/2/2007" | hpc$Date == "2/2/2007",] #Convert Date and Ti...
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = numeric(0), ra = numeric(0), relh = c(5.88443410089981e-141, -1.28159577326572e-227, 7.27044868125357e-308, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), rs = numeric(0), temp = c(8.53042307968039e-312, 1.56884...
/meteor/inst/testfiles/ET0_PenmanMonteith/AFL_ET0_PenmanMonteith/ET0_PenmanMonteith_valgrind_files/1615841692-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
841
r
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = numeric(0), ra = numeric(0), relh = c(5.88443410089981e-141, -1.28159577326572e-227, 7.27044868125357e-308, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), rs = numeric(0), temp = c(8.53042307968039e-312, 1.56884...
#knn classification algorithm data("iris") str(iris) table(iris$Species) head(iris) iris summary(iris) set.seed(9895) a <- runif(nrow(iris)) a iris <- iris[order(a),] str(iris) head(iris,10) summary(iris[ ,c(1,2,3,4)]) normalize <- function (x){ return((x - min(x))/(max(x) - min(x))) } normalize(c(1,2,3,4)) normalize...
/knn .R
no_license
abhishekjaglan/knn-classification
R
false
false
772
r
#knn classification algorithm data("iris") str(iris) table(iris$Species) head(iris) iris summary(iris) set.seed(9895) a <- runif(nrow(iris)) a iris <- iris[order(a),] str(iris) head(iris,10) summary(iris[ ,c(1,2,3,4)]) normalize <- function (x){ return((x - min(x))/(max(x) - min(x))) } normalize(c(1,2,3,4)) normalize...
# Linear Time Series Modelling # Modelling Ifo Business Climate Index with Markov regime-switching models # Evaluating Forecasting Performance of MS Models with linear Models (AR, MA, ARMA) # Package 'MSwM' Univariate Autoregressive Markov Switching Models for Linear and Generalized Models by using the EM algorithm. ...
/ARIMA.R
no_license
enderska/Markov-Regime-Switching-Model
R
false
false
2,475
r
# Linear Time Series Modelling # Modelling Ifo Business Climate Index with Markov regime-switching models # Evaluating Forecasting Performance of MS Models with linear Models (AR, MA, ARMA) # Package 'MSwM' Univariate Autoregressive Markov Switching Models for Linear and Generalized Models by using the EM algorithm. ...
globalVariables(c("FUNCTION_TBD", "NA.RM")) # issues to deal with # * var() is hybrid of 1-ary, 2-ary # * var( age ~ sex + substance, data=HELPrct ) doesn't work if using aggregatingFunction2() # * var( a, b, data=...) doesn't work if using agreggatingFunction1() # * var(), cov(), and cor() don't have ......
/R/aggregatingMeta.R
no_license
latuji/mosaic
R
false
false
17,015
r
globalVariables(c("FUNCTION_TBD", "NA.RM")) # issues to deal with # * var() is hybrid of 1-ary, 2-ary # * var( age ~ sex + substance, data=HELPrct ) doesn't work if using aggregatingFunction2() # * var( a, b, data=...) doesn't work if using agreggatingFunction1() # * var(), cov(), and cor() don't have ......
imputedata<- data imputedata$steps[which(is.na(data$steps))]<- as.vector(avg[as.character(data[which(is.na(data$steps)),3])]) stepseachday<- tapply(imputedata$steps, imputedata$date, sum, na.rm=TRUE) qplot(stepseachday, xlab="No. of Steps Taken Each Day", ylab="Total Frequency", binwidth=500) medianEachDayImputed<-...
/stepseachday.R
no_license
sahilmd789/rpubs1
R
false
false
382
r
imputedata<- data imputedata$steps[which(is.na(data$steps))]<- as.vector(avg[as.character(data[which(is.na(data$steps)),3])]) stepseachday<- tapply(imputedata$steps, imputedata$date, sum, na.rm=TRUE) qplot(stepseachday, xlab="No. of Steps Taken Each Day", ylab="Total Frequency", binwidth=500) medianEachDayImputed<-...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sort_inequalities.R \name{Ab_sort} \alias{Ab_sort} \title{Sort Inequalities by Acceptance Rate} \usage{ Ab_sort(A, b, k = 0, options, M = 1000, drop_irrelevant = TRUE) } \arguments{ \item{A}{a matrix with one row for each linear ineq...
/multinomineq/man/Ab_sort.Rd
no_license
akhikolla/TestedPackages-NoIssues
R
false
true
2,349
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sort_inequalities.R \name{Ab_sort} \alias{Ab_sort} \title{Sort Inequalities by Acceptance Rate} \usage{ Ab_sort(A, b, k = 0, options, M = 1000, drop_irrelevant = TRUE) } \arguments{ \item{A}{a matrix with one row for each linear ineq...
context("Colour ramp") test_that("Special values yield NAs", { pal <- seq_gradient_pal() expect_equal(pal(NA), NA_character_) expect_equal(pal(NaN), NA_character_) expect_equal(pal(Inf), NA_character_) expect_equal(pal(-Inf), NA_character_) })
/packrat/lib/x86_64-apple-darwin15.6.0/3.4.3/scales/tests/testthat/test-colour-ramp.R
no_license
alecri/kappa
R
false
false
256
r
context("Colour ramp") test_that("Special values yield NAs", { pal <- seq_gradient_pal() expect_equal(pal(NA), NA_character_) expect_equal(pal(NaN), NA_character_) expect_equal(pal(Inf), NA_character_) expect_equal(pal(-Inf), NA_character_) })
#' @include internal.R pproto.R ConservationProblem-proto.R OptimizationProblem-proto.R problem.R NULL #' Rarity weighted richness #' #' Calculate irreplaceability scores for planning units selected in a solution #' using rarity weighted richness (based on Williams *et al.* 1996). Please #' note that this method is o...
/R/rarity_weighted_richness.R
no_license
diogosbr/prioritizr
R
false
false
18,291
r
#' @include internal.R pproto.R ConservationProblem-proto.R OptimizationProblem-proto.R problem.R NULL #' Rarity weighted richness #' #' Calculate irreplaceability scores for planning units selected in a solution #' using rarity weighted richness (based on Williams *et al.* 1996). Please #' note that this method is o...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/utils.R \name{equal_length} \alias{equal_length} \title{Equal length} \usage{ equal_length(x) } \description{ Equal length }
/man/equal_length.Rd
no_license
crubba/crmisc
R
false
false
212
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/utils.R \name{equal_length} \alias{equal_length} \title{Equal length} \usage{ equal_length(x) } \description{ Equal length }
## ----echo=FALSE, cache=FALSE--------------------------------------------- library(Hmisc) library(xtable) library(memisc) library(rms) library(reshape2) library(ggplot2) library(plyr) theme_set(theme_bw()) ## ----01-load------------------------------------------------------------- raw <- textConnection(" 100 P 18 100...
/main.R
no_license
avinashtangudu/SAS2R
R
false
false
10,034
r
## ----echo=FALSE, cache=FALSE--------------------------------------------- library(Hmisc) library(xtable) library(memisc) library(rms) library(reshape2) library(ggplot2) library(plyr) theme_set(theme_bw()) ## ----01-load------------------------------------------------------------- raw <- textConnection(" 100 P 18 100...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Functions.R \name{spp70} \alias{spp70} \title{species function} \usage{ spp70(a, b, c, d, e) } \arguments{ \item{a}{environmental parameter} \item{b}{environmental parameter} \item{c}{environmental parameter} \item{d}{environmental paramet...
/man/spp70.Rd
permissive
Djeppschmidt/Model.Microbiome
R
false
true
452
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Functions.R \name{spp70} \alias{spp70} \title{species function} \usage{ spp70(a, b, c, d, e) } \arguments{ \item{a}{environmental parameter} \item{b}{environmental parameter} \item{c}{environmental parameter} \item{d}{environmental paramet...
PlotVoronoiGraph <- function(X,Y,Cls=X*0+1,OnlyRand=0,isToroid=1){ # Zeichnen der Voronoizellen # INPUT # [X(1:d),Y(1:d)] Punktkoordinaten # # OPTIONAL # Cls(1:d) Classes of bestmatches # OnlyRand Nur den Delaunay Graphen fuer Randpunkte von C...
/DbtTools/GraphAlgorithms/R/PlotVoronoiGraph.R
no_license
markus-flicke/KD_Projekt_1
R
false
false
3,710
r
PlotVoronoiGraph <- function(X,Y,Cls=X*0+1,OnlyRand=0,isToroid=1){ # Zeichnen der Voronoizellen # INPUT # [X(1:d),Y(1:d)] Punktkoordinaten # # OPTIONAL # Cls(1:d) Classes of bestmatches # OnlyRand Nur den Delaunay Graphen fuer Randpunkte von C...
mixed <- function(y, X, Z, dim, s20, method, lambda, adaptRW) { # mixed computes ML,REML,MINQE(I),MINQE(U,I),BLUE(b),BLUP(u) # by Henderson's Mixed Model Equations Algorithm. # # ====================================================================== # Model: Y=X*b+Z*u+e, # b=(b_1',...,b_f')' and ...
/MMEinR.R
no_license
fdslrm/MMEinR
R
false
false
20,174
r
mixed <- function(y, X, Z, dim, s20, method, lambda, adaptRW) { # mixed computes ML,REML,MINQE(I),MINQE(U,I),BLUE(b),BLUP(u) # by Henderson's Mixed Model Equations Algorithm. # # ====================================================================== # Model: Y=X*b+Z*u+e, # b=(b_1',...,b_f')' and ...
#' @templateVar class speedlm #' @template title_desc_tidy #' #' @param x A `speedlm` object returned from `speedglm::speedlm()`. #' @template param_confint #' @template param_unused_dots #' #' @evalRd return_tidy(regression = TRUE) #' #' @examplesIf FALSE #' #' # load modeling library #' # dlibrary(speedglm) #' #' # f...
/R/speedglm-speedlm-tidiers.R
permissive
gregmacfarlane/broom
R
false
false
3,321
r
#' @templateVar class speedlm #' @template title_desc_tidy #' #' @param x A `speedlm` object returned from `speedglm::speedlm()`. #' @template param_confint #' @template param_unused_dots #' #' @evalRd return_tidy(regression = TRUE) #' #' @examplesIf FALSE #' #' # load modeling library #' # dlibrary(speedglm) #' #' # f...
############step 1 import phenotypic data:myY ############step 1 import phenotypic data:myY allblup <- read.csv("data/alltraits.csv", na.strings = c("",".","NA"),row.names = 1) #allblup <- allblup[!(allblup$Entry==7|allblup$Entry==11|allblup$Entry==129|allblup$Entry==148|allblup$Entry==149|allblup$Entry==150),] str(al...
/Rcodes/5-2 MisFlo-NONMisingSNP.R
no_license
yzhao4651/Dissertation-
R
false
false
14,377
r
############step 1 import phenotypic data:myY ############step 1 import phenotypic data:myY allblup <- read.csv("data/alltraits.csv", na.strings = c("",".","NA"),row.names = 1) #allblup <- allblup[!(allblup$Entry==7|allblup$Entry==11|allblup$Entry==129|allblup$Entry==148|allblup$Entry==149|allblup$Entry==150),] str(al...
## Map of study sites pkgs <- c("sf", "tidyverse", "cowplot", "ggspatial") lapply(pkgs, library, character.only = TRUE) rm(pkgs) df <- st_read("./fucus-temp/data/raw_data/map_data/CAN_US_BCalbers") fraser <- st_read("./fucus-temp/data/raw_data/map_data/Fraser") sites <- tribble( ~type, ~name, ~lat, ~long, ~regi...
/scripts/site_map_2019.R
no_license
sandraemry/fucus-temp
R
false
false
6,041
r
## Map of study sites pkgs <- c("sf", "tidyverse", "cowplot", "ggspatial") lapply(pkgs, library, character.only = TRUE) rm(pkgs) df <- st_read("./fucus-temp/data/raw_data/map_data/CAN_US_BCalbers") fraser <- st_read("./fucus-temp/data/raw_data/map_data/Fraser") sites <- tribble( ~type, ~name, ~lat, ~long, ~regi...
# --- author: jose c. garcia alanis # --- encoding: utf-8 # --- r version: 3.4.4 (2018-03-15) -- "Someone to Lean On" # --- content: create corrects data frame for analysis # --- version: Fri Nov 16 12:11:33 2018 # --- 1) Run first, then move on to anylsis section ---------------------------- # Interactive setting of ...
/r_scripts/clean_data/003_create_corrects_rt.R
permissive
JoseAlanis/supplementary_dpx_tt
R
false
false
5,207
r
# --- author: jose c. garcia alanis # --- encoding: utf-8 # --- r version: 3.4.4 (2018-03-15) -- "Someone to Lean On" # --- content: create corrects data frame for analysis # --- version: Fri Nov 16 12:11:33 2018 # --- 1) Run first, then move on to anylsis section ---------------------------- # Interactive setting of ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data_coding2.R \encoding{UTF8} \name{data_coding2} \alias{data_coding2} \title{coding chs index.} \usage{ data_coding2(data, year) } \arguments{ \item{year}{the year investigated.} \item{data_set}{raw data of community health survey.} } \val...
/man/data_coding2.Rd
no_license
Sanggeun/chs
R
false
true
436
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data_coding2.R \encoding{UTF8} \name{data_coding2} \alias{data_coding2} \title{coding chs index.} \usage{ data_coding2(data, year) } \arguments{ \item{year}{the year investigated.} \item{data_set}{raw data of community health survey.} } \val...
#' Search Sub Folders #' #' Search subfolders for a file type with a particular column name and optionally validate. #' #' @param subfolder_paths A vector of directory paths to search in (from #' \code{\link[base]{list.dirs}} or \code{get_subfolder_path}). #' @param colname A column name to search for in the designated...
/R/var_lookup.R
no_license
data-steve/holstr
R
false
false
3,716
r
#' Search Sub Folders #' #' Search subfolders for a file type with a particular column name and optionally validate. #' #' @param subfolder_paths A vector of directory paths to search in (from #' \code{\link[base]{list.dirs}} or \code{get_subfolder_path}). #' @param colname A column name to search for in the designated...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cl-handling.R \name{rm_uncomplete} \alias{rm_uncomplete} \title{Remove shapes with incomplete slices} \usage{ rm_uncomplete(x, id, by) } \arguments{ \item{x}{the object on which to remove uncomplete "by"} \item{id}{of the objects, within the...
/man/rm_uncomplete.Rd
no_license
chris-english/Momocs
R
false
true
1,761
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cl-handling.R \name{rm_uncomplete} \alias{rm_uncomplete} \title{Remove shapes with incomplete slices} \usage{ rm_uncomplete(x, id, by) } \arguments{ \item{x}{the object on which to remove uncomplete "by"} \item{id}{of the objects, within the...
### Household + Population Barchart Module ### required Library source('script/package.R') create_pop_chart <- function(df_address){ main_df<- read_csv(df_address) pop_house_df <- main_df %>% gather(key = "type",value = "population_household",-state,-male,-female) pop_house_df <- arrange(pop_house_df,desc(typ...
/script/pop_chart.R
no_license
rugnepal/weather_station_data
R
false
false
523
r
### Household + Population Barchart Module ### required Library source('script/package.R') create_pop_chart <- function(df_address){ main_df<- read_csv(df_address) pop_house_df <- main_df %>% gather(key = "type",value = "population_household",-state,-male,-female) pop_house_df <- arrange(pop_house_df,desc(typ...
testlist <- list(Rs = numeric(0), atmp = 0, relh = -1.72131968218895e+83, temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, 1.13034403262403e+...
/meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615854009-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
658
r
testlist <- list(Rs = numeric(0), atmp = 0, relh = -1.72131968218895e+83, temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, 1.13034403262403e+...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Boot_Algo1_ML_30012018.R \name{boot.mean.algo1} \alias{boot.mean.algo1} \title{Estimates the bootstrap distribution of the likelihood ratio LR by the Algorithm 1 using the mean} \usage{ boot.mean.algo1( data.fuzzified, distribution, sig...
/man/boot.mean.algo1.Rd
no_license
cran/FuzzySTs
R
false
true
1,898
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Boot_Algo1_ML_30012018.R \name{boot.mean.algo1} \alias{boot.mean.algo1} \title{Estimates the bootstrap distribution of the likelihood ratio LR by the Algorithm 1 using the mean} \usage{ boot.mean.algo1( data.fuzzified, distribution, sig...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/nnrrFigIndikator.R \name{nnrrFigIndikator} \alias{nnrrFigIndikator} \title{Gi en visuell fremstilling av registerets indikatorer over tid} \usage{ nnrrFigIndikator( indikatordata, tittel = "", terskel = 30, minstekrav = NA, maal = N...
/man/nnrrFigIndikator.Rd
no_license
Rapporteket/nnrr
R
false
true
754
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/nnrrFigIndikator.R \name{nnrrFigIndikator} \alias{nnrrFigIndikator} \title{Gi en visuell fremstilling av registerets indikatorer over tid} \usage{ nnrrFigIndikator( indikatordata, tittel = "", terskel = 30, minstekrav = NA, maal = N...
# Make plot with 10% extrapolation vis.gam(mod2d, view = c("x", "y"), ___, ___) # Overlay data points(meuse)
/exercises/exc_03_07_1.R
permissive
benmarwick/gams-in-r-course
R
false
false
109
r
# Make plot with 10% extrapolation vis.gam(mod2d, view = c("x", "y"), ___, ___) # Overlay data points(meuse)
25dc0f9e2142ab0da2f32cb175e60711 load_3c_comp_comp4_REAL.sat.qdimacs 14181 43310
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/A1/Database/Tentrup/ltl2aig-comp/load_3c_comp_comp4_REAL.sat/load_3c_comp_comp4_REAL.sat.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
80
r
25dc0f9e2142ab0da2f32cb175e60711 load_3c_comp_comp4_REAL.sat.qdimacs 14181 43310
#' R + mermaid.js #' #' Make diagrams in R using \href{https://github.com/knsv/mermaid/wiki}{mermaid.js} #' with infrastructure provided by \href{http://www.htmlwidgets.org/}{htmlwidgets}. #' #' @param diagram diagram in mermaid markdown-like language or #' file (as a connection or file name) containing a diagram spe...
/R/mermaid.R
no_license
jjallaire/DiagrammeR
R
false
false
4,375
r
#' R + mermaid.js #' #' Make diagrams in R using \href{https://github.com/knsv/mermaid/wiki}{mermaid.js} #' with infrastructure provided by \href{http://www.htmlwidgets.org/}{htmlwidgets}. #' #' @param diagram diagram in mermaid markdown-like language or #' file (as a connection or file name) containing a diagram spe...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AllGenerics.R, R/pareto_norm.R \name{PsiNorm} \alias{PsiNorm} \alias{PsiNorm,SummarizedExperiment-method} \alias{PsiNorm,SingleCellExperiment-method} \alias{PsiNorm,ANY-method} \title{PsiNorm: scaling normalization based on the Pareto distrib...
/man/PsiNorm.Rd
no_license
YosefLab/scone
R
false
true
1,762
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AllGenerics.R, R/pareto_norm.R \name{PsiNorm} \alias{PsiNorm} \alias{PsiNorm,SummarizedExperiment-method} \alias{PsiNorm,SingleCellExperiment-method} \alias{PsiNorm,ANY-method} \title{PsiNorm: scaling normalization based on the Pareto distrib...
#' Determine gene copy number gains and losses #' #' @description Annotations deep deletions, truncations, LOH, and amplifications #' #' @param cnv.file Path to the cnv bed file. #' @param sel.cols A named vector indicating the columns to keep. Destination colnames should be: #' chrom, start, end, total_cn, major_cn, ...
/R/mkMutProfileCnv.R
no_license
UMCUGenetics/geneDriverAnnotator
R
false
false
13,377
r
#' Determine gene copy number gains and losses #' #' @description Annotations deep deletions, truncations, LOH, and amplifications #' #' @param cnv.file Path to the cnv bed file. #' @param sel.cols A named vector indicating the columns to keep. Destination colnames should be: #' chrom, start, end, total_cn, major_cn, ...
# The standard Sigmoid kernel computed on dense real valued features. library("sg") size_cache <- 10 fm_train_real <- t(as.matrix(read.table('../data/fm_train_real.dat'))) fm_test_real <- t(as.matrix(read.table('../data/fm_test_real.dat'))) # Sigmoid print('Sigmoid') gamma <- 1.2 coef0 <- 1.3 dump <- sg('set_kern...
/build/shogun_lib/examples/documented/r_static/kernel_sigmoid.R
no_license
behollis/muViewBranch
R
false
false
549
r
# The standard Sigmoid kernel computed on dense real valued features. library("sg") size_cache <- 10 fm_train_real <- t(as.matrix(read.table('../data/fm_train_real.dat'))) fm_test_real <- t(as.matrix(read.table('../data/fm_test_real.dat'))) # Sigmoid print('Sigmoid') gamma <- 1.2 coef0 <- 1.3 dump <- sg('set_kern...
context("BridgeRCore testing1") test_that("testing BridgeRCore", { halflife_table <- BridgeRCore(RNA_halflife_comparison, save = FALSE) expect_is(halflife_table, "data.table") }) context("BridgeRCore testing2") test_that("testing BridgeRCore 2", { halflife_table <- BridgeRCore(R...
/tests/testthat/test-RNA_halflife_core.R
no_license
Imamachi-n/BridgeR2
R
false
false
561
r
context("BridgeRCore testing1") test_that("testing BridgeRCore", { halflife_table <- BridgeRCore(RNA_halflife_comparison, save = FALSE) expect_is(halflife_table, "data.table") }) context("BridgeRCore testing2") test_that("testing BridgeRCore 2", { halflife_table <- BridgeRCore(R...
#' Post IDs to Eutils for later use #' #' #' #'@export #'@param db character Name of the database from which the IDs were taken #'@param id integer ID(s) for which data is being collected #'@param \dots character Additional terms to add to the request # #'@return QueryKey integer identifier for specific query in webhi...
/R/entrez_post.r
no_license
effect/rentrez
R
false
false
1,320
r
#' Post IDs to Eutils for later use #' #' #' #'@export #'@param db character Name of the database from which the IDs were taken #'@param id integer ID(s) for which data is being collected #'@param \dots character Additional terms to add to the request # #'@return QueryKey integer identifier for specific query in webhi...
#' multi-res voxelwise neighborhood random forest segmentation learning #' #' Represents multiscale feature images as a neighborhood and uses the features #' to build a random forest segmentation model from an image population #' #' @param y list of training labels. either an image or numeric value #' @param x a list o...
/R/mrvnrfs.R
permissive
ANTsX/ANTsR
R
false
false
7,775
r
#' multi-res voxelwise neighborhood random forest segmentation learning #' #' Represents multiscale feature images as a neighborhood and uses the features #' to build a random forest segmentation model from an image population #' #' @param y list of training labels. either an image or numeric value #' @param x a list o...
#' @title fun_name #' #' @description kolejna funkcja podmieniona #' #' @param param fun_name #' #' #' #' @export as.data.frame.factor<- function(params){ rap <- c("Czesc czesc tu Sebol nawija, Mordo nie ma gandy a ja wbijam klina", "Tutaj start, mega bujanka. Zaczynamy tutaj strefe jaranka", ...
/R/as.data.frame.factor.R
no_license
granatb/RapeR
R
false
false
695
r
#' @title fun_name #' #' @description kolejna funkcja podmieniona #' #' @param param fun_name #' #' #' #' @export as.data.frame.factor<- function(params){ rap <- c("Czesc czesc tu Sebol nawija, Mordo nie ma gandy a ja wbijam klina", "Tutaj start, mega bujanka. Zaczynamy tutaj strefe jaranka", ...
plot2 <- function(){ # Read the power consumption.txt file (assumes the file is in the working directory) PC_Data <- read.delim("./household_power_consumption.txt", header = TRUE, sep = ";",dec = ".", stringsAsFactors = FALSE) # Merge Date and Time together into a new column DateTime <- strptime(paste(P...
/plot2.r
no_license
anushamv/ExData_Plotting1
R
false
false
1,042
r
plot2 <- function(){ # Read the power consumption.txt file (assumes the file is in the working directory) PC_Data <- read.delim("./household_power_consumption.txt", header = TRUE, sep = ";",dec = ".", stringsAsFactors = FALSE) # Merge Date and Time together into a new column DateTime <- strptime(paste(P...
% Generated by roxygen2 (4.0.0): do not edit by hand \name{aes_string} \alias{aes_q} \alias{aes_string} \title{Generate aesthetic mappings from a string/quoted objects} \usage{ aes_string(x = NULL, y = NULL, ...) aes_q(x = NULL, y = NULL, ...) } \arguments{ \item{x,y,...}{List of name value pairs} } \description{ Aest...
/man/aes_string.Rd
no_license
richierocks/ggplot2
R
false
false
1,261
rd
% Generated by roxygen2 (4.0.0): do not edit by hand \name{aes_string} \alias{aes_q} \alias{aes_string} \title{Generate aesthetic mappings from a string/quoted objects} \usage{ aes_string(x = NULL, y = NULL, ...) aes_q(x = NULL, y = NULL, ...) } \arguments{ \item{x,y,...}{List of name value pairs} } \description{ Aest...
#exercício 02 #Organizar a tabela deste exercicio e salvar as modificações no formato.csv. Calcular a média de uptake para Quebec chilled. #importei os dados: ex2 <- read.csv("./data/exercicio_02.csv") ex2 #separei as colunas e linhas de interesse: ex2[22:42, c(1,2,4)] #tirei a média da última coluna (uptake): mea...
/R/exercicio2.R
no_license
AmandaCoracao/projeto
R
false
false
376
r
#exercício 02 #Organizar a tabela deste exercicio e salvar as modificações no formato.csv. Calcular a média de uptake para Quebec chilled. #importei os dados: ex2 <- read.csv("./data/exercicio_02.csv") ex2 #separei as colunas e linhas de interesse: ex2[22:42, c(1,2,4)] #tirei a média da última coluna (uptake): mea...
set.seed(13435) X <- data.frame('var1'=sample(1:5),'var2'=sample(6:10),var3=sample(11:15)) ##some test code so I can wrap my head around lists / vectors / data frames and the other crazy formats this language uses X class(X[1][]) class(X$var1) B<-X[sample(1:5),] B$'var2'[c(1,3)] = NA B B[1:2,'var2'] B[1:2,c('var2','v...
/course-3_data-cleaning/week-3/subsetting_data.R
no_license
DrShashiPonraja/coursera_data-science_Johns-Hopkins
R
false
false
1,017
r
set.seed(13435) X <- data.frame('var1'=sample(1:5),'var2'=sample(6:10),var3=sample(11:15)) ##some test code so I can wrap my head around lists / vectors / data frames and the other crazy formats this language uses X class(X[1][]) class(X$var1) B<-X[sample(1:5),] B$'var2'[c(1,3)] = NA B B[1:2,'var2'] B[1:2,c('var2','v...
#1. 부모의 키가 클수록 자식의 키도 상대적으로 크다고 하는데, 아버지의 키와 아들의 키를 조사하였더니 # 아래와 같이 나왔다고 한다. 이 자료를 바탕으로 해서 회귀식을 구하고 아버지의 키가 165cm일 때 아들의 # 키는 얼마인지 예측하시오. # 아버지의 키(x): 150 160 170 180 190 # 아들의 키(y): 176 179 182 181 185 father<-c(150, 160, 170, 180, 190) son<-c(176, 179, 182, 181, 185) k<-lm(son~father) k #아버지의 키가 1...
/ch09/ch09_Practice.R
no_license
JadenChoi94/R_Stactistics
R
false
false
2,734
r
#1. 부모의 키가 클수록 자식의 키도 상대적으로 크다고 하는데, 아버지의 키와 아들의 키를 조사하였더니 # 아래와 같이 나왔다고 한다. 이 자료를 바탕으로 해서 회귀식을 구하고 아버지의 키가 165cm일 때 아들의 # 키는 얼마인지 예측하시오. # 아버지의 키(x): 150 160 170 180 190 # 아들의 키(y): 176 179 182 181 185 father<-c(150, 160, 170, 180, 190) son<-c(176, 179, 182, 181, 185) k<-lm(son~father) k #아버지의 키가 1...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{LOS} \alias{LOS} \title{Length of Stay data} \format{ A data frame with 1000 rows and 5 variables: \describe{ \item{site}{site id, 500 'site1', 400 'site2' and 100 'site3'} \item{age}{3 categories, 'young', 'mi...
/man/LOS.Rd
no_license
Penncil/pda
R
false
true
682
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{LOS} \alias{LOS} \title{Length of Stay data} \format{ A data frame with 1000 rows and 5 variables: \describe{ \item{site}{site id, 500 'site1', 400 'site2' and 100 'site3'} \item{age}{3 categories, 'young', 'mi...
# Project 2 in data wrangling module to perform missing data handling library(tidyr) library(dplyr) # 0: Load the data in RStudiod # Save the target data to a R variable - "ds" ds <- read.csv("titanic_original.csv") as.data.frame(ds) # 1: Port of embarkation # Replace missing value in embarked column with "S" ds$emba...
/Titanic/titanic.R
no_license
jorbesli/data_wrangling
R
false
false
948
r
# Project 2 in data wrangling module to perform missing data handling library(tidyr) library(dplyr) # 0: Load the data in RStudiod # Save the target data to a R variable - "ds" ds <- read.csv("titanic_original.csv") as.data.frame(ds) # 1: Port of embarkation # Replace missing value in embarked column with "S" ds$emba...
###----------------------------------------------------------------------------------- # Introduction # # This assignment uses data from the UC Irvine Machine Learning Repository, a popular repository for machine learning datasets. In particular, we will be using the “Individual household electric power consumption Dat...
/plot2.R
no_license
TDST/ExData_Plotting1
R
false
false
3,271
r
###----------------------------------------------------------------------------------- # Introduction # # This assignment uses data from the UC Irvine Machine Learning Repository, a popular repository for machine learning datasets. In particular, we will be using the “Individual household electric power consumption Dat...
# reproducing Figure 1 library('igraph') karate <- make_graph("Zachary") A <- as_adjacency_matrix(karate) W <- as.matrix(A) moduleid <- c(9,10,31,34,32,25,23,28,29,15,26,24,30,16,27,19,21,33) n <- dim(W)[1] z <- runif(n, min=0, max=1) z[moduleid] <- runif(length(moduleid), min=0.5, max=1) ## reproducing Figure 1 (a) ...
/Example/Reproducing.R
no_license
fairmiracle/ModuleExtraction
R
false
false
3,310
r
# reproducing Figure 1 library('igraph') karate <- make_graph("Zachary") A <- as_adjacency_matrix(karate) W <- as.matrix(A) moduleid <- c(9,10,31,34,32,25,23,28,29,15,26,24,30,16,27,19,21,33) n <- dim(W)[1] z <- runif(n, min=0, max=1) z[moduleid] <- runif(length(moduleid), min=0.5, max=1) ## reproducing Figure 1 (a) ...
# Function that adjusts the prevalence # estimates for test sensitivity and specificity # in classical way library(GJRM) adjust_prev_test_chars <- function(prev_object, sensitivity = 1, specificity = 1) { # Debug: prev_object <- prev(out.basic.iga_g_m.param$fit, type = "naive", delta = T); sensitivity = 0.99; specif...
/code/analysis/helper_functions/adjust_prev_test_chars.r
permissive
idorkhanov/spb_covid_study20
R
false
false
1,176
r
# Function that adjusts the prevalence # estimates for test sensitivity and specificity # in classical way library(GJRM) adjust_prev_test_chars <- function(prev_object, sensitivity = 1, specificity = 1) { # Debug: prev_object <- prev(out.basic.iga_g_m.param$fit, type = "naive", delta = T); sensitivity = 0.99; specif...
################## # Library #################### # Library used in kaggle preprocessing library(data.table) library(dplyr) library(tidyr) library(lubridate) library(ggplot2) ###############################https://docs.google.com/spreadsheets/d/1CFD6HrOl-aY5mxljO7ExNxpRgqrwaXF1D2mxOfy3GrY/edit?usp=sharing # Load file...
/gene_spm_data.R
no_license
wyharveychen/DataMining-FinalProject
R
false
false
898
r
################## # Library #################### # Library used in kaggle preprocessing library(data.table) library(dplyr) library(tidyr) library(lubridate) library(ggplot2) ###############################https://docs.google.com/spreadsheets/d/1CFD6HrOl-aY5mxljO7ExNxpRgqrwaXF1D2mxOfy3GrY/edit?usp=sharing # Load file...
library(dplyr) library(Seurat) library(ggplot2) library(data.table) library(scran) library(scRNAseq) library(scater) library(DoubletFinder) library(BBmisc) library(ggrepel) library(ggpubr) library(patchwork) library(VISION) library(viridis) tabulafacs <- readRDS("Tabula FACS/tabulafacsabs.rds") tabula_unnorm <- readRD...
/Figure Code/Supplementary Figure 3.R
no_license
yunkyokim/AbsoluteScaling
R
false
false
13,348
r
library(dplyr) library(Seurat) library(ggplot2) library(data.table) library(scran) library(scRNAseq) library(scater) library(DoubletFinder) library(BBmisc) library(ggrepel) library(ggpubr) library(patchwork) library(VISION) library(viridis) tabulafacs <- readRDS("Tabula FACS/tabulafacsabs.rds") tabula_unnorm <- readRD...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/create_event_subscription.R \name{create_event_subscription} \alias{create_event_subscription} \title{Create event subscription} \usage{ create_event_subscription(packageId, url, env = "production") } \arguments{ \item{packageId}{(character) ...
/man/create_event_subscription.Rd
permissive
ropensci/EDIutils
R
false
true
1,628
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/create_event_subscription.R \name{create_event_subscription} \alias{create_event_subscription} \title{Create event subscription} \usage{ create_event_subscription(packageId, url, env = "production") } \arguments{ \item{packageId}{(character) ...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{ex04.23} \alias{ex04.23} \title{Data from Exercise 04.23} \format{\Sexpr[results=rd]{bps5data:::doc_data("ex04.23") }} \source{ \url{ http://bcs.whfreeman.com/bps5e/content/cat_030/PC-Text.zip } } \usage{ d...
/man/ex04.23.Rd
no_license
jrnold/bps5data
R
false
false
1,167
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{ex04.23} \alias{ex04.23} \title{Data from Exercise 04.23} \format{\Sexpr[results=rd]{bps5data:::doc_data("ex04.23") }} \source{ \url{ http://bcs.whfreeman.com/bps5e/content/cat_030/PC-Text.zip } } \usage{ d...
library (ggplot2) library(grid) qplot(X, Y, data = t1, color = factor(A), group = factor(A))+ guides(col = guide_legend(nrow = 25)) + scale_y_reverse()+ geom_path(aes(group=factor(A))) qplot(X, Y, data=t1 [t1$A>0 & t1$A<21, ], color = factor(A), group = factor(A))+ guides (col = guide_legend(nrow = 25)) + geom_...
/checking trackmate/trajectory plots checking.R
no_license
kaye11/Some-R-scripts
R
false
false
6,536
r
library (ggplot2) library(grid) qplot(X, Y, data = t1, color = factor(A), group = factor(A))+ guides(col = guide_legend(nrow = 25)) + scale_y_reverse()+ geom_path(aes(group=factor(A))) qplot(X, Y, data=t1 [t1$A>0 & t1$A<21, ], color = factor(A), group = factor(A))+ guides (col = guide_legend(nrow = 25)) + geom_...
# IGraph R package # Copyright (C) 2005-2012 Gabor Csardi <csardi.gabor@gmail.com> # 334 Harvard street, Cambridge, MA 02139 USA # # 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 Foundation;...
/R/basic.R
no_license
Ruchika8/Dgraph
R
false
false
2,876
r
# IGraph R package # Copyright (C) 2005-2012 Gabor Csardi <csardi.gabor@gmail.com> # 334 Harvard street, Cambridge, MA 02139 USA # # 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 Foundation;...
#!/usr/bin/env Rscript args <- commandArgs(trailingOnly=T) if(length(args) < 2) { stop('Usage: treble2.R <tree> <outname>') } #suppressPackageStartupMessages(require(argparse)) suppressPackageStartupMessages(require(ape)) suppressPackageStartupMessages(require(adephylo)) suppressPackageStartupMessages(require(magri...
/treble.R
permissive
sdwfrost/exploratory-phylodynamics
R
false
false
2,385
r
#!/usr/bin/env Rscript args <- commandArgs(trailingOnly=T) if(length(args) < 2) { stop('Usage: treble2.R <tree> <outname>') } #suppressPackageStartupMessages(require(argparse)) suppressPackageStartupMessages(require(ape)) suppressPackageStartupMessages(require(adephylo)) suppressPackageStartupMessages(require(magri...
\name{fix.design} \alias{fix} \alias{fix.design} \alias{fix.default} \alias{showData} \alias{showData.default} \alias{showData.design} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Functions to preserve class design when editing a design and to use the view data button with class ...
/man/fix.design.Rd
no_license
linkinjy/RcmdrPlugin.DoE
R
false
false
7,722
rd
\name{fix.design} \alias{fix} \alias{fix.design} \alias{fix.default} \alias{showData} \alias{showData.default} \alias{showData.design} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Functions to preserve class design when editing a design and to use the view data button with class ...
#' Function that generates predisposition_report - CPSR #' #' @param project_directory name of project directory #' @param query_vcf2tsv name of gzipped TSV file (vcf2tsv) with annotated query SNVs/InDels #' @param pcgr_data List of data frames with PCGR data annotations #' @param cpsr_config Object with CPSR configur...
/src/R/pcgrr/R/cpsr.R
permissive
ngenebio/pcgr
R
false
false
55,742
r
#' Function that generates predisposition_report - CPSR #' #' @param project_directory name of project directory #' @param query_vcf2tsv name of gzipped TSV file (vcf2tsv) with annotated query SNVs/InDels #' @param pcgr_data List of data frames with PCGR data annotations #' @param cpsr_config Object with CPSR configur...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/selectClassic.R \name{selectClassic} \alias{selectClassic} \title{Retrieve the density of leaf area given leaf angle measurements.} \usage{ selectClassic(LeafAngles) } \arguments{ \item{LeafAngles}{The measurements of leaf angle dist...
/man/selectClassic.Rd
no_license
cran/RLeafAngle
R
false
true
817
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/selectClassic.R \name{selectClassic} \alias{selectClassic} \title{Retrieve the density of leaf area given leaf angle measurements.} \usage{ selectClassic(LeafAngles) } \arguments{ \item{LeafAngles}{The measurements of leaf angle dist...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/GeneralTree.R \name{left_child} \alias{left_child} \title{Return the left child of the node.} \usage{ left_child(self, private) } \arguments{ \item{self}{The node that should be inspected.} \item{private}{The private members of a node.} } \v...
/man/left_child.Rd
permissive
abossenbroek/GeneralTree
R
false
true
452
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/GeneralTree.R \name{left_child} \alias{left_child} \title{Return the left child of the node.} \usage{ left_child(self, private) } \arguments{ \item{self}{The node that should be inspected.} \item{private}{The private members of a node.} } \v...
require(RColorBrewer) require(foreach) sciNotation <- function(x, digits = 1) { if (length(x) > 1) { return(append(sciNotation(x[1]), sciNotation(x[-1]))) } if (!x) return(0) exponent <- floor(log10(x)) ##base <- sprintf("%.1f",x / 10^exponent) ba...
/multi-matched.R
no_license
dronga/450ktools
R
false
false
5,227
r
require(RColorBrewer) require(foreach) sciNotation <- function(x, digits = 1) { if (length(x) > 1) { return(append(sciNotation(x[1]), sciNotation(x[-1]))) } if (!x) return(0) exponent <- floor(log10(x)) ##base <- sprintf("%.1f",x / 10^exponent) ba...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/publish.R \name{save_d3_png} \alias{save_d3_png} \title{Save a D3 visualization as a PNG image} \usage{ save_d3_png(d3, file, background = "white", width = 992, height = 744, delay = 0.2, zoom = 1) } \arguments{ \item{d3}{D3 visualization t...
/man/save_d3_png.Rd
permissive
rgerecke/r2d3
R
false
true
1,717
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/publish.R \name{save_d3_png} \alias{save_d3_png} \title{Save a D3 visualization as a PNG image} \usage{ save_d3_png(d3, file, background = "white", width = 992, height = 744, delay = 0.2, zoom = 1) } \arguments{ \item{d3}{D3 visualization t...
#coding=utf-8 #!/usr/bin/env Rscript library("optparse") option_list <- list( make_option(c("-d", "--database"), type="character", default="input.txt", help="database path to read [default %default]"), make_option(c("-b", "--binpath"), type="character", default="input.txt", help="bin path...
/bin/calc_tAi.R
permissive
pandora414/ssnp
R
false
false
1,063
r
#coding=utf-8 #!/usr/bin/env Rscript library("optparse") option_list <- list( make_option(c("-d", "--database"), type="character", default="input.txt", help="database path to read [default %default]"), make_option(c("-b", "--binpath"), type="character", default="input.txt", help="bin path...
\alias{gtkRecentManagerHasItem} \name{gtkRecentManagerHasItem} \title{gtkRecentManagerHasItem} \description{Checks whether there is a recently used resource registered with \code{uri} inside the recent manager.} \usage{gtkRecentManagerHasItem(object, uri)} \arguments{ \item{\code{object}}{[\code{\link{GtkRecentManager}...
/man/gtkRecentManagerHasItem.Rd
no_license
cran/RGtk2.10
R
false
false
575
rd
\alias{gtkRecentManagerHasItem} \name{gtkRecentManagerHasItem} \title{gtkRecentManagerHasItem} \description{Checks whether there is a recently used resource registered with \code{uri} inside the recent manager.} \usage{gtkRecentManagerHasItem(object, uri)} \arguments{ \item{\code{object}}{[\code{\link{GtkRecentManager}...
# funçao que cria uma coluna com os conceitos finais usando regex - hits f_cria_coluna_hits <- function(conceito,expreg,expressao){ hits <- c() for(i in expressao){ print(i) # no caso de i ser um NA if(is.na(i)) { bb <- NA hits <- append(hits,bb) next } sappl...
/code/fun_regex.R
no_license
gusmmm/anestesia.info
R
false
false
520
r
# funçao que cria uma coluna com os conceitos finais usando regex - hits f_cria_coluna_hits <- function(conceito,expreg,expressao){ hits <- c() for(i in expressao){ print(i) # no caso de i ser um NA if(is.na(i)) { bb <- NA hits <- append(hits,bb) next } sappl...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/user.R \name{upload_file} \alias{upload_file} \title{Uploads data into the users workspace} \usage{ upload_file(con, content, target, encode = "raw", mime = "application/octet-stream") } \arguments{ \item{con}{authorized Connection} \item{...
/man/upload_file.Rd
permissive
przell/openeo-r-client
R
false
true
841
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/user.R \name{upload_file} \alias{upload_file} \title{Uploads data into the users workspace} \usage{ upload_file(con, content, target, encode = "raw", mime = "application/octet-stream") } \arguments{ \item{con}{authorized Connection} \item{...
context("Terminator") test_that("API", { t = Terminator$new(list()) expect_error(t$update_start()) expect_error(t$update_end()) })
/tests/testthat/test_Terminator.R
permissive
be-marc/mlr3tuning
R
false
false
139
r
context("Terminator") test_that("API", { t = Terminator$new(list()) expect_error(t$update_start()) expect_error(t$update_end()) })
# AIL_B6xS1 # # copyright (c) - Danny Arends & Manuel Delpero # first written september, 2019 # LMMMQM-TS for bodyweight using AIL_B6xS1 setwd("C:/Users/Manuel/Desktop/AIL_B6xBFMI/RAWDATA") genotypes <- read.csv("genomatrix.clean_numeric.txt", header = TRUE, check.names = FALSE, sep="\t", colClasses="character") phe...
/QTLmapping_Overview/LMMMQM.R
no_license
ManuelDelpero/AIL_B6xBFMI
R
false
false
14,198
r
# AIL_B6xS1 # # copyright (c) - Danny Arends & Manuel Delpero # first written september, 2019 # LMMMQM-TS for bodyweight using AIL_B6xS1 setwd("C:/Users/Manuel/Desktop/AIL_B6xBFMI/RAWDATA") genotypes <- read.csv("genomatrix.clean_numeric.txt", header = TRUE, check.names = FALSE, sep="\t", colClasses="character") phe...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{arctic_lake} \alias{arctic_lake} \title{Arctic lake sediments at different depths} \format{ An object of class \code{data.frame} with 39 rows and 5 columns. } \usage{ arctic_lake } \description{ The arctic lake dat...
/man/arctic_lake.Rd
no_license
mcomas/coda.base
R
false
true
406
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{arctic_lake} \alias{arctic_lake} \title{Arctic lake sediments at different depths} \format{ An object of class \code{data.frame} with 39 rows and 5 columns. } \usage{ arctic_lake } \description{ The arctic lake dat...
################################################################################################################################## #' Cylinder Bands #' #' @name bands #' #' #' @description This dataset is related with process delays known as cylinder banding in rotogravure printing. #' #' The full dataset was describ...
/R/qdata-data.R
no_license
quantide/qdata
R
false
false
107,123
r
################################################################################################################################## #' Cylinder Bands #' #' @name bands #' #' #' @description This dataset is related with process delays known as cylinder banding in rotogravure printing. #' #' The full dataset was describ...
#' Convert R boolean values #' #' Convert R boolean values to javascript #' @param x The vector to be converted #' @note Done like this so if we want a concatinated JSON array we can fix it once here #' @author Thomas Finnie (Thomas.Finnie@@phe.gov.uk) #' @export javascriptBoolean <- function(x){ tolower(x) } #' Qu...
/llmap/R/utils.R
no_license
twomagpi/llmap
R
false
false
1,241
r
#' Convert R boolean values #' #' Convert R boolean values to javascript #' @param x The vector to be converted #' @note Done like this so if we want a concatinated JSON array we can fix it once here #' @author Thomas Finnie (Thomas.Finnie@@phe.gov.uk) #' @export javascriptBoolean <- function(x){ tolower(x) } #' Qu...
## the function creates or retrieves the matrix or its inverse makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y inv <<- NULL } get <- function() x setinv <- function(inver) inv <<- inver getinv <- function() inv list(set = set, get = ...
/cachematrix.R
no_license
anujsthakur/ProgrammingAssignment2
R
false
false
737
r
## the function creates or retrieves the matrix or its inverse makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y inv <<- NULL } get <- function() x setinv <- function(inver) inv <<- inver getinv <- function() inv list(set = set, get = ...
seed <- 460 log.wt <- 0.0 penalty <- 2.8115950178536287e-8 intervals.send <- c() intervals.recv <- c(56, 112, 225, 450, 900, 1800, 3600, 7200, 14400, 28800, 57600, 115200, 230400, 460800, 921600, 1843200, 3686400, 7372800, 14745600, 29491200, 58982400) dev.null <- 358759.0022669336 df.null <- 35567 dev.resid <- 226306....
/analysis/boot/boot460.R
no_license
patperry/interaction-proc
R
false
false
3,743
r
seed <- 460 log.wt <- 0.0 penalty <- 2.8115950178536287e-8 intervals.send <- c() intervals.recv <- c(56, 112, 225, 450, 900, 1800, 3600, 7200, 14400, 28800, 57600, 115200, 230400, 460800, 921600, 1843200, 3686400, 7372800, 14745600, 29491200, 58982400) dev.null <- 358759.0022669336 df.null <- 35567 dev.resid <- 226306....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{hex_area} \alias{hex_area} \title{Average hexagon area in square meters or kilometers at the given resolution.} \usage{ hex_area(res, unit) } \arguments{ \item{res}{resolution between 0 and 15} \item{unit}{either \code{m2...
/man/hex_area.Rd
permissive
crazycapivara/h3-r
R
false
true
457
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{hex_area} \alias{hex_area} \title{Average hexagon area in square meters or kilometers at the given resolution.} \usage{ hex_area(res, unit) } \arguments{ \item{res}{resolution between 0 and 15} \item{unit}{either \code{m2...
#' Compute statistics analytically for an sld object #' #' Compute statistics for mean, var, skewness, kurtosis for SLD. #' These functions are just wrappers on \code{\link{ksl}}. #' If you need to calculate the statistics in quantity, you should use \code{\link{ksl}} or \code{\link{kqsl}} directly. #' #' @param obje...
/R/sld-sd-method.R
no_license
cran/ecd
R
false
false
1,896
r
#' Compute statistics analytically for an sld object #' #' Compute statistics for mean, var, skewness, kurtosis for SLD. #' These functions are just wrappers on \code{\link{ksl}}. #' If you need to calculate the statistics in quantity, you should use \code{\link{ksl}} or \code{\link{kqsl}} directly. #' #' @param obje...
bwplot(Sepal.Length~Species,data=iris) bwplot(Species~Sepal.Length,data=iris) bwplot(~eruptions,faithful)
/inst/snippet/iris-bwplot.R
no_license
cran/fastR
R
false
false
106
r
bwplot(Sepal.Length~Species,data=iris) bwplot(Species~Sepal.Length,data=iris) bwplot(~eruptions,faithful)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/removeNAs.R \name{removeNAs} \alias{removeNAs} \title{Remove columns that exceed a specified percentage of missing values} \usage{ removeNAs(df, pct = 0.85) } \arguments{ \item{df}{The name of the dataframe, not in quotes, for which the colum...
/man/removeNAs.Rd
no_license
bryanschreiner/ronsFunctions
R
false
true
614
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/removeNAs.R \name{removeNAs} \alias{removeNAs} \title{Remove columns that exceed a specified percentage of missing values} \usage{ removeNAs(df, pct = 0.85) } \arguments{ \item{df}{The name of the dataframe, not in quotes, for which the colum...
> save.image() > getwd() > dir() > setwd("C://Users//vikas//Desktop//EPBA//Assignment_1") > save.image() > getwd() [1] "C:/Users/vikas/Desktop/EPBA/Assignment_1" > dir() > setwd("C://Users//vikas//Desktop//EPBA//Assignment_1") > save.image() > getwd() > library(XML) > myWebPage <- 'C://Users//vikas//Desktop//EPBA//Assi...
/Assignment_1/tested.r
no_license
vikibytes/myAssignments_R
R
false
false
982
r
> save.image() > getwd() > dir() > setwd("C://Users//vikas//Desktop//EPBA//Assignment_1") > save.image() > getwd() [1] "C:/Users/vikas/Desktop/EPBA/Assignment_1" > dir() > setwd("C://Users//vikas//Desktop//EPBA//Assignment_1") > save.image() > getwd() > library(XML) > myWebPage <- 'C://Users//vikas//Desktop//EPBA//Assi...
testlist <- list(phi = 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), x = c(1.36656528938164e-311, -1.657912...
/dcurver/inst/testfiles/ddc/AFL_ddc/ddc_valgrind_files/1609868203-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
832
r
testlist <- list(phi = 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), x = c(1.36656528938164e-311, -1.657912...
library(tree) library(e1071) d = read.csv("Irrigation_table - clean binary.csv", encoding="UTF-8") for(i in seq(2, 29)) { d[,i] = as.factor(d[,i]) } attach(d) nbayes = naiveBayes(X.U.FEFF.Method~., data=d)
/data/naivebayes.R
no_license
ReubenLing/FIT3164
R
false
false
220
r
library(tree) library(e1071) d = read.csv("Irrigation_table - clean binary.csv", encoding="UTF-8") for(i in seq(2, 29)) { d[,i] = as.factor(d[,i]) } attach(d) nbayes = naiveBayes(X.U.FEFF.Method~., data=d)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/markers.R \name{autoMarkers} \alias{autoMarkers} \title{Automatically finds markers by removing blacklisted items from a vector of names} \usage{ autoMarkers(v) } \arguments{ \item{v}{vector of names} } \value{ A subset of v that is not black...
/man/autoMarkers.Rd
permissive
labsyspharm/naivestates
R
false
true
426
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/markers.R \name{autoMarkers} \alias{autoMarkers} \title{Automatically finds markers by removing blacklisted items from a vector of names} \usage{ autoMarkers(v) } \arguments{ \item{v}{vector of names} } \value{ A subset of v that is not black...
library(RhpcBLASctl) #Set the algebra routine to use one core# blas_set_num_threads(1) #File names of script for each paper. Scipt for paper is name as number.R# code.all = list.files(pattern="[[:digit:]].R$") iteration = 2000 #p.all store p-value for comparing random groups# #p.paper/all store p-value for comparin...
/Resampling/Compile.R
no_license
QFCatMSU/Meta-analysis
R
false
false
944
r
library(RhpcBLASctl) #Set the algebra routine to use one core# blas_set_num_threads(1) #File names of script for each paper. Scipt for paper is name as number.R# code.all = list.files(pattern="[[:digit:]].R$") iteration = 2000 #p.all store p-value for comparing random groups# #p.paper/all store p-value for comparin...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cophen.R \name{cophen} \alias{cophen} \title{Internal function that Compute phylogenetic distances among species} \usage{ cophen(phy) } \arguments{ \item{phy}{a phylogenetic tree of class phylo or evolutionary distance matrix between species ...
/man/cophen.Rd
no_license
gdauby/spacodiR
R
false
true
518
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cophen.R \name{cophen} \alias{cophen} \title{Internal function that Compute phylogenetic distances among species} \usage{ cophen(phy) } \arguments{ \item{phy}{a phylogenetic tree of class phylo or evolutionary distance matrix between species ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pred_int_tdist.R \name{pred_int_tdist} \alias{pred_int_tdist} \title{Prediction interval for a 'numeric' based on the t-distribution} \usage{ pred_int_tdist(x, level = 0.95, interval = c("prediction", "confidence")) } \arguments{ \item{x}{sho...
/man/pred_int_tdist.Rd
no_license
femiguez/predintma
R
false
true
978
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pred_int_tdist.R \name{pred_int_tdist} \alias{pred_int_tdist} \title{Prediction interval for a 'numeric' based on the t-distribution} \usage{ pred_int_tdist(x, level = 0.95, interval = c("prediction", "confidence")) } \arguments{ \item{x}{sho...
context('Check printing method for xpose_plots') # Define plots to be tested ----------------------------------------------- # Facet wrap p1 <- xplot_scatter(xpdb = xpdb_ex_pk, aes_string(x = 'PRED', y = 'DV'), quiet = TRUE) p2 <- xplot_scatter(xpdb = xpdb_ex_pk, aes_string(x = 'PRED', y = 'DV'), ...
/data/genthat_extracted_code/xpose/tests/test-print_xpose_plots.R
no_license
surayaaramli/typeRrh
R
false
false
1,846
r
context('Check printing method for xpose_plots') # Define plots to be tested ----------------------------------------------- # Facet wrap p1 <- xplot_scatter(xpdb = xpdb_ex_pk, aes_string(x = 'PRED', y = 'DV'), quiet = TRUE) p2 <- xplot_scatter(xpdb = xpdb_ex_pk, aes_string(x = 'PRED', y = 'DV'), ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vr_kaplan_meier.R \name{vr_kaplan_meier} \alias{vr_kaplan_meier} \title{Generate Kaplan-Meier plot for survival data} \usage{ vr_kaplan_meier( data, equation = "survival::Surv(time, status) ~ trt", title = "", abbreviations = NULL, ...
/man/vr_kaplan_meier.Rd
permissive
Dhitebayu/visR
R
false
true
1,487
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vr_kaplan_meier.R \name{vr_kaplan_meier} \alias{vr_kaplan_meier} \title{Generate Kaplan-Meier plot for survival data} \usage{ vr_kaplan_meier( data, equation = "survival::Surv(time, status) ~ trt", title = "", abbreviations = NULL, ...
#################################################################### # Machine Learning - MIRI Master # Lluís A. Belanche # LAB 0: Introduction to R (and a bit of statistics) # version of February 2018 #################################################################### # Welcome to R! ########################## ## ...
/Lecture 0/ML-MIRI-L0.R
no_license
guifreballester/ml-spring17
R
false
false
20,912
r
#################################################################### # Machine Learning - MIRI Master # Lluís A. Belanche # LAB 0: Introduction to R (and a bit of statistics) # version of February 2018 #################################################################### # Welcome to R! ########################## ## ...
\name{postPriorOverlap} \alias{postPriorOverlap} \title{ Overlap between posterior and prior probability distributions. } \description{ Calculates and displays the overlap between a posterior distribution (as a vector of values, typically draws from an MCMC process) and a prior distribution (as a vector of values...
/man/postPriorOverlap.Rd
no_license
dsfernandez/wiqid
R
false
false
2,959
rd
\name{postPriorOverlap} \alias{postPriorOverlap} \title{ Overlap between posterior and prior probability distributions. } \description{ Calculates and displays the overlap between a posterior distribution (as a vector of values, typically draws from an MCMC process) and a prior distribution (as a vector of values...
## ---- warning=FALSE,message=FALSE------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ library(ggplot2) # Data visualization library(readr) # CSV file I/O, e.g. the read_csv funct...
/r/kernels/pjmcintyre-titanic-first-kernel/script/titanic-first-kernel.R
no_license
helenaK/trustworthy-titanic
R
false
false
42,951
r
## ---- warning=FALSE,message=FALSE------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ library(ggplot2) # Data visualization library(readr) # CSV file I/O, e.g. the read_csv funct...
#' Counts the Unique Values in a Column of a Dataframe # counts unique values in a column value_counts <- function(column) { values <- unique(column) k <- 0 valuelist <- vector() for (i in values) { k <- k + 1 valuelist <- append(valuelist, sum(column == i)) } return(data.frame("name" = values, "num...
/R/Readfile.r
no_license
IllustratedMan-code/Process
R
false
false
4,284
r
#' Counts the Unique Values in a Column of a Dataframe # counts unique values in a column value_counts <- function(column) { values <- unique(column) k <- 0 valuelist <- vector() for (i in values) { k <- k + 1 valuelist <- append(valuelist, sum(column == i)) } return(data.frame("name" = values, "num...
# figure 1.cross validation. %% Do fig 1 and 2, random and spatial cv. IDN on top, MDG and SEN below in each. # figure 3 and 4. data and predicted incidence maps. Indonesia and Senegal only. Fig 3 ind, fig 4 sen Data, Rand, Spatial for best model? Joint model? # figure 5, 6. Spat and random cv. PR vs Poly columns, cou...
/make_figures_and_and_summaries.R
no_license
timcdlucas/polygon_ml
R
false
false
24,263
r
# figure 1.cross validation. %% Do fig 1 and 2, random and spatial cv. IDN on top, MDG and SEN below in each. # figure 3 and 4. data and predicted incidence maps. Indonesia and Senegal only. Fig 3 ind, fig 4 sen Data, Rand, Spatial for best model? Joint model? # figure 5, 6. Spat and random cv. PR vs Poly columns, cou...
library(gcdnet) ### Name: cv.gcdnet ### Title: Cross-validation for gcdnet ### Aliases: cv.gcdnet cv.hsvmpath cv.sqsvmpath cv.logitpath cv.lspath ### cv.erpath ### Keywords: models regression ### ** Examples # fit an elastic net penalized HHSVM # with lambda2 = 0.1 for the L2 penalty. Use the # misclassificatio...
/data/genthat_extracted_code/gcdnet/examples/cv.gcdnet.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,266
r
library(gcdnet) ### Name: cv.gcdnet ### Title: Cross-validation for gcdnet ### Aliases: cv.gcdnet cv.hsvmpath cv.sqsvmpath cv.logitpath cv.lspath ### cv.erpath ### Keywords: models regression ### ** Examples # fit an elastic net penalized HHSVM # with lambda2 = 0.1 for the L2 penalty. Use the # misclassificatio...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_correlation_topology.R \name{plot_correlation_topology} \alias{plot_correlation_topology} \title{Generates boxplot of network topology properties} \usage{ plot_correlation_topology(node_topology_tbl) } \arguments{ \item{node_topology_tbl...
/danielLib/man/plot_correlation_topology.Rd
permissive
danlooo/DAnIEL
R
false
true
473
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_correlation_topology.R \name{plot_correlation_topology} \alias{plot_correlation_topology} \title{Generates boxplot of network topology properties} \usage{ plot_correlation_topology(node_topology_tbl) } \arguments{ \item{node_topology_tbl...
rm(list=ls(all=T)) library(e1071) B = 100 k=1 Accuracy_SVM = matrix(0, nrow=B, ncol=1) final_table = matrix(0, nrow = 3, ncol = 3) for(i in 1:B){ load(sprintf("C:/Users/Piotr/Documents/Kusano/data%d.RData",i)) Class.train = train[,1] Class.test = test[,1] mean.train = sapply(train[,2:172],mean) s...
/Chapter-4/GC-TOF MS_Auto.scaling.SVM.r
no_license
Biospec/Application-of-chemometrics-for-the-robust-analysis-of-chemical-and-biochemical-data
R
false
false
1,012
r
rm(list=ls(all=T)) library(e1071) B = 100 k=1 Accuracy_SVM = matrix(0, nrow=B, ncol=1) final_table = matrix(0, nrow = 3, ncol = 3) for(i in 1:B){ load(sprintf("C:/Users/Piotr/Documents/Kusano/data%d.RData",i)) Class.train = train[,1] Class.test = test[,1] mean.train = sapply(train[,2:172],mean) s...
\name{coloc.abf} \alias{coloc.abf} \title{Fully Bayesian colocalisation analysis using Bayes Factors} \usage{ coloc.abf(dataset1, dataset2, MAF = NULL, p1 = 1e-04, p2 = 1e-04, p12 = 1e-05) } \arguments{ \item{dataset1}{a list with the following elements \describe{ \item{pvalues}{P-values for each SNP in da...
/man/coloc.abf.Rd
no_license
Hui-Guo/coloc
R
false
false
2,874
rd
\name{coloc.abf} \alias{coloc.abf} \title{Fully Bayesian colocalisation analysis using Bayes Factors} \usage{ coloc.abf(dataset1, dataset2, MAF = NULL, p1 = 1e-04, p2 = 1e-04, p12 = 1e-05) } \arguments{ \item{dataset1}{a list with the following elements \describe{ \item{pvalues}{P-values for each SNP in da...
context("magic") test_that("data can be re-created from calls", { filt <- function(x) subset(x, Sepal.Width != 3.5) subs <- function(x) x[-c(1,50,100), ] data <- subset(iris, Sepal.Width != 3.5)[-c(1,50,100), ] attr(data, 'inv-reference') <- 'base' attr(data, 'inv-call-1') <- filt attr(data, 'inv-call-2...
/investigatoR/inst/tests/test.magic.r
no_license
lbartnik/varia
R
false
false
644
r
context("magic") test_that("data can be re-created from calls", { filt <- function(x) subset(x, Sepal.Width != 3.5) subs <- function(x) x[-c(1,50,100), ] data <- subset(iris, Sepal.Width != 3.5)[-c(1,50,100), ] attr(data, 'inv-reference') <- 'base' attr(data, 'inv-call-1') <- filt attr(data, 'inv-call-2...
# Time Series ts1 #https://www.analyticsvidhya.com/blog/2015/12/complete-tutorial-time-series-modeling/ data(AirPassengers) class(AirPassengers) #This tells you that the data series is in a time series format str(AirPassengers) head(AirPassengers); tail(AirPassengers) start(AirPassengers) #This is the start of the tim...
/ts_1.R
no_license
aniketya/analytics
R
false
false
1,727
r
# Time Series ts1 #https://www.analyticsvidhya.com/blog/2015/12/complete-tutorial-time-series-modeling/ data(AirPassengers) class(AirPassengers) #This tells you that the data series is in a time series format str(AirPassengers) head(AirPassengers); tail(AirPassengers) start(AirPassengers) #This is the start of the tim...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/zTest.R \name{safeZTest} \alias{safeZTest} \alias{safe.z.test} \title{Safe Z-Test} \usage{ safeZTest( x, y = NULL, paired = FALSE, designObj = NULL, pilot = FALSE, ciValue = NULL, tol = 1e-05, na.rm = FALSE, ... ) safe.z.te...
/man/safeZTest.Rd
no_license
AlexanderLyNL/safestats
R
false
true
3,072
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/zTest.R \name{safeZTest} \alias{safeZTest} \alias{safe.z.test} \title{Safe Z-Test} \usage{ safeZTest( x, y = NULL, paired = FALSE, designObj = NULL, pilot = FALSE, ciValue = NULL, tol = 1e-05, na.rm = FALSE, ... ) safe.z.te...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/matrixCutoff.R \name{matrixCutoff} \alias{matrixCutoff} \title{Resets a value in an input matrix if it is smaller/greater than the threshold.} \usage{ matrixCutoff(m, cutoff, comp = ">", new.val = 0) } \description{ Resets a value in an input...
/man/matrixCutoff.Rd
permissive
wanyuac/handyR
R
false
true
421
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/matrixCutoff.R \name{matrixCutoff} \alias{matrixCutoff} \title{Resets a value in an input matrix if it is smaller/greater than the threshold.} \usage{ matrixCutoff(m, cutoff, comp = ">", new.val = 0) } \description{ Resets a value in an input...
testlist <- list(x = structure(c(2.31640588662653e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(multivariance:::doubleCenterBiasCorrected,testlist) str(result...
/multivariance/inst/testfiles/doubleCenterBiasCorrected/AFL_doubleCenterBiasCorrected/doubleCenterBiasCorrected_valgrind_files/1613140070-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
321
r
testlist <- list(x = structure(c(2.31640588662653e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(multivariance:::doubleCenterBiasCorrected,testlist) str(result...
if (interactive()) savehistory(); library("aroma.affymetrix"); log <- Verbose(threshold=-10, timestamp=TRUE); options(width=60); # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Settings # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - naVersion <- "26"; u...
/aroma.affymetrix/inst/buildScripts/chipTypes/Mapping10K_Xba131/na26/Mapping10K_Xba131,UGP,na26.R
no_license
ingted/R-Examples
R
false
false
4,341
r
if (interactive()) savehistory(); library("aroma.affymetrix"); log <- Verbose(threshold=-10, timestamp=TRUE); options(width=60); # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Settings # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - naVersion <- "26"; u...
phi <- samples$BUGSoutput$sims.list$phi alpha0 <- samples$BUGSoutput$sims.list$alpha0 alpha1 <- samples$BUGSoutput$sims.list$alpha1 alpha2 <- samples$BUGSoutput$sims.list$alpha2 alpha3 <- samples$BUGSoutput$sims.list$alpha3 alpha4 <- samples$BUGSoutput$sims.list$alpha4 alpha5 <- samples$BUGSoutput$sims.list$alpha5 alph...
/old/rscripts/get_posteriors.r
no_license
OldMortality/mice
R
false
false
1,808
r
phi <- samples$BUGSoutput$sims.list$phi alpha0 <- samples$BUGSoutput$sims.list$alpha0 alpha1 <- samples$BUGSoutput$sims.list$alpha1 alpha2 <- samples$BUGSoutput$sims.list$alpha2 alpha3 <- samples$BUGSoutput$sims.list$alpha3 alpha4 <- samples$BUGSoutput$sims.list$alpha4 alpha5 <- samples$BUGSoutput$sims.list$alpha5 alph...
#' Track points from a paragliding flight IGC file #' #' An example IGC file imported with read_igc() #' #' @format A tibble with 2773 rows and 15 variables: #' \describe{ #' \item{id}{Original IGC ID field} #' \item{time_igc}{timestamp in original igc format} #' \item{lat_igc}{latitude in original igc format} #'...
/R/data.R
no_license
cuulee/geoviz
R
false
false
1,335
r
#' Track points from a paragliding flight IGC file #' #' An example IGC file imported with read_igc() #' #' @format A tibble with 2773 rows and 15 variables: #' \describe{ #' \item{id}{Original IGC ID field} #' \item{time_igc}{timestamp in original igc format} #' \item{lat_igc}{latitude in original igc format} #'...
LSD.test <- function (y, trt, DFerror, MSerror, alpha = 0.05, p.adj = c("none","holm","hommel", "hochberg", "bonferroni", "BH", "BY", "fdr"), group = TRUE, main = NULL,console=FALSE) { p.adj <- match.arg(p.adj) clase <- c("aov", "lm") name.y <- paste(deparse(substitute(y))) name.t <- paste(...
/R/LSD.test.R
no_license
cran/agricolae
R
false
false
5,982
r
LSD.test <- function (y, trt, DFerror, MSerror, alpha = 0.05, p.adj = c("none","holm","hommel", "hochberg", "bonferroni", "BH", "BY", "fdr"), group = TRUE, main = NULL,console=FALSE) { p.adj <- match.arg(p.adj) clase <- c("aov", "lm") name.y <- paste(deparse(substitute(y))) name.t <- paste(...