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
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/later.R \name{later} \alias{later} \title{Executes a function later} \usage{ later(func, delay = 0, loop = current_loop()) } \arguments{ \item{func}{A function or formula (see \code{\link[rlang:as_function]{rlang::as_function()}}).} \item{de...
/man/later.Rd
permissive
r-lib/later
R
false
true
2,111
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/later.R \name{later} \alias{later} \title{Executes a function later} \usage{ later(func, delay = 0, loop = current_loop()) } \arguments{ \item{func}{A function or formula (see \code{\link[rlang:as_function]{rlang::as_function()}}).} \item{de...
#'@rdname hzhf #'@export makeHZHF15 = function(in.dim, k, c = 0.5, s = 0, check = TRUE) { in.dim = asCount(in.dim) k = asInteger(k, lower = 1L, upper = in.dim - 1L) z.max = 2 * 1:in.dim trafo1 = makeWFGTrafo(c( list(list(name = "identity",ids = 1)), lapply(2:in.dim, function(i) list(name = "b...
/R/hzhf15.R
no_license
danielhorn/hierarchTestFuns
R
false
false
1,210
r
#'@rdname hzhf #'@export makeHZHF15 = function(in.dim, k, c = 0.5, s = 0, check = TRUE) { in.dim = asCount(in.dim) k = asInteger(k, lower = 1L, upper = in.dim - 1L) z.max = 2 * 1:in.dim trafo1 = makeWFGTrafo(c( list(list(name = "identity",ids = 1)), lapply(2:in.dim, function(i) list(name = "b...
#' ssm: Calculate mean summer soil moisture. #' #' @description `ssm` calculates average soil moisture content over the summer #' period. #' #' @param sm a vector of soil moisture values (e.g. calculated by `soil_moisture`) #' @param tme a `POSIXlt` object representing the date and time of each `sm` #' value. #' @param...
/R/ssm.R
no_license
everydayduffy/climvars
R
false
false
1,744
r
#' ssm: Calculate mean summer soil moisture. #' #' @description `ssm` calculates average soil moisture content over the summer #' period. #' #' @param sm a vector of soil moisture values (e.g. calculated by `soil_moisture`) #' @param tme a `POSIXlt` object representing the date and time of each `sm` #' value. #' @param...
\name{all.class} \alias{plot.PK} \alias{print.PK} \alias{summary.PK} \title{Different generic functions for class PK.} \description{Generic functions for summarizing an object of class PK} \usage{ \method{print}{PK}(x, digits=max(3, getOption("digits") - 4), ...) \method{summary}{PK}(object, ...) \method{plot}{PK}(x,...
/man/all.class.Rd
no_license
gpinkham/pk
R
false
false
5,629
rd
\name{all.class} \alias{plot.PK} \alias{print.PK} \alias{summary.PK} \title{Different generic functions for class PK.} \description{Generic functions for summarizing an object of class PK} \usage{ \method{print}{PK}(x, digits=max(3, getOption("digits") - 4), ...) \method{summary}{PK}(object, ...) \method{plot}{PK}(x,...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cor_reshape.R \name{cor_gather} \alias{cor_gather} \alias{cor_spread} \title{Reshape Correlation Data} \usage{ cor_gather(data, drop.na = TRUE) cor_spread(data, value = "cor") } \arguments{ \item{data}{a data frame or matrix.} \item{drop.na...
/man/cor_reshape.Rd
no_license
carlosdancing/rstatix
R
false
true
1,855
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cor_reshape.R \name{cor_gather} \alias{cor_gather} \alias{cor_spread} \title{Reshape Correlation Data} \usage{ cor_gather(data, drop.na = TRUE) cor_spread(data, value = "cor") } \arguments{ \item{data}{a data frame or matrix.} \item{drop.na...
library(shiny) library(colourpicker) # Define UI for application that draws a histogram shinyUI( # navbarPage navbarPage("Premiers pas avec shiny", # premier onglet Data tabPanel("Data", navlistPanel( widths = c(2, 10), ...
/shiny/TP/applications/app_structure_correction/ui.R
no_license
bthieurmel/lesson
R
false
false
2,395
r
library(shiny) library(colourpicker) # Define UI for application that draws a histogram shinyUI( # navbarPage navbarPage("Premiers pas avec shiny", # premier onglet Data tabPanel("Data", navlistPanel( widths = c(2, 10), ...
## UTILITY FUNCTIONS ## logistic <- function (x) { return(1/(1+exp(-x))) } logit <- function (x) { return(log(x/(1-x))) } dpolya <- function (x, p, nu) { p <- p / sum(p) x <- as.integer(x) N <- sum(x) return(lgamma(N + 1) - sum(lgamma(x + 1)) + lgamma(sum(nu*p)) - lgamma(N + sum(nu*p)) + sum(lgamma(x + n...
/functions.R
no_license
mattdahl/genealogy
R
false
false
2,354
r
## UTILITY FUNCTIONS ## logistic <- function (x) { return(1/(1+exp(-x))) } logit <- function (x) { return(log(x/(1-x))) } dpolya <- function (x, p, nu) { p <- p / sum(p) x <- as.integer(x) N <- sum(x) return(lgamma(N + 1) - sum(lgamma(x + 1)) + lgamma(sum(nu*p)) - lgamma(N + sum(nu*p)) + sum(lgamma(x + n...
# Autor: AAB versão 1.0 data: 14/11/2018 # O programa le uma imagem 400 X 400 (canais hh, hv e vv) encontra a funcao l(j) para cada linha da imagem, e calcula o ponto de max/min (evidencia de borda) pelo método GenSA. # O programa imprime um vetor de tamanho 400 com as evidencias de bordas para cada linha da imagem ...
/Code/Code_r/plot_2d_razao_ell_flevoland.R
no_license
anderborba/ufal_mack
R
false
false
2,341
r
# Autor: AAB versão 1.0 data: 14/11/2018 # O programa le uma imagem 400 X 400 (canais hh, hv e vv) encontra a funcao l(j) para cada linha da imagem, e calcula o ponto de max/min (evidencia de borda) pelo método GenSA. # O programa imprime um vetor de tamanho 400 com as evidencias de bordas para cada linha da imagem ...
> setwd("C:/Users/91958/Desktop") > linear_model<-read.csv("LM.csv",header = TRUE) > linear_model Hours Scores 1 2.5 21 2 5.1 47 3 3.2 27 4 8.5 75 5 3.5 30 6 1.5 20 7 9.2 88 8 5.5 60 9 8.3 81 10 2.7 25 11 7.7 85 12 5.9 62 ...
/task results.R
no_license
Amanpreet44/predict_score-regression
R
false
false
1,704
r
> setwd("C:/Users/91958/Desktop") > linear_model<-read.csv("LM.csv",header = TRUE) > linear_model Hours Scores 1 2.5 21 2 5.1 47 3 3.2 27 4 8.5 75 5 3.5 30 6 1.5 20 7 9.2 88 8 5.5 60 9 8.3 81 10 2.7 25 11 7.7 85 12 5.9 62 ...
library(gdmp) ### Name: is.identical ### Title: Check two SNPs for near identity across genotyped samples ### Aliases: is.identical ### ** Examples ## Simulate random allele designations for 100 bi-allelic SNPs set.seed(2016) desig <- array(sample(c('A','C','G','T'), size = 200, repl = TRUE), dim=c(100, 2)) ## Si...
/data/genthat_extracted_code/gdmp/examples/is.identical.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,564
r
library(gdmp) ### Name: is.identical ### Title: Check two SNPs for near identity across genotyped samples ### Aliases: is.identical ### ** Examples ## Simulate random allele designations for 100 bi-allelic SNPs set.seed(2016) desig <- array(sample(c('A','C','G','T'), size = 200, repl = TRUE), dim=c(100, 2)) ## Si...
## read in all data readdata <- read.table("household_power_consumption.txt", header = TRUE, sep = ";") ## change Date from factor or Date format readdata$Date <- as.Date(readdata$Date,"%d/%m/%Y") ## subset data data <- subset(readdata, readdata$Date == "2007-02-01" | readdata$Date == "2007-02-02") ## change Glob...
/plot1.R
no_license
vickyinguo/ExData_Plotting1
R
false
false
662
r
## read in all data readdata <- read.table("household_power_consumption.txt", header = TRUE, sep = ";") ## change Date from factor or Date format readdata$Date <- as.Date(readdata$Date,"%d/%m/%Y") ## subset data data <- subset(readdata, readdata$Date == "2007-02-01" | readdata$Date == "2007-02-02") ## change Glob...
#' Plots TopDom Overlap Scores and Lengths as a Function of Sample Fraction or Bin Size #' #' @inheritParams overlap_score_summary_grid #' #' @param chromosome (character string) The chromosome to be plotted. #' #' @param bin_size,rho,reference_rho (numeric) The bin size (bps) or sample fraction (in (0,0.5]) to be plot...
/R/gg.R
no_license
HenrikBengtsson/TopDomStudy
R
false
false
23,520
r
#' Plots TopDom Overlap Scores and Lengths as a Function of Sample Fraction or Bin Size #' #' @inheritParams overlap_score_summary_grid #' #' @param chromosome (character string) The chromosome to be plotted. #' #' @param bin_size,rho,reference_rho (numeric) The bin size (bps) or sample fraction (in (0,0.5]) to be plot...
makeCacheMatrix <- function(x = matrix()) { m<-NULL set<-function(y){ x<<-y m<<-NULL } get<-function() x setmatrix<-function(solve) m<<- solve getmatrix<-function() m list(set=set, get=get, setmatrix=setmatrix, getmatrix=getmatrix) } cacheSolve <- function(x, ...) { m<-x$getmatrix() if(!is.n...
/cachematrix.R
no_license
dbrule/ProgrammingAssignment2
R
false
false
449
r
makeCacheMatrix <- function(x = matrix()) { m<-NULL set<-function(y){ x<<-y m<<-NULL } get<-function() x setmatrix<-function(solve) m<<- solve getmatrix<-function() m list(set=set, get=get, setmatrix=setmatrix, getmatrix=getmatrix) } cacheSolve <- function(x, ...) { m<-x$getmatrix() if(!is.n...
#' md.simdataobject is an abstract class that is inherited by the #' md.simdata covariate generating classes such as md.binom, md.norm etc. #' #' @keywords internal #' #' @slot name name of the covariate #' @slot center expected mean of the covariate used to center values in md.exp #' @slot virtual specifies...
/R/library.R
no_license
cran/missDeaths
R
false
false
23,048
r
#' md.simdataobject is an abstract class that is inherited by the #' md.simdata covariate generating classes such as md.binom, md.norm etc. #' #' @keywords internal #' #' @slot name name of the covariate #' @slot center expected mean of the covariate used to center values in md.exp #' @slot virtual specifies...
apply(out,2,range) range(out[,4]/out[,2]*12) dev.new() par(mfrow=c(2,1)) plot(out[,4]/out[,2]*12,type='l') mean(out[2475:3075,4]/out[2475:3075,2]*12) stage=((3*out[,2])/(r2h^2*pi))^(1/3) A=pi*(r2h*stage)^2 perim=2*pi*sqrt(A/pi)*DL #### maybe just treat this as a circle??? zmix=10^(-0.518*log10(out[,4]/out[,2]*...
/processingSims.R
no_license
joneslabND/NHLD_lakeCmodel
R
false
false
862
r
apply(out,2,range) range(out[,4]/out[,2]*12) dev.new() par(mfrow=c(2,1)) plot(out[,4]/out[,2]*12,type='l') mean(out[2475:3075,4]/out[2475:3075,2]*12) stage=((3*out[,2])/(r2h^2*pi))^(1/3) A=pi*(r2h*stage)^2 perim=2*pi*sqrt(A/pi)*DL #### maybe just treat this as a circle??? zmix=10^(-0.518*log10(out[,4]/out[,2]*...
d <- read.csv("a resource with spaces.csv") png("a graph with spaces.png") par(mar = c(15, 4, .5, .5)) barplot(setNames(dat$number, dat$name), las = 2) dev.off()
/inst/examples/demo/src/spaces/script.R
permissive
vimc/orderly
R
false
false
162
r
d <- read.csv("a resource with spaces.csv") png("a graph with spaces.png") par(mar = c(15, 4, .5, .5)) barplot(setNames(dat$number, dat$name), las = 2) dev.off()
# Siwei 15 Dec 2022 # Merge VPS45 sequencing results from single KD and 3xKD # use sva comBat to remove batch effect # run Kristen's synergistic model # init # init library(edgeR) library(readr) library(Rfast) library(factoextra) library(stringr) library(MASS) library(magrittr) library(dplyr) library(ggpubr) librar...
/Siwei_analysis/code_R/VPS45/VPS45_merge_data_synergy_15Dec2022.R
no_license
endeneon/VPS45_repo
R
false
false
11,502
r
# Siwei 15 Dec 2022 # Merge VPS45 sequencing results from single KD and 3xKD # use sva comBat to remove batch effect # run Kristen's synergistic model # init # init library(edgeR) library(readr) library(Rfast) library(factoextra) library(stringr) library(MASS) library(magrittr) library(dplyr) library(ggpubr) librar...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/study_selection_module.R \name{study_selection_module_ui} \alias{study_selection_module_ui} \alias{study_selection_module_server} \title{study_selection_module_ui and study_selection_module_server} \usage{ study_selection_module_ui(id) study...
/man/study_selection_module.Rd
permissive
jaybee84/projectlive.modules
R
false
true
450
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/study_selection_module.R \name{study_selection_module_ui} \alias{study_selection_module_ui} \alias{study_selection_module_server} \title{study_selection_module_ui and study_selection_module_server} \usage{ study_selection_module_ui(id) study...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/docx_replace.R \name{body_replace_text_at_bkm} \alias{body_replace_text_at_bkm} \alias{body_replace_img_at_bkm} \alias{headers_replace_text_at_bkm} \alias{headers_replace_img_at_bkm} \alias{footers_replace_text_at_bkm} \alias{footers_replace_...
/man/body_replace_text_at_bkm.Rd
permissive
davidgohel/officer
R
false
true
1,930
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/docx_replace.R \name{body_replace_text_at_bkm} \alias{body_replace_text_at_bkm} \alias{body_replace_img_at_bkm} \alias{headers_replace_text_at_bkm} \alias{headers_replace_img_at_bkm} \alias{footers_replace_text_at_bkm} \alias{footers_replace_...
#' Paper Towel Data #' #' These data come from an experiment comparing the strength of different types #' of paper towels when they are wet. Two different brands were compared at #' three different levels of wetness. Strength was interpreted as how long the #' damp paper towel could support a weight. The paper towel...
/R/data-pt.R
no_license
kferris10/catstats
R
false
false
1,088
r
#' Paper Towel Data #' #' These data come from an experiment comparing the strength of different types #' of paper towels when they are wet. Two different brands were compared at #' three different levels of wetness. Strength was interpreted as how long the #' damp paper towel could support a weight. The paper towel...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 11593 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 11176 c c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 11176 c c Input Parameter (command line, ...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Seidl/ASP_Program_Inclusion/T-edau-8/T-edau-8.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
2,295
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 11593 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 11176 c c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 11176 c c Input Parameter (command line, ...
## Code was used to just to test DPI and some functions. file.game <- "https://raw.githubusercontent.com/nfl-football-ops/Big-Data-Bowl/master/Data/games.csv" file.plays <- "https://raw.githubusercontent.com/nfl-football-ops/Big-Data-Bowl/master/Data/plays.csv" csv_list <- list.files(path= "Data", pattern="tracking_g...
/code/dpi.R
no_license
pwu97/pass-interference
R
false
false
1,501
r
## Code was used to just to test DPI and some functions. file.game <- "https://raw.githubusercontent.com/nfl-football-ops/Big-Data-Bowl/master/Data/games.csv" file.plays <- "https://raw.githubusercontent.com/nfl-football-ops/Big-Data-Bowl/master/Data/plays.csv" csv_list <- list.files(path= "Data", pattern="tracking_g...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/stable.stage.R \name{stable.stage} \alias{stable.stage} \title{Stable stage distribution} \usage{ stable.stage(A) } \arguments{ \item{A}{A projection matrix} } \value{ A vector containing the stable stage distribution } \description{ Calculat...
/man/stable.stage.Rd
no_license
cstubben/popbio
R
false
true
773
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/stable.stage.R \name{stable.stage} \alias{stable.stage} \title{Stable stage distribution} \usage{ stable.stage(A) } \arguments{ \item{A}{A projection matrix} } \value{ A vector containing the stable stage distribution } \description{ Calculat...
# # originally by Ruben Garrido-Oter # garridoo@mpipz.mpg.de # options(warn=-1) rm(list=ls()) # load plotting functions source("plotting_functions.R") # directories results.dir <- "/biodata/dep_psl/grp_psl/garridoo/lotus/454/results/all/" figures.dir <- "/biodata/dep_psl/grp_psl/garridoo/lotus/454/figures/all/" ...
/statistical_analyses/enrichment_analyses.R
no_license
hzi-bifo/lotus
R
false
false
2,396
r
# # originally by Ruben Garrido-Oter # garridoo@mpipz.mpg.de # options(warn=-1) rm(list=ls()) # load plotting functions source("plotting_functions.R") # directories results.dir <- "/biodata/dep_psl/grp_psl/garridoo/lotus/454/results/all/" figures.dir <- "/biodata/dep_psl/grp_psl/garridoo/lotus/454/figures/all/" ...
#Data revenue <- c(14574.49, 7606.46, 8611.41, 9175.41, 8058.65, 8105.44, 11496.28, 9766.09, 10305.32, 14379.96, 10713.97, 15433.50) expenses <- c(12051.82, 5695.07, 12319.20, 12089.72, 8658.57, 840.20, 3285.73, 5821.12, 6976.93, 16618.61, 10054.37, 3803.96) #Solution #Calculate Profit As The Differences Between Reven...
/2.Fundamental of R/Section3-Homework-Data.R/Section3-Homework-FillInTheBlanks from SDS.R
permissive
pragyapradhan/r-programming
R
false
false
1,868
r
#Data revenue <- c(14574.49, 7606.46, 8611.41, 9175.41, 8058.65, 8105.44, 11496.28, 9766.09, 10305.32, 14379.96, 10713.97, 15433.50) expenses <- c(12051.82, 5695.07, 12319.20, 12089.72, 8658.57, 840.20, 3285.73, 5821.12, 6976.93, 16618.61, 10054.37, 3803.96) #Solution #Calculate Profit As The Differences Between Reven...
rankall <- function(outcome, num = "best") { data_outcomes <- read.csv("outcome-of-care-measures.csv", colClasses = "character") outcomes <- c("heart attack", "heart failure", "pneumonia") if (is.element(outcome, outcomes) == FALSE) { stop("invalid outcome") } ##select relevant col...
/Rprogramming/Assignment3/data/rankall.R
no_license
hazam/datasciencecoursera
R
false
false
1,396
r
rankall <- function(outcome, num = "best") { data_outcomes <- read.csv("outcome-of-care-measures.csv", colClasses = "character") outcomes <- c("heart attack", "heart failure", "pneumonia") if (is.element(outcome, outcomes) == FALSE) { stop("invalid outcome") } ##select relevant col...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/comprehend_operations.R \name{comprehend_list_targeted_sentiment_detection_jobs} \alias{comprehend_list_targeted_sentiment_detection_jobs} \title{Gets a list of targeted sentiment detection jobs that you have submitted} \usage{ comprehend_lis...
/cran/paws.machine.learning/man/comprehend_list_targeted_sentiment_detection_jobs.Rd
permissive
paws-r/paws
R
false
true
999
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/comprehend_operations.R \name{comprehend_list_targeted_sentiment_detection_jobs} \alias{comprehend_list_targeted_sentiment_detection_jobs} \title{Gets a list of targeted sentiment detection jobs that you have submitted} \usage{ comprehend_lis...
library(data.table) library(dplyr) library(purrr) library(stringr) library(ggplot2) library(ggforce) source("00_variability_multisource.R") # Example ----------------------------------------------------------------- # This section provides an artificial example that is roughly based on the # real structure of Vin...
/analysis/HES/01_msv_hes.R
no_license
HDRUK/CPRD_HES_variability
R
false
false
2,569
r
library(data.table) library(dplyr) library(purrr) library(stringr) library(ggplot2) library(ggforce) source("00_variability_multisource.R") # Example ----------------------------------------------------------------- # This section provides an artificial example that is roughly based on the # real structure of Vin...
library(deal) ### Name: jointprior ### Title: Calculates the joint prior distribution ### Aliases: jointprior ### Keywords: models ### ** Examples data(rats) rats.nw <- network(rats) rats.prior <- jointprior(rats.nw,12) ## Not run: savenet(rats.nw,file("rats.net")) ## Not run: rats.nw <- readnet(file("rats.net"...
/data/genthat_extracted_code/deal/examples/jointprior.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
418
r
library(deal) ### Name: jointprior ### Title: Calculates the joint prior distribution ### Aliases: jointprior ### Keywords: models ### ** Examples data(rats) rats.nw <- network(rats) rats.prior <- jointprior(rats.nw,12) ## Not run: savenet(rats.nw,file("rats.net")) ## Not run: rats.nw <- readnet(file("rats.net"...
## 3. Ranking hospitals by outcome in a state rankhospital <- function(state, outcome, num = "best") { ## Read outcome data ## I replace "Not Available" with NA to avoid errors data <- read.csv("outcome-of-care-measures.csv",colClasses = 'character' , header =TRUE, na.strings = "Not Available") ...
/rankhospital.R
no_license
msalcedo1/datasciencecoursera
R
false
false
2,174
r
## 3. Ranking hospitals by outcome in a state rankhospital <- function(state, outcome, num = "best") { ## Read outcome data ## I replace "Not Available" with NA to avoid errors data <- read.csv("outcome-of-care-measures.csv",colClasses = 'character' , header =TRUE, na.strings = "Not Available") ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/chk-not-null.R \name{chk_not_null} \alias{chk_not_null} \alias{vld_not_null} \title{Check not NULL} \usage{ chk_not_null(x, x_name = NULL) vld_not_null(x) } \arguments{ \item{x}{The object to check.} \item{x_name}{A string of the name of ob...
/man/chk_not_null.Rd
permissive
poissonconsulting/chk
R
false
true
904
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/chk-not-null.R \name{chk_not_null} \alias{chk_not_null} \alias{vld_not_null} \title{Check not NULL} \usage{ chk_not_null(x, x_name = NULL) vld_not_null(x) } \arguments{ \item{x}{The object to check.} \item{x_name}{A string of the name of ob...
## Pair of functions are executed such that we can cache the inverse of a matrix ## The goal here is to save time by caching the inverse computation of matrix ## makeCacheMatix creates the special matrix object that caches its inverse ## x is the square invertible matrix. While the return is a list of functions ## i.e...
/cachematrix.R
no_license
rovin/ProgrammingAssignment2
R
false
false
1,154
r
## Pair of functions are executed such that we can cache the inverse of a matrix ## The goal here is to save time by caching the inverse computation of matrix ## makeCacheMatix creates the special matrix object that caches its inverse ## x is the square invertible matrix. While the return is a list of functions ## i.e...
#' Automatic Machine Learning #' #' The Automatic Machine Learning (AutoML) function automates the supervised machine learning model training process. #' The current version of AutoML trains and cross-validates a Random Forest, an Extremely-Randomized Forest, #' a random grid of Gradient Boosting Machines (GBMs), a ran...
/h2o-r/h2o-package/R/automl.R
permissive
jancijen/h2o-3
R
false
false
29,117
r
#' Automatic Machine Learning #' #' The Automatic Machine Learning (AutoML) function automates the supervised machine learning model training process. #' The current version of AutoML trains and cross-validates a Random Forest, an Extremely-Randomized Forest, #' a random grid of Gradient Boosting Machines (GBMs), a ran...
#' Choose rows by position #' #' Choose rows by their ordinal position in a data.table. Grouped data.tables use the ordinal position within the group. #' #' @param .df A data.frame or data.table #' @param rows Integer row values. Provide either positive values to keep, or negative values to drop. The values provided mu...
/R/slice.R
permissive
Techwrekfix/tidytable
R
false
false
5,283
r
#' Choose rows by position #' #' Choose rows by their ordinal position in a data.table. Grouped data.tables use the ordinal position within the group. #' #' @param .df A data.frame or data.table #' @param rows Integer row values. Provide either positive values to keep, or negative values to drop. The values provided mu...
svc <- paws::signer() test_that("list_signing_jobs", { expect_error(svc$list_signing_jobs(), NA) }) test_that("list_signing_platforms", { expect_error(svc$list_signing_platforms(), NA) }) test_that("list_signing_profiles", { expect_error(svc$list_signing_profiles(), NA) })
/cran/paws.internet.of.things/tests/testthat/test_signer.R
permissive
paws-r/paws
R
false
false
283
r
svc <- paws::signer() test_that("list_signing_jobs", { expect_error(svc$list_signing_jobs(), NA) }) test_that("list_signing_platforms", { expect_error(svc$list_signing_platforms(), NA) }) test_that("list_signing_profiles", { expect_error(svc$list_signing_profiles(), NA) })
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common new_handlers new_service set_config NULL #' AWS CodeStar #' #' @description #' This is the API reference for AWS CodeStar. This reference provides #' descriptions of the operations and data types for the AWS CodeStar API #' alon...
/cran/paws.developer.tools/R/codestar_service.R
permissive
ryanb8/paws
R
false
false
5,665
r
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common new_handlers new_service set_config NULL #' AWS CodeStar #' #' @description #' This is the API reference for AWS CodeStar. This reference provides #' descriptions of the operations and data types for the AWS CodeStar API #' alon...
## save histograms of daily data as matrix mat <- matrix(nrow=length(dateList), ncol=80) # dateList : list of dates for(i in 1:length(dateList) ) { ss <- subset(df, df$date == dateList[i] ) mat[i,] <- hist(ss$on, breaks=seq(0,400,by=5), plot=FALSE)$counts # or, $density #print(paste(dateList[i...
/histogram_to_matrix.r
no_license
sreetamadas/sample_R_code
R
false
false
508
r
## save histograms of daily data as matrix mat <- matrix(nrow=length(dateList), ncol=80) # dateList : list of dates for(i in 1:length(dateList) ) { ss <- subset(df, df$date == dateList[i] ) mat[i,] <- hist(ss$on, breaks=seq(0,400,by=5), plot=FALSE)$counts # or, $density #print(paste(dateList[i...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/uwBarPlot.R \name{uwBarPlot} \alias{uwBarPlot} \title{Bar Plots for various conditions} \usage{ uwBarPlot( demoData, demoBarPlot = FALSE, trxName = NULL, factorName, factorNames = NULL, cex.names = 1, pBeside = TRUE, pHoriz = ...
/man/uwBarPlot.Rd
no_license
jbirstler/biostatrpts
R
false
true
9,397
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/uwBarPlot.R \name{uwBarPlot} \alias{uwBarPlot} \title{Bar Plots for various conditions} \usage{ uwBarPlot( demoData, demoBarPlot = FALSE, trxName = NULL, factorName, factorNames = NULL, cex.names = 1, pBeside = TRUE, pHoriz = ...
#-------------------------------------# # graphique des groupes d'espece 1 et # # 2 soit GA et GB # # pour toutes les analyses # # lionel.bonsacquet # #-------------------------------------# Fct_Graph_GA_GB_tout_tiff<-function(Detection="D1",couleur_noir="couleur", ...
/R/Graph_GA_GB_tout_tiff.R
permissive
bonsacquet-l/sim-com
R
false
false
54,804
r
#-------------------------------------# # graphique des groupes d'espece 1 et # # 2 soit GA et GB # # pour toutes les analyses # # lionel.bonsacquet # #-------------------------------------# Fct_Graph_GA_GB_tout_tiff<-function(Detection="D1",couleur_noir="couleur", ...
#' Stablet andel av valgt variabel pr grupperingsvariabel #' #' Denne funksjonen andeler for valgt variabel og plotter de stablet per grupperingsvariabel (vanligvis sykehus). #' #' Her kan detaljer skrives #' #' @inheritParams FigAndeler #' #' @return En figur med gjennomsnitt av valgt variabel pr grupperingsvariabel #...
/R/NorgastFigAndelStabelGrVarAarsrapp.R
no_license
Rapporteket/norgast
R
false
false
8,345
r
#' Stablet andel av valgt variabel pr grupperingsvariabel #' #' Denne funksjonen andeler for valgt variabel og plotter de stablet per grupperingsvariabel (vanligvis sykehus). #' #' Her kan detaljer skrives #' #' @inheritParams FigAndeler #' #' @return En figur med gjennomsnitt av valgt variabel pr grupperingsvariabel #...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data_interface.R \name{spark_read_delta} \alias{spark_read_delta} \title{Read from Delta Lake into a Spark DataFrame.} \usage{ spark_read_delta( sc, path, name = NULL, version = NULL, timestamp = NULL, options = list(), repartit...
/man/spark_read_delta.Rd
permissive
edgararuiz/sparklyr
R
false
true
2,307
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data_interface.R \name{spark_read_delta} \alias{spark_read_delta} \title{Read from Delta Lake into a Spark DataFrame.} \usage{ spark_read_delta( sc, path, name = NULL, version = NULL, timestamp = NULL, options = list(), repartit...
#' eplusr: A Toolkit for Using EnergyPlus in R #' #' @details eplusr provides a rich toolkit of using EnergyPlus directly in #' R, which enables programmatic navigation, modification of EnergyPlus models #' and makes it less painful to do parametric simulations and analysis. #' #' @section Features: #' #' - Download an...
/R/eplusr.R
permissive
rainysunday0728/eplusr
R
false
false
8,194
r
#' eplusr: A Toolkit for Using EnergyPlus in R #' #' @details eplusr provides a rich toolkit of using EnergyPlus directly in #' R, which enables programmatic navigation, modification of EnergyPlus models #' and makes it less painful to do parametric simulations and analysis. #' #' @section Features: #' #' - Download an...
setwd("~/MEGA/MEGAsync/Academia/R course") load("pokemon_data.Rda") ################ # # Creating graphs # ################ ### Histogram ### ### Bar plot + styling a plot### # List of available colors: # http://www.stat.columbia.edu/~tzheng/files/Rcolor.pdf ### Scatter plot + adding more elements to plot##...
/cont/R/RCourse_03graphs.R
no_license
nicolasmotz/nicolasmotz.github.io
R
false
false
3,443
r
setwd("~/MEGA/MEGAsync/Academia/R course") load("pokemon_data.Rda") ################ # # Creating graphs # ################ ### Histogram ### ### Bar plot + styling a plot### # List of available colors: # http://www.stat.columbia.edu/~tzheng/files/Rcolor.pdf ### Scatter plot + adding more elements to plot##...
idig_count_media <- function(rq=FALSE, mq=FALSE){ # This passes through an empty list to get around idig_POST's requirement that rq be present # For full API compatability, the post should be completely empty if the user doesn't specify # anything query <- list() if (inherits(rq, "list") && length(rq) >...
/R/idig_count_media.R
permissive
fmichonneau/ridigbio
R
false
false
609
r
idig_count_media <- function(rq=FALSE, mq=FALSE){ # This passes through an empty list to get around idig_POST's requirement that rq be present # For full API compatability, the post should be completely empty if the user doesn't specify # anything query <- list() if (inherits(rq, "list") && length(rq) >...
c("hello","work","good") c str(c("hello","work","good")) c("hello","work","good",1:7,x,pi>3) str(c("hello","work","good",1:7,x,pi>3)) x <-list(vergetable="cabbage",number=pi, series=2:4,telling=pi>3) str(x) x[3] str(x[3]) x[[3]] x<-list(vergetable=list("cabbage","apple","breat") number=list(c(pi,0,2.14,NA)), ...
/script/vector 2017-6-7.R
no_license
xiaolinuio/R_tidyverse_Starter-xl-2017-6-6
R
false
false
391
r
c("hello","work","good") c str(c("hello","work","good")) c("hello","work","good",1:7,x,pi>3) str(c("hello","work","good",1:7,x,pi>3)) x <-list(vergetable="cabbage",number=pi, series=2:4,telling=pi>3) str(x) x[3] str(x[3]) x[[3]] x<-list(vergetable=list("cabbage","apple","breat") number=list(c(pi,0,2.14,NA)), ...
suppressPackageStartupMessages({ library(data.table) library(SingleCellExperiment) library(dplyr) library(curatedOvarianData) library(yaml) }) params <- read_yaml("../../config.yml") data_path <- params$data_path local_data_path <- params$local_data_path # Load in microarray data data("TCGA_eset") tcga <- e...
/scripts/preprocess_data/process_TCGA_microarray_expression.R
permissive
greenelab/hgsoc_deconvolution
R
false
false
1,602
r
suppressPackageStartupMessages({ library(data.table) library(SingleCellExperiment) library(dplyr) library(curatedOvarianData) library(yaml) }) params <- read_yaml("../../config.yml") data_path <- params$data_path local_data_path <- params$local_data_path # Load in microarray data data("TCGA_eset") tcga <- e...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RegionSetDB-class.R \docType{methods} \name{dbDir,RegionSetDB-method} \alias{dbDir,RegionSetDB-method} \alias{dbDir} \title{dbDir-methods} \usage{ \S4method{dbDir}{RegionSetDB}(.object) } \arguments{ \item{.object}{\code{\linkS4class{RegionSe...
/man/dbDir-RegionSetDB-method.Rd
no_license
demuellae/muBioAnnotatR
R
false
true
453
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RegionSetDB-class.R \docType{methods} \name{dbDir,RegionSetDB-method} \alias{dbDir,RegionSetDB-method} \alias{dbDir} \title{dbDir-methods} \usage{ \S4method{dbDir}{RegionSetDB}(.object) } \arguments{ \item{.object}{\code{\linkS4class{RegionSe...
<<<<<<< HEAD # DY note: # This script should be run fourth # Requires: cses_cv_data.csv # Outputs: cv_data_analysed.csv # This script calculates the continuous consistency scores for each participant library(magrittr) library(reshape2) library(dplyr) library(psych) library(ggplot2) rm(list ...
/4 - Calculating Continuous Consistency.R
no_license
davidjyoung/ContinuousConsistentVoting
R
false
false
13,000
r
<<<<<<< HEAD # DY note: # This script should be run fourth # Requires: cses_cv_data.csv # Outputs: cv_data_analysed.csv # This script calculates the continuous consistency scores for each participant library(magrittr) library(reshape2) library(dplyr) library(psych) library(ggplot2) rm(list ...
# IDFG Deer GPS Data Cleanup # 11/21/2014 # Load packages and data library(stringr) library(sp) library(rgdal) deer <- read.csv("F:/IDFG/GPSdeerlocs122013/GPSdeerlocs122013.csv", as.is = T) # as.is = T keeps characters and integers not factors # sp and rgdal for spatial stuff #########################################...
/GPS Collars/Examining IDFG records/IDFG Deer cleanup.R
no_license
ajgeldersma/CameraTrapStudy
R
false
false
3,114
r
# IDFG Deer GPS Data Cleanup # 11/21/2014 # Load packages and data library(stringr) library(sp) library(rgdal) deer <- read.csv("F:/IDFG/GPSdeerlocs122013/GPSdeerlocs122013.csv", as.is = T) # as.is = T keeps characters and integers not factors # sp and rgdal for spatial stuff #########################################...
# Get road network daneroads = roads(state = 'WI', county = 'DANE') |> st_transform(crs(shapefile.utm), year = 2021) columbiaroads = roads(state = 'WI', county = 'COLUMBIA') |> st_transform(crs(shapefile.utm), year = 2021) yahararoads = daneroads |> bind_rows(columbiaroads) # Get land use function getLandUse <- funct...
/Code/Table1_Landuse.R
no_license
LinneaRock/MendotaWatershed_SalinityRegimes
R
false
false
3,725
r
# Get road network daneroads = roads(state = 'WI', county = 'DANE') |> st_transform(crs(shapefile.utm), year = 2021) columbiaroads = roads(state = 'WI', county = 'COLUMBIA') |> st_transform(crs(shapefile.utm), year = 2021) yahararoads = daneroads |> bind_rows(columbiaroads) # Get land use function getLandUse <- funct...
testlist <- list(Rs = numeric(0), atmp = numeric(0), relh = numeric(0), temp = c(1.72348146030302e+218, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)) result <- do.call(meteor:::ET0_Makkink,testlist) str(result)
/meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615856847-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
260
r
testlist <- list(Rs = numeric(0), atmp = numeric(0), relh = numeric(0), temp = c(1.72348146030302e+218, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)) result <- do.call(meteor:::ET0_Makkink,testlist) str(result)
#' Constructor for \code{MinDistParam} class #' #' The \code{MinDistParam} class contains parameters used for the #' segmentation implemented in the \code{DNAcopy} package, parameters #' extracted from the \code{PennCNV} HMM such as parent-offspring #' transmission parobabilities (see citation below), and initial #' va...
/R/methods-MinDistParam.R
no_license
rscharpf/MinimumDistance
R
false
false
4,657
r
#' Constructor for \code{MinDistParam} class #' #' The \code{MinDistParam} class contains parameters used for the #' segmentation implemented in the \code{DNAcopy} package, parameters #' extracted from the \code{PennCNV} HMM such as parent-offspring #' transmission parobabilities (see citation below), and initial #' va...
########################################################################## ### ### R file for the FASD Synthesis systematic review. ### ### ### INSTRUCTIONS: ### Work through the sections below, and complete the information. There ### are three types of information: ### - Text: this can be any content; has to be in...
/40-extraction-scripts/final-extractions-quantitative/Adeyiga 2014.r
no_license
fetal-alcohol-spectrum-disorders/determinants-of-alcohol-use-in-pregnant-women
R
false
false
65,227
r
########################################################################## ### ### R file for the FASD Synthesis systematic review. ### ### ### INSTRUCTIONS: ### Work through the sections below, and complete the information. There ### are three types of information: ### - Text: this can be any content; has to be in...
ui <- fluidPage( #Set up title titlePanel("COVID-19 potential risk mapper"), #Set up sidebar for user inputs sidebarLayout( sidebarPanel("User inputs", textInput("userLA" , "Select LA or LAs to map. Separate multiple LAs with :" , "Sheffield"), textInpu...
/ui.R
no_license
VictimOfMaths/COVIDmapper
R
false
false
2,407
r
ui <- fluidPage( #Set up title titlePanel("COVID-19 potential risk mapper"), #Set up sidebar for user inputs sidebarLayout( sidebarPanel("User inputs", textInput("userLA" , "Select LA or LAs to map. Separate multiple LAs with :" , "Sheffield"), textInpu...
#CFARS Phase 2 white paper plots (Results) #2020-07-27 #install and load packages. #install.packages("data.table") #install.packages("openxlsx") library(data.table) library(openxlsx) #### Set Up File Paths #### #set working directory wd <- 'C:/Users/05640/Documents/IndustryTasks/CFARS_SS/White Paper' #...
/Phase 2 Analysis/CFARS Phase2 Results plots 2020-07-27.R
no_license
AEArntsen/CFARS-Site-Suitability-Phase-3-Tool
R
false
false
14,649
r
#CFARS Phase 2 white paper plots (Results) #2020-07-27 #install and load packages. #install.packages("data.table") #install.packages("openxlsx") library(data.table) library(openxlsx) #### Set Up File Paths #### #set working directory wd <- 'C:/Users/05640/Documents/IndustryTasks/CFARS_SS/White Paper' #...
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Correlation/ovary.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.03,family="gaussian",standardize=FALSE) sink('./ovary_014.txt',append=TRUE) ...
/Model/EN/Correlation/ovary/ovary_014.R
no_license
esbgkannan/QSMART
R
false
false
349
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Correlation/ovary.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.03,family="gaussian",standardize=FALSE) sink('./ovary_014.txt',append=TRUE) ...
\name{getEnrich2P} \alias{getEnrich2P} \title{ Get permutation p-value of enrichment test II } \description{ This function gets permutation p-value of enrichment test II from pre-generated distribution table of 10,000 permutations. } \usage{ getEnrich2P(setP=NULL, setType=2, cut_score=0.05) } ...
/man/getEnrich2P.Rd
no_license
meiprojects/snpGeneSets
R
false
false
3,637
rd
\name{getEnrich2P} \alias{getEnrich2P} \title{ Get permutation p-value of enrichment test II } \description{ This function gets permutation p-value of enrichment test II from pre-generated distribution table of 10,000 permutations. } \usage{ getEnrich2P(setP=NULL, setType=2, cut_score=0.05) } ...
library(testthat) library(biclustermd) test_check("biclustermd")
/tests/testthat.R
no_license
jreisner/biclustermd
R
false
false
66
r
library(testthat) library(biclustermd) test_check("biclustermd")
#' Density plot of all samples #' #' Estimation the counts density for each sample #' #' @param counts \code{matrix} of counts #' @param group factor vector of the condition from which each sample belongs #' @param col colors of the curves (one per biological condition) #' @param outfile TRUE to export the figure in a ...
/R/densityPlot.R
no_license
PF2-pasteur-fr/SARTools
R
false
false
1,491
r
#' Density plot of all samples #' #' Estimation the counts density for each sample #' #' @param counts \code{matrix} of counts #' @param group factor vector of the condition from which each sample belongs #' @param col colors of the curves (one per biological condition) #' @param outfile TRUE to export the figure in a ...
testlist <- list(Rs = numeric(0), atmp = numeric(0), relh = numeric(0), 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, -4.05003163986346e-308, -3.526018204...
/meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615854259-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
947
r
testlist <- list(Rs = numeric(0), atmp = numeric(0), relh = numeric(0), 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, -4.05003163986346e-308, -3.526018204...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kp_ratings_tables.R \name{kp_kpoy} \alias{kp_kpoy} \title{Get KPoY Leaders Tables} \usage{ kp_kpoy(year = most_recent_mbb_season()) } \arguments{ \item{year}{Year of data to pull (earliest year of data available: 2011)} } \description{ Get KP...
/man/kp_kpoy.Rd
permissive
mrcaseb/hoopR
R
false
true
405
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kp_ratings_tables.R \name{kp_kpoy} \alias{kp_kpoy} \title{Get KPoY Leaders Tables} \usage{ kp_kpoy(year = most_recent_mbb_season()) } \arguments{ \item{year}{Year of data to pull (earliest year of data available: 2011)} } \description{ Get KP...
options(warn=-1) library(shiny) library(ggplot2) setwd("C:\\Carlson MSBA\\Summer\\Analytics for competitive advantage\\For IDsc") #Country Level model_data <- read.csv("model_data.csv") model_data <- model_data[(is.na(model_data$Country)) | (model_data$Country == 'US'),] model_data$Revenue <- model_data$Revenu...
/server.R
no_license
ShivaRakshithBM/Travel-Management-Company
R
false
false
12,283
r
options(warn=-1) library(shiny) library(ggplot2) setwd("C:\\Carlson MSBA\\Summer\\Analytics for competitive advantage\\For IDsc") #Country Level model_data <- read.csv("model_data.csv") model_data <- model_data[(is.na(model_data$Country)) | (model_data$Country == 'US'),] model_data$Revenue <- model_data$Revenu...
library(data.table) library(tictoc) library(tm) library(NLP) library(lda) library(dplyr) library(Rtsne) library(ggplot2) library(tidytext) library(stringr) library(openxlsx) # ロード --------------------------------------------------------------------- setwd("~/Genome/PCAWG") pos_vec = fread( "position_lda_vector.csv"...
/extension/genome_analysis_LDA_tSNE_ex.R
no_license
azmyn/genome
R
false
false
13,024
r
library(data.table) library(tictoc) library(tm) library(NLP) library(lda) library(dplyr) library(Rtsne) library(ggplot2) library(tidytext) library(stringr) library(openxlsx) # ロード --------------------------------------------------------------------- setwd("~/Genome/PCAWG") pos_vec = fread( "position_lda_vector.csv"...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/roll.R \name{roll} \alias{roll} \title{roll()} \usage{ roll(die, times = 1) } \arguments{ \item{die}{object of class 'die'} \item{times}{number of times to roll the die (default value of 1)} } \value{ rolls: vector with outputs of the rolls;...
/dieroller/man/roll.Rd
no_license
sizhuocindy-liu/stat133
R
false
true
608
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/roll.R \name{roll} \alias{roll} \title{roll()} \usage{ roll(die, times = 1) } \arguments{ \item{die}{object of class 'die'} \item{times}{number of times to roll the die (default value of 1)} } \value{ rolls: vector with outputs of the rolls;...
powerdata <- read.csv("household_power_consumption.txt",header = TRUE, sep=";") subpowerdata <- powerdata[powerdata$Date=="2/2/2007" | powerdata$Date=="1/2/2007",] pwr <- (as.numeric(as.character(subpowerdata$Global_active_power))) png("plot1.png", width=480, height=480) hist(pwr,col="red",main="Global Active Power", x...
/plot1.R
no_license
nanashi18/ExData_Plotting1
R
false
false
368
r
powerdata <- read.csv("household_power_consumption.txt",header = TRUE, sep=";") subpowerdata <- powerdata[powerdata$Date=="2/2/2007" | powerdata$Date=="1/2/2007",] pwr <- (as.numeric(as.character(subpowerdata$Global_active_power))) png("plot1.png", width=480, height=480) hist(pwr,col="red",main="Global Active Power", x...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/connect_operations.R \name{connect_create_vocabulary} \alias{connect_create_vocabulary} \title{Creates a custom vocabulary associated with your Amazon Connect instance} \usage{ connect_create_vocabulary( ClientToken = NULL, InstanceId, ...
/cran/paws.customer.engagement/man/connect_create_vocabulary.Rd
permissive
paws-r/paws
R
false
true
2,530
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/connect_operations.R \name{connect_create_vocabulary} \alias{connect_create_vocabulary} \title{Creates a custom vocabulary associated with your Amazon Connect instance} \usage{ connect_create_vocabulary( ClientToken = NULL, InstanceId, ...
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = c(3.97314911878724e-307, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = c(1.46950620900256e+302, 4.11932782999429e-175, -3.8...
/meteor/inst/testfiles/ET0_PriestleyTaylor/AFL_ET0_PriestleyTaylor/ET0_PriestleyTaylor_valgrind_files/1615843518-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
2,232
r
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = c(3.97314911878724e-307, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = c(1.46950620900256e+302, 4.11932782999429e-175, -3.8...
c940badbc8f8612aea8e01dcd1c6f421 incrementer-enc03-uniform-depth-23.qdimacs 14425 37509
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/A1/Database/Miller-Marin/incrementer-encoder/incrementer-enc03-uniform-depth-23/incrementer-enc03-uniform-depth-23.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
87
r
c940badbc8f8612aea8e01dcd1c6f421 incrementer-enc03-uniform-depth-23.qdimacs 14425 37509
## Extract identity and sample information from seurat object to determine the number of cells per cluster per sample library(Seurat) library(cowplot) library(tidyverse) library(metap) library(rio) library(enrichR) #load data #previously was using seurat_integrated_12PC_res_0.3_Hahn.rds, but now I decided to use seurat...
/scripts/05_clustering-QC.R
no_license
msadman-sakib/aging-mice-snRNAseq
R
false
false
10,891
r
## Extract identity and sample information from seurat object to determine the number of cells per cluster per sample library(Seurat) library(cowplot) library(tidyverse) library(metap) library(rio) library(enrichR) #load data #previously was using seurat_integrated_12PC_res_0.3_Hahn.rds, but now I decided to use seurat...
### MULTINOMIAL LOGISTIC REGRESSION ### # Analysis for "Functional Traits Provide New Insight into Recovery and Succession at Deep-sea Hydrothermal Vents" # Lauren Dykman # August, 2020 # Uses multinomial logistic regression in the package "nnet" to calculate coefficients and deviance for the relative changes in moda...
/FD_EPR_Multinom.R
permissive
ldykman/FD_EPR
R
false
false
7,923
r
### MULTINOMIAL LOGISTIC REGRESSION ### # Analysis for "Functional Traits Provide New Insight into Recovery and Succession at Deep-sea Hydrothermal Vents" # Lauren Dykman # August, 2020 # Uses multinomial logistic regression in the package "nnet" to calculate coefficients and deviance for the relative changes in moda...
#---- exploring data stats nrow(stats) ncol(stats) head(stats) tail(stats) str(stats) summary(stats) #------ using the $ sign stats head(stats) stats[3,3] stats[3,'Birth.rate'] stats$Internet.users stats$Internet.users[2] stats[,'Internet.users'] levels(stats$Income.Group) #----- basic operations with a DF stats[...
/basic_operations_with_a_data_frame.R
no_license
k112b/Basics
R
false
false
988
r
#---- exploring data stats nrow(stats) ncol(stats) head(stats) tail(stats) str(stats) summary(stats) #------ using the $ sign stats head(stats) stats[3,3] stats[3,'Birth.rate'] stats$Internet.users stats$Internet.users[2] stats[,'Internet.users'] levels(stats$Income.Group) #----- basic operations with a DF stats[...
source("packages.R") nb.grid <- readRDS("neuroblastoma.grid.rds") fold.dt <- nb.grid[n.grid==min(n.grid), .(profile.id, chromosome)] n.folds <- 10 set.seed(1) fold.dt[, fold := sample(rep(1:n.folds, l=.N))] data(neuroblastomaProcessed, package="penaltyLearning") err.dt <- data.table(neuroblastomaProcessed$errors) err...
/neuroblastoma.cv.R
no_license
tdhock/changepoint-data-structure
R
false
false
1,989
r
source("packages.R") nb.grid <- readRDS("neuroblastoma.grid.rds") fold.dt <- nb.grid[n.grid==min(n.grid), .(profile.id, chromosome)] n.folds <- 10 set.seed(1) fold.dt[, fold := sample(rep(1:n.folds, l=.N))] data(neuroblastomaProcessed, package="penaltyLearning") err.dt <- data.table(neuroblastomaProcessed$errors) err...
# Coverage 1 r = 4 set.seed(123242) r.estNULL.4 <- ORTestFunction(dataRAND, rrIN = 1, period1, n1 = 1000, ratio = 4) save(r.estNULL.4, file = "nov18/r_estNULL_4_11072018.RData") set.seed(123242) r.est6.4 <- ORTestFunction(dataRAND, rrIN = 0.6, period1, n1 = 1000, ratio = 4) save(r.est6.4, file = "nov18/r_est6_4_1107201...
/cr_tnd/sandbox/coverage1_4.R
permissive
sdufault15/cr_tnd
R
false
false
346
r
# Coverage 1 r = 4 set.seed(123242) r.estNULL.4 <- ORTestFunction(dataRAND, rrIN = 1, period1, n1 = 1000, ratio = 4) save(r.estNULL.4, file = "nov18/r_estNULL_4_11072018.RData") set.seed(123242) r.est6.4 <- ORTestFunction(dataRAND, rrIN = 0.6, period1, n1 = 1000, ratio = 4) save(r.est6.4, file = "nov18/r_est6_4_1107201...
## ----init, message = FALSE---------------------------------------------------- library(BIGL) library(knitr) library(ggplot2) set.seed(12345) if (!requireNamespace("rmarkdown", quietly = TRUE) || !rmarkdown::pandoc_available("1.14")) { warning(call. = FALSE, "These vignettes assume rmarkdown and pandoc ve...
/inst/doc/analysis.R
no_license
cran/BIGL
R
false
false
11,227
r
## ----init, message = FALSE---------------------------------------------------- library(BIGL) library(knitr) library(ggplot2) set.seed(12345) if (!requireNamespace("rmarkdown", quietly = TRUE) || !rmarkdown::pandoc_available("1.14")) { warning(call. = FALSE, "These vignettes assume rmarkdown and pandoc ve...
print_dust_html <- function(x, ...) { #************************************************ #* 1. apply a function, if any is indicated #* 2. Perform any rounding #* 3. Bold #* 4. Italic #* 5. Spread to wide format for printing #* 6. Column Names #************************************************ # tabl...
/R/print_dust_html.R
no_license
dgrtwo/pixiedust
R
false
false
4,547
r
print_dust_html <- function(x, ...) { #************************************************ #* 1. apply a function, if any is indicated #* 2. Perform any rounding #* 3. Bold #* 4. Italic #* 5. Spread to wide format for printing #* 6. Column Names #************************************************ # tabl...
## [[file:e:/projects/confer/ps2012-07-KRUG_org_r/slide/ps2012-07-KRUG_org_R.org::*R%20Code%20block][R-Code-block:1]] set.seed(1) x1 <- rnorm(100) mean(x1) x1.sd <- sd(x1) ## R-Code-block:1 ends here ## [[file:e:/projects/confer/ps2012-07-KRUG_org_r/slide/ps2012-07-KRUG_org_R.org::*Evaluated%20R%20Code][Evaluated...
/src/ps2012-07-KRUG_org_R.R
no_license
berndweiss/ps2012-07-KRUG_org_r
R
false
false
2,925
r
## [[file:e:/projects/confer/ps2012-07-KRUG_org_r/slide/ps2012-07-KRUG_org_R.org::*R%20Code%20block][R-Code-block:1]] set.seed(1) x1 <- rnorm(100) mean(x1) x1.sd <- sd(x1) ## R-Code-block:1 ends here ## [[file:e:/projects/confer/ps2012-07-KRUG_org_r/slide/ps2012-07-KRUG_org_R.org::*Evaluated%20R%20Code][Evaluated...
sum=0; sq=0; res = 0; n = 100; sum = n*(n+1)/2; sq=(n*(n+1)*(2*n+1))/6; res=sum*sum-sq; print(res)
/sum of the square of 1st 10 natural number.R
no_license
lakhyaraj/DA_LAB_ASSIGNMENT
R
false
false
107
r
sum=0; sq=0; res = 0; n = 100; sum = n*(n+1)/2; sq=(n*(n+1)*(2*n+1))/6; res=sum*sum-sq; print(res)
#how to input file # By default, the file size limit is 5MB. It can be changed by # setting this option. Here we'll raise limit to 15MB. options(shiny.maxRequestSize = 15*1024^2) shinyServer(function(session, input, output) { #input data Dataset <- reactive({ infile=input$file1 if (is.null(input$fil...
/Old/server.r
no_license
powatm/ForecastingAnalytics
R
false
false
36,111
r
#how to input file # By default, the file size limit is 5MB. It can be changed by # setting this option. Here we'll raise limit to 15MB. options(shiny.maxRequestSize = 15*1024^2) shinyServer(function(session, input, output) { #input data Dataset <- reactive({ infile=input$file1 if (is.null(input$fil...
# k-Fold Cross Validation # Importing the dataset dataset = read.csv('Social_Network_Ads.csv') dataset = dataset[3:5] # Encoding the target feature as factor dataset$Purchased = factor(dataset$Purchased, levels = c(0, 1)) # Splitting the dataset into the Training set and Test set # install.packages('caTools') librar...
/Model Selection/k_fold_cross_validation.R
no_license
jyu13/ML-in-R
R
false
false
2,996
r
# k-Fold Cross Validation # Importing the dataset dataset = read.csv('Social_Network_Ads.csv') dataset = dataset[3:5] # Encoding the target feature as factor dataset$Purchased = factor(dataset$Purchased, levels = c(0, 1)) # Splitting the dataset into the Training set and Test set # install.packages('caTools') librar...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotNicelyTransitions.R \name{transitionCorrelationsJack} \alias{transitionCorrelationsJack} \title{Compute correlation matrix with jack} \usage{ transitionCorrelationsJack(dataX, distmethod = function(x) { cor(x, use = "pairwise.comple...
/man/transitionCorrelationsJack.Rd
no_license
LucasKook/SRMService
R
false
true
582
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotNicelyTransitions.R \name{transitionCorrelationsJack} \alias{transitionCorrelationsJack} \title{Compute correlation matrix with jack} \usage{ transitionCorrelationsJack(dataX, distmethod = function(x) { cor(x, use = "pairwise.comple...
#' @import xts #' @title Create asset id #' @description Creates a unique if from the tipo, emisora, and serie of an asset. Input may be vector but must all have the same length; #' if they are not, it will not neccesarily yield an error but undesired results may occur. #' @param tipo character vector of tipo #' @para...
/R/utils.R
no_license
optimist/inhouse
R
false
false
5,203
r
#' @import xts #' @title Create asset id #' @description Creates a unique if from the tipo, emisora, and serie of an asset. Input may be vector but must all have the same length; #' if they are not, it will not neccesarily yield an error but undesired results may occur. #' @param tipo character vector of tipo #' @para...
# ---------------------------------------------------- # AUTHOR: Emily Linebarger # PURPOSE: Map activities as part of results chain. # # DATE: Last updated November 2018. #----------------------------------------------------- #----------------------------------------------------- # Current issues to iron ou...
/results_chains/3_map_activities.r
no_license
ihmeuw/gf
R
false
false
1,225
r
# ---------------------------------------------------- # AUTHOR: Emily Linebarger # PURPOSE: Map activities as part of results chain. # # DATE: Last updated November 2018. #----------------------------------------------------- #----------------------------------------------------- # Current issues to iron ou...
testlist <- list(lims = structure(c(1.2136247081529e+132, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
/palm/inst/testfiles/pbc_distances/libFuzzer_pbc_distances/pbc_distances_valgrind_files/1612989063-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
1,293
r
testlist <- list(lims = structure(c(1.2136247081529e+132, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
# ------------------------------------------------------------------------- # En este ejemplo se usan datos artificiales (simulados) para mostrar # el efecto que tienen los hiper-parametros de un kernel polinomial # en una svm para regresion # ------------------------------------------------------------------------- ...
/svm/Animacion efecto hiperparam kernel poly.R
no_license
fhernanb/modelos-predictivos
R
false
false
1,911
r
# ------------------------------------------------------------------------- # En este ejemplo se usan datos artificiales (simulados) para mostrar # el efecto que tienen los hiper-parametros de un kernel polinomial # en una svm para regresion # ------------------------------------------------------------------------- ...
#Source Simulation code and required packages for analysis require(Rcpp) require(bpnreg) sourceCpp("Simulation/SamplingData.cpp") #Create vectors with population values B0I <- cos(seq(0, 355, by = 5)*(pi/180)) B0II <- sin(seq(0, 355, by = 5)*(pi/180)) B1I <- B0I B1II <- B0II sim <- 500 N <- 25 p <- 2 mu <- 0 sd <- 1 ...
/Simulation/SimulationAccuracy180911.R
no_license
joliencremers/IndicatorsPN
R
false
false
10,471
r
#Source Simulation code and required packages for analysis require(Rcpp) require(bpnreg) sourceCpp("Simulation/SamplingData.cpp") #Create vectors with population values B0I <- cos(seq(0, 355, by = 5)*(pi/180)) B0II <- sin(seq(0, 355, by = 5)*(pi/180)) B1I <- B0I B1II <- B0II sim <- 500 N <- 25 p <- 2 mu <- 0 sd <- 1 ...
## package sqldf is required to use read.csv.sql library(sqldf) ## Reading and loading data only from the dates 2007-02-01 and 2007-02-02 ## Read File Filtered by SQL EPC <- read.csv.sql("./ExData_Plotting1/household_power_consumption.txt", sql = "select * from file where Date = '1/2/2007' or Date = '2/2/2007' ", sep=...
/plot1.R
no_license
zouertani/ExData_Plotting1
R
false
false
884
r
## package sqldf is required to use read.csv.sql library(sqldf) ## Reading and loading data only from the dates 2007-02-01 and 2007-02-02 ## Read File Filtered by SQL EPC <- read.csv.sql("./ExData_Plotting1/household_power_consumption.txt", sql = "select * from file where Date = '1/2/2007' or Date = '2/2/2007' ", sep=...
library(shiny) library(dplyr) source('setup.R') shinyUI( fluidPage( titlePanel("COVID-19 Intelligent Forecasting"), sidebarLayout( sidebarPanel(title="Make selections", selectInput("Province_State", label = "State", lookup_state, ...
/KPMG Team/Dashboard/for later/ui.R
no_license
qmss-5052-fall-2020/class_project
R
false
false
1,021
r
library(shiny) library(dplyr) source('setup.R') shinyUI( fluidPage( titlePanel("COVID-19 Intelligent Forecasting"), sidebarLayout( sidebarPanel(title="Make selections", selectInput("Province_State", label = "State", lookup_state, ...
#' @importFrom magrittr %>% #' @export magrittr::`%>%` #' @importFrom lubridate ymd_hms #' @export lubridate::ymd_hms #' @importFrom lubridate ymd_hm #' @export lubridate::ymd_hm #' @importFrom lubridate ymd_h #' @export lubridate::ymd_h #' @importFrom lubridate ymd #' @export lubridate::ymd #' @impo...
/R/utils.R
no_license
cran/daqapo
R
false
false
2,113
r
#' @importFrom magrittr %>% #' @export magrittr::`%>%` #' @importFrom lubridate ymd_hms #' @export lubridate::ymd_hms #' @importFrom lubridate ymd_hm #' @export lubridate::ymd_hm #' @importFrom lubridate ymd_h #' @export lubridate::ymd_h #' @importFrom lubridate ymd #' @export lubridate::ymd #' @impo...
data(state) statedata = cbind(data.frame(state.x77), state.abb, state.area, state.center, state.division, state.name, state.region) str(statedata) # 1.1 plot(statedata$x, statedata$y) # 1.2 tapply(statedata$HS.Grad, statedata$state.region, mean) # 1.3 boxplot(statedata$Murder ~ statedata$state.region) # 1.4 subse...
/a24_state.R
no_license
mofas/r-note
R
false
false
874
r
data(state) statedata = cbind(data.frame(state.x77), state.abb, state.area, state.center, state.division, state.name, state.region) str(statedata) # 1.1 plot(statedata$x, statedata$y) # 1.2 tapply(statedata$HS.Grad, statedata$state.region, mean) # 1.3 boxplot(statedata$Murder ~ statedata$state.region) # 1.4 subse...
library(tidyverse) library(here) library(fs) freqtable_file <- dir_ls(here("data"), glob = "*freqtable.csv") stopifnot(length(freqtable_file) == 1) apt_freqtable <- read_csv(freqtable_file) ## apt_freqtable p <- ggplot(apt_freqtable, aes(x = Built, y = n)) + geom_col() ## p ggsave(here("figs", "built-barchart.p...
/R/03_barchart-packages-built.R
no_license
GPICCOL/homework
R
false
false
341
r
library(tidyverse) library(here) library(fs) freqtable_file <- dir_ls(here("data"), glob = "*freqtable.csv") stopifnot(length(freqtable_file) == 1) apt_freqtable <- read_csv(freqtable_file) ## apt_freqtable p <- ggplot(apt_freqtable, aes(x = Built, y = n)) + geom_col() ## p ggsave(here("figs", "built-barchart.p...
library(XML) getPop <- function() { #Get the population data from the Internet and parse it out #into a data.frame called Pop, then format it's columns theurl <- "http://www.usgovernmentspending.com/download_multi_year_1980_2013USb_14c2li101mcn_20s" tables <- readHTMLTable(theurl) n.rows <- unlist(lapply(ta...
/server.R
no_license
gmgyan/Predicting-US-Population
R
false
false
2,959
r
library(XML) getPop <- function() { #Get the population data from the Internet and parse it out #into a data.frame called Pop, then format it's columns theurl <- "http://www.usgovernmentspending.com/download_multi_year_1980_2013USb_14c2li101mcn_20s" tables <- readHTMLTable(theurl) n.rows <- unlist(lapply(ta...
shinyUI(fluidPage( titlePanel("foo"), sidebarLayout( sidebarPanel( selectInput("x", "X variable", names(iris)), selectInput("y", "Y variable", names(iris)), numericInput("size", "Size of points", 3, 1, 10, step = 2), checkboxInput("color", "Color By Species", TRUE) ), mainPanel( plotOutput("plot") ) ...
/shiny/eg2/ui.R
permissive
karthik/berkeley
R
false
false
327
r
shinyUI(fluidPage( titlePanel("foo"), sidebarLayout( sidebarPanel( selectInput("x", "X variable", names(iris)), selectInput("y", "Y variable", names(iris)), numericInput("size", "Size of points", 3, 1, 10, step = 2), checkboxInput("color", "Color By Species", TRUE) ), mainPanel( plotOutput("plot") ) ...
# Author : Ravi. M.B # Title: Prediction Algorithm # Date: 09-01-2018 # Load the necessary packages library(tm) library(stringi) library(stringr) library(data.table) library(ggplot2) library(RWeka) library(R.utils) library(dplyr) library(doParallel) library(magrittr) library(wordcloud) # The requis...
/script_ngram.R
no_license
RaviMohan19/PredictionAlgorithm
R
false
false
5,294
r
# Author : Ravi. M.B # Title: Prediction Algorithm # Date: 09-01-2018 # Load the necessary packages library(tm) library(stringi) library(stringr) library(data.table) library(ggplot2) library(RWeka) library(R.utils) library(dplyr) library(doParallel) library(magrittr) library(wordcloud) # The requis...
\name{leverage.ppm} \alias{leverage} \alias{leverage.ppm} \title{ Leverage Measure for Spatial Point Process Model } \description{ Computes the leverage measure for a fitted spatial point process model. } \usage{ leverage(model, \dots) \method{leverage}{ppm}(model, \dots, drop = FALSE, iScore=NULL, iHessi...
/man/leverage.ppm.Rd
no_license
spatstat/spatstat.core
R
false
false
4,211
rd
\name{leverage.ppm} \alias{leverage} \alias{leverage.ppm} \title{ Leverage Measure for Spatial Point Process Model } \description{ Computes the leverage measure for a fitted spatial point process model. } \usage{ leverage(model, \dots) \method{leverage}{ppm}(model, \dots, drop = FALSE, iScore=NULL, iHessi...
library(np) # 'dPredict' returns nonparametric density estimates at 'x' # 'npdensityObject' is the output object from 'npudens' # 'varName' is the variable name used in the formula in 'npudensbw' dPredict <- function(x, npdensityObject, varName){ newData <- data.frame(x) colnames(newData) <- varName return(predi...
/code/npDensEst.R
no_license
smwu/sievePower
R
false
false
1,056
r
library(np) # 'dPredict' returns nonparametric density estimates at 'x' # 'npdensityObject' is the output object from 'npudens' # 'varName' is the variable name used in the formula in 'npudensbw' dPredict <- function(x, npdensityObject, varName){ newData <- data.frame(x) colnames(newData) <- varName return(predi...
if (!requireNamespace("RSQLite", quietly=TRUE)) install.packages("RSQLite") require(RSQLite) if (!requireNamespace("data.table", quietly=TRUE)) install.packages("data.table") require(data.table) loc_scripts <- "E:/pcpp/PCPP" source(paste(loc_scripts, "0_PathsAndSettings.R", sep = "/")) setwd(working_directory) #db <-...
/old/dataprep_speciesTableMaker.r
no_license
PNHP/PCPP
R
false
false
2,483
r
if (!requireNamespace("RSQLite", quietly=TRUE)) install.packages("RSQLite") require(RSQLite) if (!requireNamespace("data.table", quietly=TRUE)) install.packages("data.table") require(data.table) loc_scripts <- "E:/pcpp/PCPP" source(paste(loc_scripts, "0_PathsAndSettings.R", sep = "/")) setwd(working_directory) #db <-...
library(RColorBrewer) library(VGAM) library(smatr) geneAnnotation = read.table("ensemblGenes_ensembl83_160307_MOD.txt", sep="\t", stringsAsFactors=FALSE, head=TRUE) rownames(geneAnnotation) = geneAnnotation[,1] allNames <- geneAnnotation[, "geneName"] names(allNames) <- geneAnnotation[,1] allNames[which(allNames == ""...
/code/additional_code_from_Frank/ASE/ASE_simulations_4repo.r
permissive
joshsbloom/eQTL_BYxRM
R
false
false
25,883
r
library(RColorBrewer) library(VGAM) library(smatr) geneAnnotation = read.table("ensemblGenes_ensembl83_160307_MOD.txt", sep="\t", stringsAsFactors=FALSE, head=TRUE) rownames(geneAnnotation) = geneAnnotation[,1] allNames <- geneAnnotation[, "geneName"] names(allNames) <- geneAnnotation[,1] allNames[which(allNames == ""...
## 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 } get <- function() x setInverse <- function(solveMatrix) inv <<- ...
/assignment
no_license
imaheshpandey/coursera-R
R
false
false
798
## 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 } get <- function() x setInverse <- function(solveMatrix) inv <<- ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mvn_tests.R \name{mvnmixMEMtest} \alias{mvnmixMEMtest} \title{mvnmixMEMtest} \usage{ mvnmixMEMtest(y, m = 2, an = 1, tauset = c(0.1, 0.3, 0.5), ninits = 10, crit.method = c("asy", "boot", "none"), nbtsp = 199, cl = NULL, parallel = 0.75, ...
/man/mvnmixMEMtest.Rd
no_license
kshimotsu/mvnMix
R
false
true
2,662
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mvn_tests.R \name{mvnmixMEMtest} \alias{mvnmixMEMtest} \title{mvnmixMEMtest} \usage{ mvnmixMEMtest(y, m = 2, an = 1, tauset = c(0.1, 0.3, 0.5), ninits = 10, crit.method = c("asy", "boot", "none"), nbtsp = 199, cl = NULL, parallel = 0.75, ...
context("fragvol_to_texmod") # fragvol_to_texmod ---- test_that("increasing volume of one size class", { expect_equal(c("by", "byv", "byx", NA), fragvol_to_texmod(data.frame(boulders = c(25, 48, 75, 95)))$texmod) expect_equal(c(NA, NA, NA, "by"), fragvol_to_texmod(data.frame(boulders = c(25, 48, 75, 95)))$lieutex...
/tests/testthat/test-texture.R
no_license
ncss-tech/aqp
R
false
false
1,212
r
context("fragvol_to_texmod") # fragvol_to_texmod ---- test_that("increasing volume of one size class", { expect_equal(c("by", "byv", "byx", NA), fragvol_to_texmod(data.frame(boulders = c(25, 48, 75, 95)))$texmod) expect_equal(c(NA, NA, NA, "by"), fragvol_to_texmod(data.frame(boulders = c(25, 48, 75, 95)))$lieutex...