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
# Licensed under the BSD 3-Clause License # Copyright (c) 2019, Yuriy Sverchkov #' Reduce a repetetive big.adj to a non-redundant csnem with ancestry naming convention #' @param big.adj a named adjacency matrix with possibly redundant nodes #' @return a named list with the new adjacency matrix and the name mapping red...
/R/reduceAdj.R
permissive
sverchkov/csnem
R
false
false
1,282
r
# Licensed under the BSD 3-Clause License # Copyright (c) 2019, Yuriy Sverchkov #' Reduce a repetetive big.adj to a non-redundant csnem with ancestry naming convention #' @param big.adj a named adjacency matrix with possibly redundant nodes #' @return a named list with the new adjacency matrix and the name mapping red...
#### Function formatXY as part of R package phylotools #### By Jinlong Zhang <Jinlongzhang01@gmail.com> #### Institute of Botany, the Chinese Academy of Sciences, Beijing ,China #### Nov- 01-2010 formatXY <- function(x){ ncharX <- substring(x, 2, regexpr("Y", x)-1) ncharY <- substring(x, nchar(ncharX...
/phylotools/R/formatXY.R
no_license
ingted/R-Examples
R
false
false
1,064
r
#### Function formatXY as part of R package phylotools #### By Jinlong Zhang <Jinlongzhang01@gmail.com> #### Institute of Botany, the Chinese Academy of Sciences, Beijing ,China #### Nov- 01-2010 formatXY <- function(x){ ncharX <- substring(x, 2, regexpr("Y", x)-1) ncharY <- substring(x, nchar(ncharX...
corr <- function(directory, threshold = 0) { filename <- function(i) { tries <- c(toString(i), paste("0",i,sep=""), paste("00",i,sep="")) result<-character(0) for(try in tries) { exist <- list.files(directory, pattern=paste("^",try, ".csv", sep=""), full.names=TRUE) if (length(exist) == 1) { resu...
/pa1/corr.R
no_license
alexsroussi/dclass-pa1
R
false
false
1,009
r
corr <- function(directory, threshold = 0) { filename <- function(i) { tries <- c(toString(i), paste("0",i,sep=""), paste("00",i,sep="")) result<-character(0) for(try in tries) { exist <- list.files(directory, pattern=paste("^",try, ".csv", sep=""), full.names=TRUE) if (length(exist) == 1) { resu...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/IntervalTier-accessors.R \name{IntervalTier-accessors} \alias{IntervalTier-accessors} \alias{intervalEndTimes} \alias{intervalLabels} \alias{intervalStartTimes} \title{Access the slots of IntervalTier objects.} \usage{ intervalStartTimes(tier...
/man/IntervalTier-accessors.Rd
no_license
tjmahr/textgRid-1
R
false
true
686
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/IntervalTier-accessors.R \name{IntervalTier-accessors} \alias{IntervalTier-accessors} \alias{intervalEndTimes} \alias{intervalLabels} \alias{intervalStartTimes} \title{Access the slots of IntervalTier objects.} \usage{ intervalStartTimes(tier...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/download.R \name{doAPICall} \alias{doAPICall} \title{Perform an API call to the OpenML server.} \usage{ doAPICall(api.call, id = NULL, url.args = list(), post.args = list(), file = NULL, verbosity = NULL, method, ...) } \arguments{ \item{ap...
/man/doAPICall.Rd
no_license
strategist922/openml-r
R
false
true
1,524
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/download.R \name{doAPICall} \alias{doAPICall} \title{Perform an API call to the OpenML server.} \usage{ doAPICall(api.call, id = NULL, url.args = list(), post.args = list(), file = NULL, verbosity = NULL, method, ...) } \arguments{ \item{ap...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cache.R \name{cache_set_base_url} \alias{cache_set_base_url} \title{cache_set_base_url} \usage{ cache_set_base_url(url) } \arguments{ \item{url}{the base url for the project} } \value{ the set url string or NULL } \description{ Set the base u...
/man/cache_set_base_url.Rd
no_license
cunybpl/bplclientR
R
false
true
395
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cache.R \name{cache_set_base_url} \alias{cache_set_base_url} \title{cache_set_base_url} \usage{ cache_set_base_url(url) } \arguments{ \item{url}{the base url for the project} } \value{ the set url string or NULL } \description{ Set the base u...
#Julian Ramirez-Villegas #UoL / CIAT / CCAFS #Jun 2013 #wrapper function to downscale GCMs gcm_downscale <- function(gcm_i) { gcm <- gcm_list$GCM[gcm_i] ens <- gcm_list$ENS[gcm_i] cat("\nXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n") cat("XXXXXXXXXXXXX downscaling GCM:",gcm,"and ENS:",ens,"\...
/PhD/0007-crop-modelling/scripts/niche_based/nb-10-downscale_cmip5-fun.R
no_license
CIAT-DAPA/dapa-climate-change
R
false
false
12,349
r
#Julian Ramirez-Villegas #UoL / CIAT / CCAFS #Jun 2013 #wrapper function to downscale GCMs gcm_downscale <- function(gcm_i) { gcm <- gcm_list$GCM[gcm_i] ens <- gcm_list$ENS[gcm_i] cat("\nXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n") cat("XXXXXXXXXXXXX downscaling GCM:",gcm,"and ENS:",ens,"\...
## The functions below will calculate and cache the inverse of the matrix ## Then retrieve the inverse matrix from cache ## The "get" function returns the vector x stored in the main function. ## The "set" function changes the vector stored in the main function. ## "get" and "set" do not calculate the mean, it only s...
/cachematrix.R
no_license
Whockensmith/ProgrammingAssignment2
R
false
false
1,709
r
## The functions below will calculate and cache the inverse of the matrix ## Then retrieve the inverse matrix from cache ## The "get" function returns the vector x stored in the main function. ## The "set" function changes the vector stored in the main function. ## "get" and "set" do not calculate the mean, it only s...
library(BTYD) ### Name: pnbd.PAlive ### Title: Pareto/NBD P(Alive) ### Aliases: pnbd.PAlive ### ** Examples params <- c(0.55, 10.56, 0.61, 11.64) pnbd.PAlive(params, x=0, t.x=0, T.cal=39) # 0.2924031; P(Alive) of a customer who made no repeat transactions. pnbd.PAlive(params, x=23, t.x=39, T.cal=39) # 1; P(Alive)...
/data/genthat_extracted_code/BTYD/examples/pnbd.PAlive.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
721
r
library(BTYD) ### Name: pnbd.PAlive ### Title: Pareto/NBD P(Alive) ### Aliases: pnbd.PAlive ### ** Examples params <- c(0.55, 10.56, 0.61, 11.64) pnbd.PAlive(params, x=0, t.x=0, T.cal=39) # 0.2924031; P(Alive) of a customer who made no repeat transactions. pnbd.PAlive(params, x=23, t.x=39, T.cal=39) # 1; P(Alive)...
# playProgression(list( "","", "", # "", "", "", # "", "", "", # "", # "D" # ), duration = 1.2);#playProgression(list("E","F"), duration = 1) # # # # playProgression(list( "","", "", "", "", "D", # "E...
/R/h_moll.R
no_license
cran/BayesianFROC
R
false
false
1,497
r
# playProgression(list( "","", "", # "", "", "", # "", "", "", # "", # "D" # ), duration = 1.2);#playProgression(list("E","F"), duration = 1) # # # # playProgression(list( "","", "", "", "", "D", # "E...
#' @noRd build_query <- function(result_dir, query = NULL, # use_cached = FALSE, index_file = NULL){ data = .SD = .N = time = n = machine_name = datetime = path = NULL files_info <- list_result_files(result_dir, in...
/R/build-query.R
no_license
rethomics/scopr
R
false
false
2,749
r
#' @noRd build_query <- function(result_dir, query = NULL, # use_cached = FALSE, index_file = NULL){ data = .SD = .N = time = n = machine_name = datetime = path = NULL files_info <- list_result_files(result_dir, in...
testlist <- list(n = -1L) result <- do.call(breakfast:::setBitNumber,testlist) str(result)
/breakfast/inst/testfiles/setBitNumber/libFuzzer_setBitNumber/setBitNumber_valgrind_files/1609962328-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
90
r
testlist <- list(n = -1L) result <- do.call(breakfast:::setBitNumber,testlist) str(result)
create_report <- function(input, output_dir, has_code, opts) { input <- absolute(input) input_dir <- dirname(input) uses_git <- git2r::in_repository(input_dir) if (uses_git) { r <- git2r::repository(input_dir, discover = TRUE) s <- git2r::status(r, ignored = TRUE) } else { r <- NULL s <- NU...
/R/report.R
permissive
JiaxiangBU/workflowr
R
false
false
23,973
r
create_report <- function(input, output_dir, has_code, opts) { input <- absolute(input) input_dir <- dirname(input) uses_git <- git2r::in_repository(input_dir) if (uses_git) { r <- git2r::repository(input_dir, discover = TRUE) s <- git2r::status(r, ignored = TRUE) } else { r <- NULL s <- NU...
epc <- read.table("household_power_consumption.txt", header = T, sep = ";", stringsAsFactors = F) ##change to numeric epc$Global_active_power <- as.numeric(epc$Global_active_power) epc$Global_reactive_power <- as.numeric(epc$Global_reactive_power) epc$Voltage <- as.numeric(epc$Voltage) epc$Global_intensity <- as....
/plot3.R
no_license
DvirN/EDA---Week-1-Project
R
false
false
1,483
r
epc <- read.table("household_power_consumption.txt", header = T, sep = ";", stringsAsFactors = F) ##change to numeric epc$Global_active_power <- as.numeric(epc$Global_active_power) epc$Global_reactive_power <- as.numeric(epc$Global_reactive_power) epc$Voltage <- as.numeric(epc$Voltage) epc$Global_intensity <- as....
setwd("C:/Users/mbreu/OneDrive - Michigan State University/Fertility 033120/") ipak <- function( pkg){ new.pkg <- pkg[!(pkg %in% installed.packages()[,"Package"])] if (length(new.pkg)) install.packages(new.pkg, dependencies = TRUE) sapply(pkg, require, character.only = TRUE) } packages <- c("agr...
/fertility plots.R
no_license
mikbreunig/NxFxPGR
R
false
false
7,363
r
setwd("C:/Users/mbreu/OneDrive - Michigan State University/Fertility 033120/") ipak <- function( pkg){ new.pkg <- pkg[!(pkg %in% installed.packages()[,"Package"])] if (length(new.pkg)) install.packages(new.pkg, dependencies = TRUE) sapply(pkg, require, character.only = TRUE) } packages <- c("agr...
mp_setapikey(key.file = "../manifesto_apikey.txt") test_that("bootstrapping from dataset with default parameters works", { mpds_ger <- subset(mp_maindataset(), countryname == "Germany") bootstrapped_default <- mp_bootstrap(mpds_ger) expect_named(bootstrapped_default, c("rile", "sd")) expect_equal(bootstrapp...
/tests/testthat/testbootstrap.R
no_license
mohamednasr1/manifestoR
R
false
false
1,839
r
mp_setapikey(key.file = "../manifesto_apikey.txt") test_that("bootstrapping from dataset with default parameters works", { mpds_ger <- subset(mp_maindataset(), countryname == "Germany") bootstrapped_default <- mp_bootstrap(mpds_ger) expect_named(bootstrapped_default, c("rile", "sd")) expect_equal(bootstrapp...
f.list=list() f.list$julpow2=function(z,c) z^2+c f.list$cosjul=function(z,c) c*cos(z) f.list$c3_2julia=function(z,c) z^3-(-z)^(2.00001)+c f.list$julinvpow2=function(z,c) z^(-2)+c f.list$julpow2_inv1=function(z,c) z^2+c/z f.list$julpow2_inv2=function(z,c) z^2+c/z^2 f.list$julpow4_pow1=function(z,c) z^...
/scripts/mandel_lapply.R
no_license
somasushma/R-code
R
false
false
1,326
r
f.list=list() f.list$julpow2=function(z,c) z^2+c f.list$cosjul=function(z,c) c*cos(z) f.list$c3_2julia=function(z,c) z^3-(-z)^(2.00001)+c f.list$julinvpow2=function(z,c) z^(-2)+c f.list$julpow2_inv1=function(z,c) z^2+c/z f.list$julpow2_inv2=function(z,c) z^2+c/z^2 f.list$julpow4_pow1=function(z,c) z^...
## generalized function to assess exposure by indicating whether a counting the number of ## upwind or downwind wells in 1-km radius annuli within 15 km of the site, ## using NARR data for daily mean wind direction # takes monitor coordinates ('monitor') as an sf object, generates 1-km annuli # around the monitor out ...
/code/2-exposure_assessment/1-assess_exposure_wheelabrator_wind.R
no_license
christina-k-francis/bmore-air-quality-incinerator
R
false
false
11,439
r
## generalized function to assess exposure by indicating whether a counting the number of ## upwind or downwind wells in 1-km radius annuli within 15 km of the site, ## using NARR data for daily mean wind direction # takes monitor coordinates ('monitor') as an sf object, generates 1-km annuli # around the monitor out ...
##Atividade avaliativa 2 - Classificação "Machine Learning" # 10(a) install.packages("ISLR") install.packages("MASS") library(ISLR) library(MASS) attach(Weekly) #verifique o tamanho do dataframe dim(Weekly) #Ver o conjunto de dados head(Weekly) #classe de variáveis do conjunto de dados str(Weekly)...
/classificação.R
no_license
datascienceimih/ativ-aval-classification-italoroni
R
false
false
6,983
r
##Atividade avaliativa 2 - Classificação "Machine Learning" # 10(a) install.packages("ISLR") install.packages("MASS") library(ISLR) library(MASS) attach(Weekly) #verifique o tamanho do dataframe dim(Weekly) #Ver o conjunto de dados head(Weekly) #classe de variáveis do conjunto de dados str(Weekly)...
########################################################################################## # Designed and developed by Tinniam V Ganesh # Date : 20 Mar 2016 # Function: convertYaml2RDataframeT20 # This function converts a given T20 yaml file to a data frame and stores this as n .RData # The yaml file is read from ...
/yorkr/R/convertYaml2RDataframeT20.R
no_license
ingted/R-Examples
R
false
false
6,806
r
########################################################################################## # Designed and developed by Tinniam V Ganesh # Date : 20 Mar 2016 # Function: convertYaml2RDataframeT20 # This function converts a given T20 yaml file to a data frame and stores this as n .RData # The yaml file is read from ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cgp_prep.R \name{preferred_cdf_baseline} \alias{preferred_cdf_baseline} \title{composite / preferred cdf baseline} \usage{ preferred_cdf_baseline(cdf, start_fws, start_year_offset, end_fws, end_academic_year, start_fws_prefer) } \arguments{...
/man/preferred_cdf_baseline.Rd
no_license
charkins24/mapvizieR
R
false
true
756
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cgp_prep.R \name{preferred_cdf_baseline} \alias{preferred_cdf_baseline} \title{composite / preferred cdf baseline} \usage{ preferred_cdf_baseline(cdf, start_fws, start_year_offset, end_fws, end_academic_year, start_fws_prefer) } \arguments{...
library(Rsampletrees) ### Name: checkArgs ### Title: Error checking for the arguments to sampletrees ### Aliases: checkArgs ### ** Examples # Will produce error messages runpars=newArgs() runpars=checkArgs(runpars) # Will not produce errors #system.file("Examples/sequences_Theta8_Rho8.txt",package="Rsampletrees")...
/data/genthat_extracted_code/Rsampletrees/examples/checkArgs.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
873
r
library(Rsampletrees) ### Name: checkArgs ### Title: Error checking for the arguments to sampletrees ### Aliases: checkArgs ### ** Examples # Will produce error messages runpars=newArgs() runpars=checkArgs(runpars) # Will not produce errors #system.file("Examples/sequences_Theta8_Rho8.txt",package="Rsampletrees")...
library(queueing) ### Name: Lqq.o_MM1 ### Title: Returns the mean number of customers in queue when there is ### queue in the M/M/1 queueing model ### Aliases: Lqq.o_MM1 ### Keywords: M/M/1 ### ** Examples ## See example 10.3 in reference [Sixto2004] for more details. ## create input parameters i_mm1 <- NewInput....
/data/genthat_extracted_code/queueing/examples/Lqq.o_MM1.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
433
r
library(queueing) ### Name: Lqq.o_MM1 ### Title: Returns the mean number of customers in queue when there is ### queue in the M/M/1 queueing model ### Aliases: Lqq.o_MM1 ### Keywords: M/M/1 ### ** Examples ## See example 10.3 in reference [Sixto2004] for more details. ## create input parameters i_mm1 <- NewInput....
testlist <- list(AgeVector = 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), ExpressionSet = structure(c(1.6304598041491e+212, 1.11558267938731e+157, 2.3453288146775e+59, 7.59955788945772e-256, 5.553983...
/myTAI/inst/testfiles/cpp_omitMatrix/AFL_cpp_omitMatrix/cpp_omitMatrix_valgrind_files/1615847190-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
1,089
r
testlist <- list(AgeVector = 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), ExpressionSet = structure(c(1.6304598041491e+212, 1.11558267938731e+157, 2.3453288146775e+59, 7.59955788945772e-256, 5.553983...
# an interface to Keith Poole's DW-NOMINATE FORTRAN77 program. # limitations: # 660 legislators per session # 2901 votes per session #' @importFrom Rdpack reprompt # get legislator names from rollcall objects get_leg_names = function(x) row.names(x$legis.data) fix_string = function(string) gsub("[^A-Za-z ()'-]", ''...
/R/dwnominate.R
no_license
wmay/dwnominate
R
false
false
22,297
r
# an interface to Keith Poole's DW-NOMINATE FORTRAN77 program. # limitations: # 660 legislators per session # 2901 votes per session #' @importFrom Rdpack reprompt # get legislator names from rollcall objects get_leg_names = function(x) row.names(x$legis.data) fix_string = function(string) gsub("[^A-Za-z ()'-]", ''...
#' Connect to postgresql. #' #' Use `src_postgres()` to connect to an existing postgresql database, #' and `tbl()` to connect to tables within that database. #' If you are running a local postgresql database, leave all parameters set as #' their defaults to connect. If you're connecting to a remote database, #' ask you...
/R/src-postgres.r
no_license
garrettgman/dplyr
R
false
false
7,034
r
#' Connect to postgresql. #' #' Use `src_postgres()` to connect to an existing postgresql database, #' and `tbl()` to connect to tables within that database. #' If you are running a local postgresql database, leave all parameters set as #' their defaults to connect. If you're connecting to a remote database, #' ask you...
library(mgcv) library(doParallel) setwd("./") load('ps4_q4.RData') fit=gam(y~x,data=sample_data) pred=predict(fit) ncores = 2 cl = makeCluster(ncores) registerDoParallel(cl) xvalidate=function(folds){ id=sample(1:10000,10000/folds) te=sample_data[id,] boolid=rep(T,10000) boolid[id]=F tr=...
/Sample Code/R/ProblemSet4/fitmodel.R
no_license
jensqin/projects
R
false
false
613
r
library(mgcv) library(doParallel) setwd("./") load('ps4_q4.RData') fit=gam(y~x,data=sample_data) pred=predict(fit) ncores = 2 cl = makeCluster(ncores) registerDoParallel(cl) xvalidate=function(folds){ id=sample(1:10000,10000/folds) te=sample_data[id,] boolid=rep(T,10000) boolid[id]=F tr=...
# CTCF_CLUSTER/ctcf_bs_nanni2020.bed CTCF_CLUSTER/gene2family.bed # CTCF_CLUSTER/meanSize.Rdata CTCF_CLUSTER/test_ctcf_bs_nanni2020.bed # Rscript ctcf_and_family_clusters_randomV3_filterLength.R require(doMC) require(foreach) registerDoMC(40) require(ggpubr) require(ggsci) require(ggplot2) source(...
/ctcf_and_family_clusters_randomV3_filterLength.R
no_license
marzuf/v2_Yuanlong_Cancer_HiC_data_TAD_DA
R
false
false
34,966
r
# CTCF_CLUSTER/ctcf_bs_nanni2020.bed CTCF_CLUSTER/gene2family.bed # CTCF_CLUSTER/meanSize.Rdata CTCF_CLUSTER/test_ctcf_bs_nanni2020.bed # Rscript ctcf_and_family_clusters_randomV3_filterLength.R require(doMC) require(foreach) registerDoMC(40) require(ggpubr) require(ggsci) require(ggplot2) source(...
# ================================================ # # Main script to run parameter search optimization # To run: source("main.R") # ================================================ # setwd("~/KDD2017R/Code/GroupedTimeSeries") # Load necessary functions source('forecast_utils.R') source('params_search_utils...
/Code/GroupedTimeSeries/main.R
permissive
Azure/KDD2017R
R
false
false
1,834
r
# ================================================ # # Main script to run parameter search optimization # To run: source("main.R") # ================================================ # setwd("~/KDD2017R/Code/GroupedTimeSeries") # Load necessary functions source('forecast_utils.R') source('params_search_utils...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/helper_stat_calc.R \name{SKS.stat} \alias{SKS.stat} \title{SKS.stat} \usage{ SKS.stat(Y, Z) } \arguments{ \item{Y}{Observed outcome vector} \item{Z}{Treatment assigment vector} } \value{ The value of the test. } \description{ Shifted kolmogo...
/man/SKS.stat.Rd
no_license
bfifield/hettx
R
false
true
581
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/helper_stat_calc.R \name{SKS.stat} \alias{SKS.stat} \title{SKS.stat} \usage{ SKS.stat(Y, Z) } \arguments{ \item{Y}{Observed outcome vector} \item{Z}{Treatment assigment vector} } \value{ The value of the test. } \description{ Shifted kolmogo...
##' Apply a Function to a Data Frame Split by Factors ##' ##' Simple wrapper of the 'by' function ##' @title Apply a Function to a Data Frame Split by Factors ##' @param x Data frame ##' @param INDICES Indices (vector or list of indices, vector of column names, or formula of column names) ##' @param FUN A function to b...
/lava/R/By.R
no_license
ingted/R-Examples
R
false
false
1,426
r
##' Apply a Function to a Data Frame Split by Factors ##' ##' Simple wrapper of the 'by' function ##' @title Apply a Function to a Data Frame Split by Factors ##' @param x Data frame ##' @param INDICES Indices (vector or list of indices, vector of column names, or formula of column names) ##' @param FUN A function to b...
set.seed(123) data <- read.csv('https://archive.ics.uci.edu/ml/machine-learning-databases/00292/Wholesale%20customers%20data.csv') data <- data[sample(nrow(data)),][1:100,-1] rownames(data) <- NULL # table(data[,'Region']) # 1 - Lizbona # 2 - Porto # 3 - Inne hc <- hclust(dist(data[,-1])) # install.packages('idend...
/PrezentacjePakietow/MatKru_idendr0.R
no_license
pbiecek/AdvancedR2018
R
false
false
1,069
r
set.seed(123) data <- read.csv('https://archive.ics.uci.edu/ml/machine-learning-databases/00292/Wholesale%20customers%20data.csv') data <- data[sample(nrow(data)),][1:100,-1] rownames(data) <- NULL # table(data[,'Region']) # 1 - Lizbona # 2 - Porto # 3 - Inne hc <- hclust(dist(data[,-1])) # install.packages('idend...
Probfunction = function(disp, wt) { data(mtcars) model = glm(formula= vs ~ wt + disp, data=mtcars, family=binomial) newdata = data.frame(wt = wt, disp = disp) prob = predict(model, newdata, type="response") return(prob) }
/Probfunction.R
no_license
AvirupSenGupta/ShinyApp
R
false
false
236
r
Probfunction = function(disp, wt) { data(mtcars) model = glm(formula= vs ~ wt + disp, data=mtcars, family=binomial) newdata = data.frame(wt = wt, disp = disp) prob = predict(model, newdata, type="response") return(prob) }
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/1_ModelsHeader.R, R/2_SimpleModels.R, R/3_ComplexModels.R \name{FWq} \alias{FWq} \alias{FWq.M_M_1} \alias{FWq.M_M_1_INF_H} \alias{FWq.M_M_1_K} \alias{FWq.M_M_INF} \alias{FWq.M_M_S} \alias{FWq.M_M_S_INF_H} \alias{FWq.M_M_S_IN...
/man/FWq.Rd
no_license
cran/arqas
R
false
false
1,895
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/1_ModelsHeader.R, R/2_SimpleModels.R, R/3_ComplexModels.R \name{FWq} \alias{FWq} \alias{FWq.M_M_1} \alias{FWq.M_M_1_INF_H} \alias{FWq.M_M_1_K} \alias{FWq.M_M_INF} \alias{FWq.M_M_S} \alias{FWq.M_M_S_INF_H} \alias{FWq.M_M_S_IN...
# this message is printed on several lines (one per path) to make multiple paths # easier to spot # parentDir <- "R:/PICS/06_biopathways/04_code_in_progress/dist" message("library paths:\n", paste("... ", .libPaths(), sep = " ", collapse = "\n"))#, getwd())) # chrome.portable = file.path(parentDir, # ...
/R-portable-LandWeb.R
no_license
fRI-Research/LandWeb
R
false
false
740
r
# this message is printed on several lines (one per path) to make multiple paths # easier to spot # parentDir <- "R:/PICS/06_biopathways/04_code_in_progress/dist" message("library paths:\n", paste("... ", .libPaths(), sep = " ", collapse = "\n"))#, getwd())) # chrome.portable = file.path(parentDir, # ...
library(SticsRFiles) library(dplyr) stics_version <- get_stics_versions_compat()$latest_version if (get_version_num(stics_version = stics_version) >= 10) { stics_version <- "V10.0" } parnames <- list() parnames$hinit$`V10.0` <- "Hinitf" parnames$hinit$`V9.2` <- "hinit" parnames$no3init$`V10.0` <- "NO3initf" parname...
/tests/testthat/test-gen_ini_xml.R
no_license
SticsRPacks/SticsRFiles
R
false
false
3,364
r
library(SticsRFiles) library(dplyr) stics_version <- get_stics_versions_compat()$latest_version if (get_version_num(stics_version = stics_version) >= 10) { stics_version <- "V10.0" } parnames <- list() parnames$hinit$`V10.0` <- "Hinitf" parnames$hinit$`V9.2` <- "hinit" parnames$no3init$`V10.0` <- "NO3initf" parname...
# Cluster Analysis Using Abundance Data # EKB # November 2016 library(tidyr) library(dplyr) library(ggplot2) ################### # LOAD ABUNDANCE FUNCTIONS source("scripts/abundance_functions.R") # Other functions select_data <- function(data){ # function for selecting only relevant columns da...
/scripts/cluster_analysis.R
no_license
bleds22e/Core_Sat_Trans
R
false
false
14,174
r
# Cluster Analysis Using Abundance Data # EKB # November 2016 library(tidyr) library(dplyr) library(ggplot2) ################### # LOAD ABUNDANCE FUNCTIONS source("scripts/abundance_functions.R") # Other functions select_data <- function(data){ # function for selecting only relevant columns da...
# Define server logic required to draw a histogram ---- server <- function(input, output) { # Histogram of the Old Faithful Geyser Data ---- # with requested number of bins # This expression that generates a histogram is wrapped in a call # to renderPlot to indicate that: # # 1. It is "reac...
/inst/shiny-examples/pde_model_app/server.R
permissive
ick003/rRiskDSMspread
R
false
false
4,806
r
# Define server logic required to draw a histogram ---- server <- function(input, output) { # Histogram of the Old Faithful Geyser Data ---- # with requested number of bins # This expression that generates a histogram is wrapped in a call # to renderPlot to indicate that: # # 1. It is "reac...
library(rvest) library(tidyverse) library(stringr) library(purrr) library(rebus) library(lubridate) chart <- tibble() seasons <- 1:6 imdbScrape <- function(x){ page <- paste0("https://www.imdb.com/title/tt2149175/episodes?season=", x) name <- page %>% read_html() %>% html_nodes('#episodes_content strong a') %>% h...
/the_americans_analysis.R
no_license
jpwalker625/personal
R
false
false
1,747
r
library(rvest) library(tidyverse) library(stringr) library(purrr) library(rebus) library(lubridate) chart <- tibble() seasons <- 1:6 imdbScrape <- function(x){ page <- paste0("https://www.imdb.com/title/tt2149175/episodes?season=", x) name <- page %>% read_html() %>% html_nodes('#episodes_content strong a') %>% h...
library(shiny) library("leaflet") library(RCurl) library(httr) library(shiny) library(htmltools) library(rsconnect) time_pm25_map <- st_read("time_pm25_map/time_pm25_map.shp") mean_pm25_map <- st_read("mean_pm25_map/mean_pm25_map.shp") mean_mortality_map <- st_read("mean_mortality_map/mean_mortality_map.shp"...
/server.R
no_license
NSAPH/PM2.5MortalityViz
R
false
false
4,750
r
library(shiny) library("leaflet") library(RCurl) library(httr) library(shiny) library(htmltools) library(rsconnect) time_pm25_map <- st_read("time_pm25_map/time_pm25_map.shp") mean_pm25_map <- st_read("mean_pm25_map/mean_pm25_map.shp") mean_mortality_map <- st_read("mean_mortality_map/mean_mortality_map.shp"...
source(paste0('scripts/motif_class_functions/', MOTIF_TYPE, '.R')) source(paste0('scripts/annotation_specific_functions/', ANNOTATION_TYPE, '.R')) source(paste0('scripts/gene_specific_functions/', TRIM_TYPE, '.R')) source(paste0('scripts/model_formula_functions/', MODEL_TYPE, '.R')) source(paste0('scripts/data_grouping...
/scripts/data_compilation_functions.R
permissive
magdalenarussell/mechanistic-trimming
R
false
false
12,722
r
source(paste0('scripts/motif_class_functions/', MOTIF_TYPE, '.R')) source(paste0('scripts/annotation_specific_functions/', ANNOTATION_TYPE, '.R')) source(paste0('scripts/gene_specific_functions/', TRIM_TYPE, '.R')) source(paste0('scripts/model_formula_functions/', MODEL_TYPE, '.R')) source(paste0('scripts/data_grouping...
\name{stat0067.Kuiper} \alias{stat0067.Kuiper} \alias{stat0067} \title{The Kuiper test for uniformity} \description{The Kuiper test \code{K_n} for uniformity is used - to compute its statistic and p-value by calling function \code{\link{statcompute}}; - to compute its quantiles by calling function \code{\...
/fuzzedpackages/PoweR/man/stat0067.Kuiper.Rd
no_license
akhikolla/testpackages
R
false
false
1,203
rd
\name{stat0067.Kuiper} \alias{stat0067.Kuiper} \alias{stat0067} \title{The Kuiper test for uniformity} \description{The Kuiper test \code{K_n} for uniformity is used - to compute its statistic and p-value by calling function \code{\link{statcompute}}; - to compute its quantiles by calling function \code{\...
#' # Sampling from vectors set.seed(143) sample(1:9) sample(1:1000,size=20) sample(6,size=10,replace=TRUE)
/02-building-blocks-of-data/sampling-from-vectors.R
no_license
melff/dataman-r
R
false
false
111
r
#' # Sampling from vectors set.seed(143) sample(1:9) sample(1:1000,size=20) sample(6,size=10,replace=TRUE)
library('ggplot2') dataset = "A" #dataraw = read.csv(paste("data2plot/varyTrainRatio.csv",sep="")) dataraw = read.csv(paste("data2plot/varyTrainRatio100.csv",sep="")) dataraw100 = dataraw100[complete.cases(dataraw100),] #dataall = merge(dataraw,dataraw100, all=TRUE) XTPathF1 = data.frame(dataraw$DATASET,datara...
/plot.R
no_license
ieee8023/XTreePath
R
false
false
5,405
r
library('ggplot2') dataset = "A" #dataraw = read.csv(paste("data2plot/varyTrainRatio.csv",sep="")) dataraw = read.csv(paste("data2plot/varyTrainRatio100.csv",sep="")) dataraw100 = dataraw100[complete.cases(dataraw100),] #dataall = merge(dataraw,dataraw100, all=TRUE) XTPathF1 = data.frame(dataraw$DATASET,datara...
## Data Preps library(tidyverse) library(readxl) ## What sheets are in Excel File? travel.by.transport <-excel_sheets(path = "Data/2016_Transport_OD.xlsx") ## Below function will read section of sheets where it contains from > to data between prefectures read_pref_od <- function(path,sheet,...) { sheet <-read_e...
/Comparing_Flow_Over_Year.R
no_license
chichacha/FF_Data_Visualization
R
false
false
4,264
r
## Data Preps library(tidyverse) library(readxl) ## What sheets are in Excel File? travel.by.transport <-excel_sheets(path = "Data/2016_Transport_OD.xlsx") ## Below function will read section of sheets where it contains from > to data between prefectures read_pref_od <- function(path,sheet,...) { sheet <-read_e...
library(tidyverse) library(janitor) library(scales) source("locations2.R") df <- read.csv("data/jjkeller.csv") %>% left_join(jjkeller.locations, "Assigned.Location") %>% filter(DQ.File == "In Compliance" | DQ.File == "Out of Compliance") %>% mutate(dq.binary = recode(DQ.File, "In...
/jjkeller.R
no_license
jarichardsonccbf/ehssreport-Shiny
R
false
false
4,266
r
library(tidyverse) library(janitor) library(scales) source("locations2.R") df <- read.csv("data/jjkeller.csv") %>% left_join(jjkeller.locations, "Assigned.Location") %>% filter(DQ.File == "In Compliance" | DQ.File == "Out of Compliance") %>% mutate(dq.binary = recode(DQ.File, "In...
require(ggsci) require(ggpubr) require(ggplot2) require(ggrepel) source("../Cancer_HiC_data_TAD_DA/utils_fct.R") source("revision_settings.R") require(stringr) plotType <- "png" myWidthGG <- 7 myHeightGG <- 5 myHeight <- 400 myWidth <- 400 plotCex <- 1.2 tadSignifThresh <- 0.01 signifDotCol <- "forestgreen" ### -...
/revision_expressionLevel_cptmts_notPF_v4.R
no_license
marzuf/v2_Yuanlong_Cancer_HiC_data_TAD_DA
R
false
false
20,312
r
require(ggsci) require(ggpubr) require(ggplot2) require(ggrepel) source("../Cancer_HiC_data_TAD_DA/utils_fct.R") source("revision_settings.R") require(stringr) plotType <- "png" myWidthGG <- 7 myHeightGG <- 5 myHeight <- 400 myWidth <- 400 plotCex <- 1.2 tadSignifThresh <- 0.01 signifDotCol <- "forestgreen" ### -...
library(data.table) library(purrr) path_root <- "~/GENERIC/dementiaproject/" path_data <- "/srv/OASIS_DATA/" # MRI data mri_data <- read.csv2(file.path(path_root, "inst/extdata/oasis3/mr_sessions_data_full.csv"), header = TRUE, sep = ",") setDT(mri_data) str(mri_data) #Exemple pour le téléchargement des scans via le...
/inst/import_mri_oasis3.R
no_license
yoelchetboun/dementiaproject
R
false
false
6,552
r
library(data.table) library(purrr) path_root <- "~/GENERIC/dementiaproject/" path_data <- "/srv/OASIS_DATA/" # MRI data mri_data <- read.csv2(file.path(path_root, "inst/extdata/oasis3/mr_sessions_data_full.csv"), header = TRUE, sep = ",") setDT(mri_data) str(mri_data) #Exemple pour le téléchargement des scans via le...
library(Morphometrics) library(gdata) load('./Rdatas/maindata.RData') cov.matrices = llply(x, function(x) x$vcv) mats = llply(names(cov.matrices[[1]]), function(x) llply(cov.matrices, function(y) y[[x]])) names(mats) = names(cov.matrices[[1]]) mats = llply(mats, function(x) x[!is.na(x)]) comparisons_RS = llply(mats, f...
/similarity_by_sample_size.R
no_license
diogro/bayesian-stats
R
false
false
3,030
r
library(Morphometrics) library(gdata) load('./Rdatas/maindata.RData') cov.matrices = llply(x, function(x) x$vcv) mats = llply(names(cov.matrices[[1]]), function(x) llply(cov.matrices, function(y) y[[x]])) names(mats) = names(cov.matrices[[1]]) mats = llply(mats, function(x) x[!is.na(x)]) comparisons_RS = llply(mats, f...
# TOOLS # define datetime Sys.setenv(TZ="UTC") # load packages sapply(c('alluvial','arm','blmeco','effects', 'data.table','ggplot2','grid', 'lattice','magrittr','matrixStats','multcomp','pastecs', 'PBSmodelling','plyr','raster','readxl','stringr', 'writexl'), #XLConnect function(x) suppressPackage...
/R/Constants_packages_PrepareData.R
no_license
MartinBulla/Exchange_behaviour_incubating_SESA
R
false
false
10,512
r
# TOOLS # define datetime Sys.setenv(TZ="UTC") # load packages sapply(c('alluvial','arm','blmeco','effects', 'data.table','ggplot2','grid', 'lattice','magrittr','matrixStats','multcomp','pastecs', 'PBSmodelling','plyr','raster','readxl','stringr', 'writexl'), #XLConnect function(x) suppressPackage...
#' @title Generate feature importance. #' #' @description #' Estimate how important individual features or groups of features are by contrasting prediction performances. For method \dQuote{permutation.importance} compute the change in performance from permuting the values of a feature (or a group of features) and compa...
/R/generateFeatureImportance.R
no_license
aeron15/mlr
R
false
false
8,692
r
#' @title Generate feature importance. #' #' @description #' Estimate how important individual features or groups of features are by contrasting prediction performances. For method \dQuote{permutation.importance} compute the change in performance from permuting the values of a feature (or a group of features) and compa...
\name{liststyles} \alias{liststyles} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Print kml Styles } \description{ Allows you to quickly view your kml styles. } \usage{ yourkml$liststyles() } \author{ Brent Cameron\cr Department of Fisheries and Oceans Canada\cr Population Ecology Division } ...
/man/liststyles.Rd
permissive
brent0/kmlbuilder
R
false
false
718
rd
\name{liststyles} \alias{liststyles} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Print kml Styles } \description{ Allows you to quickly view your kml styles. } \usage{ yourkml$liststyles() } \author{ Brent Cameron\cr Department of Fisheries and Oceans Canada\cr Population Ecology Division } ...
#' Air Force Institute of Technology Thesis Template #' #' Format for creating an AFIT theses #' #' Adapted from the STYLE GUIDE FOR AFIT DISSERTATIONS, THESES AND GRADUATE RESEARCH PAPERS - July 2015 #' \href{http://www.afit.edu/docs/NewAFITStyleGuideJuly2015(2).pdf}{http://www.afit.edu/docs/NewAFITStyleGuideJuly201...
/R/spie_article.R
no_license
chris-twigg/AFIT
R
false
false
1,847
r
#' Air Force Institute of Technology Thesis Template #' #' Format for creating an AFIT theses #' #' Adapted from the STYLE GUIDE FOR AFIT DISSERTATIONS, THESES AND GRADUATE RESEARCH PAPERS - July 2015 #' \href{http://www.afit.edu/docs/NewAFITStyleGuideJuly2015(2).pdf}{http://www.afit.edu/docs/NewAFITStyleGuideJuly201...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/convertGenomesFromVRanges.R \name{convertGenomesFromVRanges} \alias{convertGenomesFromVRanges} \title{Convert genomes from a \code{VRanges} object} \usage{ convertGenomesFromVRanges(vranges, numBases=5, type="Shiraishi", trDir=TRUE, enforceUn...
/man/convertGenomesFromVRanges.Rd
no_license
zhiiiyang/decompTumor2Sig
R
false
true
4,751
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/convertGenomesFromVRanges.R \name{convertGenomesFromVRanges} \alias{convertGenomesFromVRanges} \title{Convert genomes from a \code{VRanges} object} \usage{ convertGenomesFromVRanges(vranges, numBases=5, type="Shiraishi", trDir=TRUE, enforceUn...
testlist <- list(data = structure(c(5.25663347312935e+83, NA, 5.25663347308138e+83, 5.25663347308138e+83), .Dim = c(1L, 4L)), q = 5.25663347308138e+83) result <- do.call(biwavelet:::rcpp_row_quantile,testlist) str(result)
/biwavelet/inst/testfiles/rcpp_row_quantile/libFuzzer_rcpp_row_quantile/rcpp_row_quantile_valgrind_files/1610554513-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
222
r
testlist <- list(data = structure(c(5.25663347312935e+83, NA, 5.25663347308138e+83, 5.25663347308138e+83), .Dim = c(1L, 4L)), q = 5.25663347308138e+83) result <- do.call(biwavelet:::rcpp_row_quantile,testlist) str(result)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/xml_convert.r \name{xml_to_df} \alias{xml_to_df} \title{Converting XML to data frames and vice versa} \usage{ xml_to_df( file = NULL, text = NULL, first.records = NULL, xml.encoding = "", records.tags = NULL, records.xpath = NULL,...
/man/xml_to_df.Rd
no_license
zq2323/xmlconvert
R
false
true
12,868
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/xml_convert.r \name{xml_to_df} \alias{xml_to_df} \title{Converting XML to data frames and vice versa} \usage{ xml_to_df( file = NULL, text = NULL, first.records = NULL, xml.encoding = "", records.tags = NULL, records.xpath = NULL,...
setwd("data") VT=read.csv("VT.csv") VT$State="Vermont" VT=subset(VT,select=c("County","State","Fatalities.Count")) VT=aggregate(.~County+State,data=VT,FUN="mean") data=read.csv("Distance.csv") data$County=toupper(data$County) VT$County=toupper(VT$County) dta=merge(VT,data,by=c("County","State")) write.csv(dta,file="Co...
/R_codes/Corr2/Create_VT_correlation.R
no_license
dtmlinh/Car-Crash-Fatalities-Exploration-Tool
R
false
false
332
r
setwd("data") VT=read.csv("VT.csv") VT$State="Vermont" VT=subset(VT,select=c("County","State","Fatalities.Count")) VT=aggregate(.~County+State,data=VT,FUN="mean") data=read.csv("Distance.csv") data$County=toupper(data$County) VT$County=toupper(VT$County) dta=merge(VT,data,by=c("County","State")) write.csv(dta,file="Co...
#### -- Packrat Autoloader (version 0.4.4-3) -- #### source("packrat/init.R") #### -- End Packrat Autoloader -- ####
/.Rprofile
no_license
sboysel/ggplots
R
false
false
117
rprofile
#### -- Packrat Autoloader (version 0.4.4-3) -- #### source("packrat/init.R") #### -- End Packrat Autoloader -- ####
DataName.aov = aov(ResponseName~BlockingName+FactorName, data = DataName) summary(DataName.aov) par(mfrow=c(2,2)) plot(DataName.aov) model.tables(DataName.aov) model.tables(DataName.aov, type="means")
/inst/Templates/Blocking.R
no_license
zorkow/BrailleR
R
false
false
202
r
DataName.aov = aov(ResponseName~BlockingName+FactorName, data = DataName) summary(DataName.aov) par(mfrow=c(2,2)) plot(DataName.aov) model.tables(DataName.aov) model.tables(DataName.aov, type="means")
#' Locator functions #' #' \code{find_statement} looks for character matches to the code #' #' \code{find_value} looks for a match to the values produced by the code #' #' \code{find_names} looks for variables and functions in the expression that match all of those #' given in \code{pattern}. The \code{pattern} should ...
/R/locator_functions.R
no_license
dtkaplan/checkr-v-0.1
R
false
false
6,019
r
#' Locator functions #' #' \code{find_statement} looks for character matches to the code #' #' \code{find_value} looks for a match to the values produced by the code #' #' \code{find_names} looks for variables and functions in the expression that match all of those #' given in \code{pattern}. The \code{pattern} should ...
i = 470 library(isoform, lib.loc="/nas02/home/w/e/weisun/R/Rlibs/") bedFile = "/nas02/home/w/e/weisun/research/data/human/Homo_sapiens.GRCh37.66.nonoverlap.exon.bed" setwd("/lustre/scr/w/e/weisun/TCGA/bam/") cmd = "ls *_asCounts_hetSNP_EA_hap1.bam" ffs = system(cmd, intern=TRUE) length(ffs) head(ffs) sams = gsub(...
/data_preparation/R_batch3/_step3/step3_countReads_EA.469.R
no_license
jasa-acs/Mapping-Tumor-Specific-Expression-QTLs-in-Impure-Tumor-Samples
R
false
false
651
r
i = 470 library(isoform, lib.loc="/nas02/home/w/e/weisun/R/Rlibs/") bedFile = "/nas02/home/w/e/weisun/research/data/human/Homo_sapiens.GRCh37.66.nonoverlap.exon.bed" setwd("/lustre/scr/w/e/weisun/TCGA/bam/") cmd = "ls *_asCounts_hetSNP_EA_hap1.bam" ffs = system(cmd, intern=TRUE) length(ffs) head(ffs) sams = gsub(...
#Proposal distribution used in rjMCMC to update the transmission tree #Returns the proposed tree as well as qr=proposal ratio part of the Metropolis-Hastings ratio .proposal = function(tree) { which=sample.int(3,1) if (which==1) return(.move1(tree))#Add if (which==2) return(.move2(tree))#Remove if (which==3) r...
/R/proposal.R
no_license
yuanwxu/TransPhyloC
R
false
false
5,219
r
#Proposal distribution used in rjMCMC to update the transmission tree #Returns the proposed tree as well as qr=proposal ratio part of the Metropolis-Hastings ratio .proposal = function(tree) { which=sample.int(3,1) if (which==1) return(.move1(tree))#Add if (which==2) return(.move2(tree))#Remove if (which==3) r...
\name{rbtrees-package} \alias{rbtrees-package} \alias{rbtrees} \docType{package} \title{ A short title line describing what the package does } \description{ A more detailed description of what the package does. A length of about one to five lines is recommended. } \details{ This section should provide a more de...
/man/rbtrees-package.Rd
permissive
lmeninato/rbtrees
R
false
false
821
rd
\name{rbtrees-package} \alias{rbtrees-package} \alias{rbtrees} \docType{package} \title{ A short title line describing what the package does } \description{ A more detailed description of what the package does. A length of about one to five lines is recommended. } \details{ This section should provide a more de...
source('./findNSourceUtils.R') test.summary2 <- function(conn) { Log.info("Importing iris.csv data...\n") iris.hex <- h2o.importFile(conn, locate("smalldata/iris/iris_wheader.csv", schema="local")) Log.info("Check that summary works...") print(summary(iris.hex)) Log.info("Summary from R's iris data: ") ...
/R/tests/testdir_munging/testdir_summary/runit_summary2.R
permissive
jmcclell/h2o
R
false
false
392
r
source('./findNSourceUtils.R') test.summary2 <- function(conn) { Log.info("Importing iris.csv data...\n") iris.hex <- h2o.importFile(conn, locate("smalldata/iris/iris_wheader.csv", schema="local")) Log.info("Check that summary works...") print(summary(iris.hex)) Log.info("Summary from R's iris data: ") ...
numPerPatch20124 <- c(2519,2481)
/NatureEE-data-archive/Run202971/JAFSdata/JAFSnumPerPatch20124.R
no_license
flaxmans/NatureEE2017
R
false
false
33
r
numPerPatch20124 <- c(2519,2481)
\name{lofactor} \alias{lofactor} \title{ Local Outlier Factor } \description{ A function that finds the local outlier factor (Breunig et al.,2000) of the matrix "data" using k neighbors. The local outlier factor (LOF) is a measure of outlyingness that is calculated for each observation. The user decides whether or...
/man/lofactor.Rd
no_license
a704261687/dprep
R
false
false
1,278
rd
\name{lofactor} \alias{lofactor} \title{ Local Outlier Factor } \description{ A function that finds the local outlier factor (Breunig et al.,2000) of the matrix "data" using k neighbors. The local outlier factor (LOF) is a measure of outlyingness that is calculated for each observation. The user decides whether or...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/polish_dimensions.R \name{polish_dimensions} \alias{polish_dimensions} \title{Polish Dimensions} \usage{ polish_dimensions(x, fill = TRUE, dimtab = NULL, verbose = FALSE, synonyms = NULL, sheet.dimension.table = NULL) } \arguments{ \item{x}...
/man/polish_dimensions.Rd
no_license
Aden2018/bibliographica
R
false
true
851
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/polish_dimensions.R \name{polish_dimensions} \alias{polish_dimensions} \title{Polish Dimensions} \usage{ polish_dimensions(x, fill = TRUE, dimtab = NULL, verbose = FALSE, synonyms = NULL, sheet.dimension.table = NULL) } \arguments{ \item{x}...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/exp_complete_unstd_fit.sem.mlr.R \name{exp_fit.sem.mlr} \alias{exp_fit.sem.mlr} \title{Fit Simple Mediation Model for Data with Exponential X - Structural Equation Modeling} \usage{ exp_fit.sem.mlr(data, taskid) } \arguments{ \item{data}{\cod...
/man/exp_fit.sem.mlr.Rd
permissive
jeksterslabds/jeksterslabRmedsimple
R
false
true
6,327
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/exp_complete_unstd_fit.sem.mlr.R \name{exp_fit.sem.mlr} \alias{exp_fit.sem.mlr} \title{Fit Simple Mediation Model for Data with Exponential X - Structural Equation Modeling} \usage{ exp_fit.sem.mlr(data, taskid) } \arguments{ \item{data}{\cod...
get.mode <- function(x){ y <- which.max(tabulate(as.factor(x))) x[y] } ortho.id <- sort(unique(key.feat.cds$ortho_id)) key.ortho.feat <- data.frame(ortho_id = character(), top_hit = character(), stringsAsFactors = F) for(i in 1:length(ortho.id)){ key.or...
/freshstart-2016/bin/make_ortho_feat_key.R
no_license
roxanahickey/gardnerella
R
false
false
1,136
r
get.mode <- function(x){ y <- which.max(tabulate(as.factor(x))) x[y] } ortho.id <- sort(unique(key.feat.cds$ortho_id)) key.ortho.feat <- data.frame(ortho_id = character(), top_hit = character(), stringsAsFactors = F) for(i in 1:length(ortho.id)){ key.or...
/* CPSC 359 Assignment 3- SNES Driver This program initializes the latch, clock, and data lines of the SNES controller for output and input, respectively. It then prompts a user to press a button and displays which button was pressed to the screen. The program terminates after the START button is pressed. Created By...
/main-EXPLAINED.s.r
no_license
sm20/SNES-driver
R
false
false
14,092
r
/* CPSC 359 Assignment 3- SNES Driver This program initializes the latch, clock, and data lines of the SNES controller for output and input, respectively. It then prompts a user to press a button and displays which button was pressed to the screen. The program terminates after the START button is pressed. Created By...
#Headline x <- rnorm(500) y <- rnorm(500) #super important feature for real it's hella important #an alternative way forward # new feature brand brand new - adding something to make feater even #brander and newer #adding something here #some more work for github #offline edit
/demo_script.R
no_license
StanislawZawieja/git_lesson
R
false
false
285
r
#Headline x <- rnorm(500) y <- rnorm(500) #super important feature for real it's hella important #an alternative way forward # new feature brand brand new - adding something to make feater even #brander and newer #adding something here #some more work for github #offline edit
context("Test mbkmeans function.") set.seed(13124) test_that("all mbkmeans methods give same result", { library(SummarizedExperiment) library(SingleCellExperiment) se <- SummarizedExperiment(matrix(rpois(600, lambda=5), nrow=10, ncol=60), colData = data.frame(bio = gl(2, 30))...
/tests/testthat/test_mbkmeans.R
permissive
grimbough/mbkmeans
R
false
false
1,368
r
context("Test mbkmeans function.") set.seed(13124) test_that("all mbkmeans methods give same result", { library(SummarizedExperiment) library(SingleCellExperiment) se <- SummarizedExperiment(matrix(rpois(600, lambda=5), nrow=10, ncol=60), colData = data.frame(bio = gl(2, 30))...
####################### # Advent of Code 2019 # # Day 01 # ####################### library(tidyverse) # puzzle input day1_input <- c(80740, 103617, 86598, 135938, 98650, 84982, 79253, 122436, 119679, 89758, 131375, 112500, 111603, 112563, 111174, 114961, 131423, 144920, 56619, 94542, 94533, 116453, 78...
/isa/day01/code.R
no_license
ivelasq/2019-advent-of-code
R
false
false
3,188
r
####################### # Advent of Code 2019 # # Day 01 # ####################### library(tidyverse) # puzzle input day1_input <- c(80740, 103617, 86598, 135938, 98650, 84982, 79253, 122436, 119679, 89758, 131375, 112500, 111603, 112563, 111174, 114961, 131423, 144920, 56619, 94542, 94533, 116453, 78...
## A pair of functions that cache the inverse of a matrix. ## This function creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y){ x <<- y inv <<- NULL } ...
/cachematrix.R
no_license
amernureddin/R
R
false
false
994
r
## A pair of functions that cache the inverse of a matrix. ## This function creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y){ x <<- y inv <<- NULL } ...
#' @importFrom stats drop.terms reformulate # Accessor function for Formula objects that have multiple parts get_rhs <- function(x, which = 1, to.formula = FALSE) { # Coercing to formula can be useful, otherwise it's a call object if (to.formula == TRUE) { as.formula(paste("~", deparse(attr(x, "rhs")[[which]]))...
/R/formula_utils.R
no_license
ewillyliew/dpm
R
false
false
6,971
r
#' @importFrom stats drop.terms reformulate # Accessor function for Formula objects that have multiple parts get_rhs <- function(x, which = 1, to.formula = FALSE) { # Coercing to formula can be useful, otherwise it's a call object if (to.formula == TRUE) { as.formula(paste("~", deparse(attr(x, "rhs")[[which]]))...
theme.publication <- function(taxa.vec) { #palette(colorRampPalette(rainbow(9))(length(levels(as.factor(taxa.vec))))) palette(colorRampPalette(brewer.pal(8,"Spectral"))(length(levels(as.factor(taxa.vec))))) (theme_foundation(base_size=12) + theme(plot.title = element_text(face = "bold", ...
/lib/theme.publication.r
no_license
austinkim-mbs/gastro
R
false
false
1,472
r
theme.publication <- function(taxa.vec) { #palette(colorRampPalette(rainbow(9))(length(levels(as.factor(taxa.vec))))) palette(colorRampPalette(brewer.pal(8,"Spectral"))(length(levels(as.factor(taxa.vec))))) (theme_foundation(base_size=12) + theme(plot.title = element_text(face = "bold", ...
library(tidytidbits) ### Name: format_p_values_at ### Title: Format numeric columns for display ### Aliases: format_p_values_at ### ** Examples library(tibble) library(magrittr) library(dplyr) tibble(p=c(0.05, 0.0001)) %>% format_numbers_at(vars(p))
/data/genthat_extracted_code/tidytidbits/examples/format_p_values_at.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
261
r
library(tidytidbits) ### Name: format_p_values_at ### Title: Format numeric columns for display ### Aliases: format_p_values_at ### ** Examples library(tibble) library(magrittr) library(dplyr) tibble(p=c(0.05, 0.0001)) %>% format_numbers_at(vars(p))
rm(list=ls()) library(ggmap) library(ggpubr) library(plyr) library(lubridate) library(purrr) library(scales) library(tidyverse) library(data.table) options(digits=9) options(digit=9) ################################################################################ #################### #################### L...
/wareHouse/Growing_tree_lat_long_CSV_files/vicid_growing_areas.R
permissive
YutingYao/Ag
R
false
false
14,547
r
rm(list=ls()) library(ggmap) library(ggpubr) library(plyr) library(lubridate) library(purrr) library(scales) library(tidyverse) library(data.table) options(digits=9) options(digit=9) ################################################################################ #################### #################### L...
#' @title spatials2one #' @description Merge list of SLDF's. In case the object if already a SLDF, just returns it #' #' @param spatials SLDF or list of SLDF's #' #' @return SLDF #' @export #' #' @examples #' \dontrun{ #' data("l") #' ls <- list() #' for(i in 1:length(l[1:100,])){ls[i] <- l[i,]} #' spatials2one(ls) #' ...
/R/spatials2one.R
no_license
cesarkero/IterativeSteinerTree
R
false
false
774
r
#' @title spatials2one #' @description Merge list of SLDF's. In case the object if already a SLDF, just returns it #' #' @param spatials SLDF or list of SLDF's #' #' @return SLDF #' @export #' #' @examples #' \dontrun{ #' data("l") #' ls <- list() #' for(i in 1:length(l[1:100,])){ls[i] <- l[i,]} #' spatials2one(ls) #' ...
#' Conformal inference for counterfactuals #' #' \code{conformalCf} computes intervals for counterfactuals or outcomes with ignorable missing values in general. #' It supports both split conformal inference and CV+, #' including weighted Jackknife+ as a special case. For each type, it supports both conformalized #' qua...
/R/conformalCf.R
permissive
predt/cfcausal
R
false
false
10,639
r
#' Conformal inference for counterfactuals #' #' \code{conformalCf} computes intervals for counterfactuals or outcomes with ignorable missing values in general. #' It supports both split conformal inference and CV+, #' including weighted Jackknife+ as a special case. For each type, it supports both conformalized #' qua...
#load packages library(data.table) library(ggplot2) library(ndot.tools) library(sjmisc) #set wd setwd("/Users/ryanloos/Capstone/") #load data #53,399 crashes on 20,637 intersections. 885 Severe crashes at 776 intersections #includes ints we might not collect data on intersections_raw <- fread("raw_data/intersection_dat...
/data_prep_intersections.R
no_license
bgorillaz/Capstone
R
false
false
10,567
r
#load packages library(data.table) library(ggplot2) library(ndot.tools) library(sjmisc) #set wd setwd("/Users/ryanloos/Capstone/") #load data #53,399 crashes on 20,637 intersections. 885 Severe crashes at 776 intersections #includes ints we might not collect data on intersections_raw <- fread("raw_data/intersection_dat...
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function ## This following function creates a special object, a list that: ## set the value of the matrix ## get the value of the matrix ## set the inverse of the matri...
/cachematrix.R
no_license
JManuelMK/ProgrammingAssignment2
R
false
false
1,375
r
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function ## This following function creates a special object, a list that: ## set the value of the matrix ## get the value of the matrix ## set the inverse of the matri...
#building zero inflated data, fitting it with a zero inflated model. #clear environment, load packages.---- rm(list=ls()) library(runjags) #simulate data.---- N <- 1000 #lets create a covariate, say temperature because I'm guessing that matters for algae. x <- runif(N, 5, 25) #Lets specify a poisson distribution wh...
/RCode/Jags_Models/ZIP Trial Models/zero_inflated_poisson_example_JAGS.r
no_license
GLEON/Bayes_forecast_WG
R
false
false
3,432
r
#building zero inflated data, fitting it with a zero inflated model. #clear environment, load packages.---- rm(list=ls()) library(runjags) #simulate data.---- N <- 1000 #lets create a covariate, say temperature because I'm guessing that matters for algae. x <- runif(N, 5, 25) #Lets specify a poisson distribution wh...
# Stack is the data structure used by the torch JIT to pass values. Stack <- R6::R6Class( classname = "Stack", public = list( ptr = NULL, initialize = function(ptr = NULL) { if (is.null(ptr)) self$ptr <- cpp_stack_new() else self$ptr <- ptr }, push_back = function(x) { ...
/fuzzedpackages/torch/R/stack.R
no_license
akhikolla/testpackages
R
false
false
1,424
r
# Stack is the data structure used by the torch JIT to pass values. Stack <- R6::R6Class( classname = "Stack", public = list( ptr = NULL, initialize = function(ptr = NULL) { if (is.null(ptr)) self$ptr <- cpp_stack_new() else self$ptr <- ptr }, push_back = function(x) { ...
#' @title Regression Error Characteristic Curves (REC) in D3 with r2d3 Package. #' #' @description Error Characteristic curves are a generalization of ROC curves. #' On the x axis of the plot there is an error tolerance and on the y axis there is a percentage #' of observations predicted within the given tolerance. #' ...
/R/plotD3REC.R
no_license
michbur/auditor
R
false
false
2,703
r
#' @title Regression Error Characteristic Curves (REC) in D3 with r2d3 Package. #' #' @description Error Characteristic curves are a generalization of ROC curves. #' On the x axis of the plot there is an error tolerance and on the y axis there is a percentage #' of observations predicted within the given tolerance. #' ...
library(bnlearn) library(caret) library(e1071) mydata<-read.table("C:/Users/ADMIN/Desktop/AI Codes/Week_5/2020_bn_nb_data.txt", header=TRUE) mydata.net<-hc(mydata,score="k2",start=NULL) mydata.net.fit<-bn.fit(mydata.net, mydata) print(mydata.net.fit)
/Week5/Ques_2.R
no_license
AyushYadav29/CS362-AI-Laboratory-Report-1
R
false
false
258
r
library(bnlearn) library(caret) library(e1071) mydata<-read.table("C:/Users/ADMIN/Desktop/AI Codes/Week_5/2020_bn_nb_data.txt", header=TRUE) mydata.net<-hc(mydata,score="k2",start=NULL) mydata.net.fit<-bn.fit(mydata.net, mydata) print(mydata.net.fit)
set.seed(7017) fun1 <- function(matrix.A, matrix.Sig, obs, burnin=100) { df <- data.frame() epsilons.var <- rmvnorm((obs+burnin), c(0,0), matrix.Sig) Xt <- c(0,0) for (t in 1:(obs+burnin)) { Xt <- matrix.A%*%Xt + epsilons.var[t,] df <- rbind(df, c(Xt)) } df <- df[(1+burnin):(obs...
/project/q7-2.R
no_license
rexarski/stat7017-big-data
R
false
false
3,526
r
set.seed(7017) fun1 <- function(matrix.A, matrix.Sig, obs, burnin=100) { df <- data.frame() epsilons.var <- rmvnorm((obs+burnin), c(0,0), matrix.Sig) Xt <- c(0,0) for (t in 1:(obs+burnin)) { Xt <- matrix.A%*%Xt + epsilons.var[t,] df <- rbind(df, c(Xt)) } df <- df[(1+burnin):(obs...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geojson_json.R \name{geojson_json} \alias{geojson_json} \title{Convert many input types with spatial data to geojson specified as a json string} \usage{ geojson_json(input, lat = NULL, lon = NULL, group = NULL, geometry = "point", type = "F...
/man/geojson_json.Rd
permissive
ateucher/geojsonio
R
false
true
6,657
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geojson_json.R \name{geojson_json} \alias{geojson_json} \title{Convert many input types with spatial data to geojson specified as a json string} \usage{ geojson_json(input, lat = NULL, lon = NULL, group = NULL, geometry = "point", type = "F...
library(Sleuth3) library(ggplot2) ?case1002 fit_bats <- lm(log(Energy) ~ log(Mass) + Type, data = case1002) summary(fit_bats) View(case1002) case1002$Type2 <- relevel(case1002$Type, ref = "non-echolocating bats") fit_2 <- lm(log(Energy) ~ log(Mass) + Type2,data = case1002) summary(fit_2) confint(fit_2) summary(fit...
/lab 3 R.r
no_license
vijayvardhan94/ST512-Lab
R
false
false
628
r
library(Sleuth3) library(ggplot2) ?case1002 fit_bats <- lm(log(Energy) ~ log(Mass) + Type, data = case1002) summary(fit_bats) View(case1002) case1002$Type2 <- relevel(case1002$Type, ref = "non-echolocating bats") fit_2 <- lm(log(Energy) ~ log(Mass) + Type2,data = case1002) summary(fit_2) confint(fit_2) summary(fit...
# Clair Martin # 2016-09-17 # EEB QBC # Pinter-Wollman HW Day 2 #### I.1 Weight diff at day 0 #### #Plot and examine if there is a statistical difference between the weights of chicks #assigned to different diet treatments on day 0 # dataframe has 4 col: weight, Time, Chick, Diet # Get all day 0 samples day0 = Chic...
/Exercises/Code/martin_pinter-wollman_day2_hw.R
no_license
clairmartin/qbc_martin
R
false
false
7,642
r
# Clair Martin # 2016-09-17 # EEB QBC # Pinter-Wollman HW Day 2 #### I.1 Weight diff at day 0 #### #Plot and examine if there is a statistical difference between the weights of chicks #assigned to different diet treatments on day 0 # dataframe has 4 col: weight, Time, Chick, Diet # Get all day 0 samples day0 = Chic...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/modStats.R \name{modStats} \alias{modStats} \title{Calculate common model evaluation statistics} \usage{ modStats(mydata, mod = "mod", obs = "obs", statistic = c("n", "FAC2", "MB", "MGE", "NMB", "NMGE", "RMSE", "r", "COE", "IOA"), type = ...
/man/modStats.Rd
no_license
Robinlovelace/openair
R
false
true
5,498
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/modStats.R \name{modStats} \alias{modStats} \title{Calculate common model evaluation statistics} \usage{ modStats(mydata, mod = "mod", obs = "obs", statistic = c("n", "FAC2", "MB", "MGE", "NMB", "NMGE", "RMSE", "r", "COE", "IOA"), type = ...
# * Author: Bangyou Zheng (Bangyou.Zheng@csiro.au) # * Created: 06/04/2010 # * # String function in this package # # Get the length of a string # @rdname string # @param str Input string # @return The character number of the string len <- function( str ) { return( length( unlist( strsplit( str, ""...
/R/string.r
no_license
cran/weaana
R
false
false
3,256
r
# * Author: Bangyou Zheng (Bangyou.Zheng@csiro.au) # * Created: 06/04/2010 # * # String function in this package # # Get the length of a string # @rdname string # @param str Input string # @return The character number of the string len <- function( str ) { return( length( unlist( strsplit( str, ""...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Wrapper.R \name{fit.zqtl.factorize} \alias{fit.zqtl.factorize} \title{Variational inference of zQTL factorization to identify potential confounders across GWAS statistids} \usage{ fit.zqtl.factorize(effect, effect.se, X) } \arguments{ \item{e...
/man/fit.zqtl.factorize.Rd
permissive
YPARK/zqtl
R
false
true
4,829
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Wrapper.R \name{fit.zqtl.factorize} \alias{fit.zqtl.factorize} \title{Variational inference of zQTL factorization to identify potential confounders across GWAS statistids} \usage{ fit.zqtl.factorize(effect, effect.se, X) } \arguments{ \item{e...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/weighted_analysis.R \name{weighted_crosstab} \alias{weighted_crosstab} \title{A weighted two-way crosstab generator} \usage{ weighted_crosstab( data, var1, var2, show_na = FALSE, drop_set = c("No response", "Not applicable", "Refuse...
/man/weighted_crosstab.Rd
permissive
jayleetx/jayutils
R
false
true
1,314
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/weighted_analysis.R \name{weighted_crosstab} \alias{weighted_crosstab} \title{A weighted two-way crosstab generator} \usage{ weighted_crosstab( data, var1, var2, show_na = FALSE, drop_set = c("No response", "Not applicable", "Refuse...
library(mvord) library(Matrix) rho <- list() rho$ndim <- 5 rho$threshold.values <- list(c(NA), c(NA,NA,NA), c(NA,NA,NA), c(NA,NA,NA,NA,NA), c(NA,NA)) rho$ntheta <- sapply(rho$threshold.values, length...
/tests/check_transf_thresholds.R
no_license
cran/mvord
R
false
false
10,843
r
library(mvord) library(Matrix) rho <- list() rho$ndim <- 5 rho$threshold.values <- list(c(NA), c(NA,NA,NA), c(NA,NA,NA), c(NA,NA,NA,NA,NA), c(NA,NA)) rho$ntheta <- sapply(rho$threshold.values, length...
# Let X1, X2, · · · be i.i.d. continuous random variables with N(2, 9) distribution. # Defining Yn = (0.5)^n Xn, n = 1,2,···. # Also defining Tn and An to be the sum and the average, respectively, of Y1,Y2,··· ,Yn. # Checking if Yn →(p) 0, Tn →(p) 2, An →(p) 0 and Tn →(d) N(2,3) library("ConvergenceConcepts") genYn...
/ConvergenceConcept.R
no_license
nzare/ASP
R
false
false
2,552
r
# Let X1, X2, · · · be i.i.d. continuous random variables with N(2, 9) distribution. # Defining Yn = (0.5)^n Xn, n = 1,2,···. # Also defining Tn and An to be the sum and the average, respectively, of Y1,Y2,··· ,Yn. # Checking if Yn →(p) 0, Tn →(p) 2, An →(p) 0 and Tn →(d) N(2,3) library("ConvergenceConcepts") genYn...
# devtools::install_github("jimmyday12/fitzRoy") library(fitzRoy) library(dplyr) library(tidyr) library(lubridate) library(snakecase) library(stringr) afltables <- fitzRoy::get_afltables_stats() disp_point_ratio <- afltables %>% select(date, id, first_name, surname, kicks, handballs, goals, behinds) %>% mutate(...
/legacy_scripts/disp_point_ratio.R
no_license
liam-crow/AFL_scripts
R
false
false
736
r
# devtools::install_github("jimmyday12/fitzRoy") library(fitzRoy) library(dplyr) library(tidyr) library(lubridate) library(snakecase) library(stringr) afltables <- fitzRoy::get_afltables_stats() disp_point_ratio <- afltables %>% select(date, id, first_name, surname, kicks, handballs, goals, behinds) %>% mutate(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/compareTables.R \name{mergeInputDiff} \alias{mergeInputDiff} \title{Custom merge of difference data with input data} \usage{ mergeInputDiff(diffData, inputData, typeData, colsBy) } \arguments{ \item{diffData}{A \code{data.table} object as out...
/package/clinUtils/man/mergeInputDiff.Rd
no_license
Lion666/clinUtils
R
false
true
917
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/compareTables.R \name{mergeInputDiff} \alias{mergeInputDiff} \title{Custom merge of difference data with input data} \usage{ mergeInputDiff(diffData, inputData, typeData, colsBy) } \arguments{ \item{diffData}{A \code{data.table} object as out...
#' Compute statistics used to construct antiProfile #' #' This function calculates normal ranges of expressions and variance ratios for all probesets. To create an anti-profile, #' call buildAntiProfile on the output of this function #' #' @param e matrix of gene expression, with one column per sample #' @param cl vect...
/R/apStats.r
no_license
HCBravoLab/antiProfiles
R
false
false
3,493
r
#' Compute statistics used to construct antiProfile #' #' This function calculates normal ranges of expressions and variance ratios for all probesets. To create an anti-profile, #' call buildAntiProfile on the output of this function #' #' @param e matrix of gene expression, with one column per sample #' @param cl vect...
library(vegalite) ### Name: vegalite ### Title: Create and (optionally) visualize a Vega-Lite spec ### Aliases: vegalite ### ** Examples dat <- jsonlite::fromJSON('[ {"a": "A","b": 28}, {"a": "B","b": 55}, {"a": "C","b": 43}, {"a": "D","b": 91}, {"a": "E","b": 81}, {"a": "F","b": 53}, {"a": "G","b": 19}...
/data/genthat_extracted_code/vegalite/examples/vegalite.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
486
r
library(vegalite) ### Name: vegalite ### Title: Create and (optionally) visualize a Vega-Lite spec ### Aliases: vegalite ### ** Examples dat <- jsonlite::fromJSON('[ {"a": "A","b": 28}, {"a": "B","b": 55}, {"a": "C","b": 43}, {"a": "D","b": 91}, {"a": "E","b": 81}, {"a": "F","b": 53}, {"a": "G","b": 19}...