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
`km` <- function(formula = ~1, design, response, covtype = "matern5_2", coef.trend = NULL, coef.cov = NULL, coef.var = NULL, nugget = NULL, nugget.estim = FALSE, noise.var = NULL, estim.method = "MLE", penalty = NULL, optim.method = "BFGS", lower = NULL, upper = NULL, pa...
/DiceKriging/R/km.R
no_license
ingted/R-Examples
R
false
false
7,463
r
`km` <- function(formula = ~1, design, response, covtype = "matern5_2", coef.trend = NULL, coef.cov = NULL, coef.var = NULL, nugget = NULL, nugget.estim = FALSE, noise.var = NULL, estim.method = "MLE", penalty = NULL, optim.method = "BFGS", lower = NULL, upper = NULL, pa...
local_disable_cache() describe("Compiling against theme", { # Example CSS that includes one variable, one function call, one mixin bs4_css <- ".foo { background-color: $primary; color: color-yiq($primary); width: 120px; height: 120px; }" resolved_css <- ".foo { background-color: #007bff; color: #fff; width: 120p...
/tests/testthat/test-bs4-deps.R
permissive
Andreas-Lafferte/bslib
R
false
false
1,161
r
local_disable_cache() describe("Compiling against theme", { # Example CSS that includes one variable, one function call, one mixin bs4_css <- ".foo { background-color: $primary; color: color-yiq($primary); width: 120px; height: 120px; }" resolved_css <- ".foo { background-color: #007bff; color: #fff; width: 120p...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/knitr.R \name{guess_knitr_output_format} \alias{guess_knitr_output_format} \title{Guess knitr output format} \usage{ guess_knitr_output_format() } \value{ 'html', 'latex', or something else. If we are not in a knitr document, returns an empty...
/man/guess_knitr_output_format.Rd
no_license
md0u80c9/huxtable
R
false
true
510
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/knitr.R \name{guess_knitr_output_format} \alias{guess_knitr_output_format} \title{Guess knitr output format} \usage{ guess_knitr_output_format() } \value{ 'html', 'latex', or something else. If we are not in a knitr document, returns an empty...
stopifnot(length(.dynLibs()) > 0) pkgload::load_all("empty") stopifnot(length(.dynLibs()) > 0) gc() stopifnot(length(.dynLibs()) > 0) pkgload::load_all("empty") stopifnot(length(.dynLibs()) > 0) gc() stopifnot(length(.dynLibs()) > 0)
/tests/wipe.R
no_license
r-lib/pkgload
R
false
false
234
r
stopifnot(length(.dynLibs()) > 0) pkgload::load_all("empty") stopifnot(length(.dynLibs()) > 0) gc() stopifnot(length(.dynLibs()) > 0) pkgload::load_all("empty") stopifnot(length(.dynLibs()) > 0) gc() stopifnot(length(.dynLibs()) > 0)
testlist <- list(id = NULL, id = NULL, booklet_id = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L...
/dexterMST/inst/testfiles/is_person_booklet_sorted/libFuzzer_is_person_booklet_sorted/is_person_booklet_sorted_valgrind_files/1612726097-test.R
no_license
akhikolla/updatedatatype-list1
R
false
false
456
r
testlist <- list(id = NULL, id = NULL, booklet_id = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L...
library(easyVerification) ### Name: veriApply ### Title: Apply Verification Metrics to Large Datasets ### Aliases: veriApply ### Keywords: utilities ### ** Examples tm <- toyarray() f.me <- veriApply('EnsMe', tm$fcst, tm$obs) ## find more examples and instructions in the vignette ## Not run: ##D devtools::install...
/data/genthat_extracted_code/easyVerification/examples/veriApply.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
467
r
library(easyVerification) ### Name: veriApply ### Title: Apply Verification Metrics to Large Datasets ### Aliases: veriApply ### Keywords: utilities ### ** Examples tm <- toyarray() f.me <- veriApply('EnsMe', tm$fcst, tm$obs) ## find more examples and instructions in the vignette ## Not run: ##D devtools::install...
# title: "Run KNN" # author: "Corne Oosthuizen - OSTAND005" # date: "29 June 2017" library(caret) library(FNN) train <- as.data.frame(readRDS('data/train_14_symAdd_pca.rds')) test <- as.data.frame(readRDS('data/test_14_symAdd_pca.rds')) names(train)[1] <- "label" train[,1] <- as.factor(train[,1]) names(test)[1] <- ...
/run_digits_knn_Y111.R
no_license
TurRil/STA5076Z-Supervised-Learning
R
false
false
1,093
r
# title: "Run KNN" # author: "Corne Oosthuizen - OSTAND005" # date: "29 June 2017" library(caret) library(FNN) train <- as.data.frame(readRDS('data/train_14_symAdd_pca.rds')) test <- as.data.frame(readRDS('data/test_14_symAdd_pca.rds')) names(train)[1] <- "label" train[,1] <- as.factor(train[,1]) names(test)[1] <- ...
altm <- function(x){ y <- dim(x) z <- x z[1,] <- x[1,]*x[y[1],] return(z) } # function converts naiive post-breeding leslie matrix # into post-breeding leslie matrix # by multilying survival values in last col by # fecundity values in first col # essentially assumes that only adults breed
/R/functions/altm.R
no_license
geryan/rfst
R
false
false
312
r
altm <- function(x){ y <- dim(x) z <- x z[1,] <- x[1,]*x[y[1],] return(z) } # function converts naiive post-breeding leslie matrix # into post-breeding leslie matrix # by multilying survival values in last col by # fecundity values in first col # essentially assumes that only adults breed
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 163800 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 163784 c c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 163784 c c Input Parameter (command lin...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Wintersteiger/LinearBitvectorRankingFunction/audio_ddksynth_voice.cpp/audio_ddksynth_voice.cpp.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
825
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 163800 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 163784 c c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 163784 c c Input Parameter (command lin...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vcovFPC.R \name{getZt} \alias{getZt} \title{getZt - get Zt from an lme object analogous to getME(object.merMod, "Zt"). See \code{\link{getME}}.} \usage{ getZt(object) } \arguments{ \item{object}{An \code{lme} model} } \description...
/man/getZt.Rd
no_license
ICTatRTI/PersonAlytics
R
false
true
479
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vcovFPC.R \name{getZt} \alias{getZt} \title{getZt - get Zt from an lme object analogous to getME(object.merMod, "Zt"). See \code{\link{getME}}.} \usage{ getZt(object) } \arguments{ \item{object}{An \code{lme} model} } \description...
#stats analysis phyllochron 1-2 #stats analysis phyllochron 1-3 #by Dana Looschelders library(agricolae) library(PMCMRplus) library(PMCMR) library(tidyverse) library(MASS) setwd("C:/00 Dana/Uni/Internship/Work") dat=read.table("Phyllochron.csv", sep=";", dec=" ", header=T) names(dat)=c("ID", "Variety", "Tre...
/stats_analysis_phyllochron.R
no_license
DanaLooschelders/Stats_Phenology
R
false
false
7,456
r
#stats analysis phyllochron 1-2 #stats analysis phyllochron 1-3 #by Dana Looschelders library(agricolae) library(PMCMRplus) library(PMCMR) library(tidyverse) library(MASS) setwd("C:/00 Dana/Uni/Internship/Work") dat=read.table("Phyllochron.csv", sep=";", dec=" ", header=T) names(dat)=c("ID", "Variety", "Tre...
vplog <- getLogger('vis.preprocess') detect_language <- function(text) { lang_detected <- lapply(text, textcat) # from russian-iso8859_5 only take russian lang_detected <- unlist(lapply(lang_detected, function(x) {vapply(strsplit(x,"-"), `[`, 1, FUN.VALUE=character(1))} )) ...
/R/preprocess.R
permissive
sbalci/okm
R
false
false
4,439
r
vplog <- getLogger('vis.preprocess') detect_language <- function(text) { lang_detected <- lapply(text, textcat) # from russian-iso8859_5 only take russian lang_detected <- unlist(lapply(lang_detected, function(x) {vapply(strsplit(x,"-"), `[`, 1, FUN.VALUE=character(1))} )) ...
# script to plot correlation/interaction plot args<-commandArgs(TRUE) if (!require("gplots")) { install.packages("gplots", dependencies = TRUE) library(gplots) } if (!require("RColorBrewer")) { install.packages("RColorBrewer", dependencies = TRUE) library(RColorBrewer) } valA=args[1] # e.g. eRNA.expression....
/modules/binned.correlation.plot.R
no_license
sterding/BRAINcode
R
false
false
3,306
r
# script to plot correlation/interaction plot args<-commandArgs(TRUE) if (!require("gplots")) { install.packages("gplots", dependencies = TRUE) library(gplots) } if (!require("RColorBrewer")) { install.packages("RColorBrewer", dependencies = TRUE) library(RColorBrewer) } valA=args[1] # e.g. eRNA.expression....
library(tidyverse) library(readxl) library(extrafont) library(ggthemes) lodi_weather <- read_xlsx("Lodi weather data 94 thru 99.xlsx") #Keep date column, precipitation and temperature lodi_weather <- lodi_weather %>% select(DATE,PRCP,TMAX,TMIN) #Combine precipation so I get total precipitation across each year lod...
/figureS2.R
permissive
zoemigicovsky/grapevine_rootstocks
R
false
false
7,777
r
library(tidyverse) library(readxl) library(extrafont) library(ggthemes) lodi_weather <- read_xlsx("Lodi weather data 94 thru 99.xlsx") #Keep date column, precipitation and temperature lodi_weather <- lodi_weather %>% select(DATE,PRCP,TMAX,TMIN) #Combine precipation so I get total precipitation across each year lod...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lexruntimeservice_operations.R \name{lexruntimeservice_post_content} \alias{lexruntimeservice_post_content} \title{Sends user input (text or speech) to Amazon Lex} \usage{ lexruntimeservice_post_content(botName, botAlias, userId, sessionAtt...
/cran/paws.machine.learning/man/lexruntimeservice_post_content.Rd
permissive
TWarczak/paws
R
false
true
8,761
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lexruntimeservice_operations.R \name{lexruntimeservice_post_content} \alias{lexruntimeservice_post_content} \title{Sends user input (text or speech) to Amazon Lex} \usage{ lexruntimeservice_post_content(botName, botAlias, userId, sessionAtt...
testlist <- list(Rs = numeric(0), atmp = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = numeric(0), temp = numeric(0)) result <- do.call(meteor:::ET0_Makkink,testlist) str(result)
/meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615850515-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
188
r
testlist <- list(Rs = numeric(0), atmp = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = numeric(0), temp = numeric(0)) result <- do.call(meteor:::ET0_Makkink,testlist) str(result)
#' Export cast a vector to specified type #' #' Casting supports a wider range of transformations that are automatically #' imputed by coercion (e.g. with [vec_coerce()]). #' #' @section Casting rules: #' #' Casting is more flexible than coercion, and allows for the possibility of #' information loss. This diagram summ...
/R/cast.R
no_license
gergness/vctrs
R
false
false
8,561
r
#' Export cast a vector to specified type #' #' Casting supports a wider range of transformations that are automatically #' imputed by coercion (e.g. with [vec_coerce()]). #' #' @section Casting rules: #' #' Casting is more flexible than coercion, and allows for the possibility of #' information loss. This diagram summ...
#' @title ATA Package Large Example Item Metadata #' @description Sample data used to demonstrate automated test assembly. #' @format A data frame with 1096 rows and 44 variables: #' \describe{ #' \item{Item}{Unique item identifier, alpha-numeric index code.} #' \item{Content}{Content label, as factor identify...
/R/metadata_large_example.R
no_license
cran/ata
R
false
false
3,625
r
#' @title ATA Package Large Example Item Metadata #' @description Sample data used to demonstrate automated test assembly. #' @format A data frame with 1096 rows and 44 variables: #' \describe{ #' \item{Item}{Unique item identifier, alpha-numeric index code.} #' \item{Content}{Content label, as factor identify...
household_power_consumption <- read.csv("~/Data_science_specialization/Exploratory_data_analysis/household_power_consumption.txt", sep=";", na.strings = "?") hpc<- subset(household_power_consumption, Date=="1/2/2007" | Date== "2/2/2007") #The date and time settings of the variables in the input table are converted hpc...
/plot2.R
no_license
jmzam-origins/ExData_Plotting1
R
false
false
642
r
household_power_consumption <- read.csv("~/Data_science_specialization/Exploratory_data_analysis/household_power_consumption.txt", sep=";", na.strings = "?") hpc<- subset(household_power_consumption, Date=="1/2/2007" | Date== "2/2/2007") #The date and time settings of the variables in the input table are converted hpc...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calculate.R \name{calculate} \alias{calculate} \title{calculate greta arrays given fixed values} \usage{ calculate( ..., values = list(), nsim = NULL, seed = NULL, precision = c("double", "single"), trace_batch_size = 100 ) } \arg...
/man/calculate.Rd
permissive
njtierney/greta
R
false
true
6,036
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calculate.R \name{calculate} \alias{calculate} \title{calculate greta arrays given fixed values} \usage{ calculate( ..., values = list(), nsim = NULL, seed = NULL, precision = c("double", "single"), trace_batch_size = 100 ) } \arg...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plots_SCE.R \name{plot_abundance} \alias{plot_abundance} \title{Plot clonotype abundance} \usage{ plot_abundance( SCE_in, clonotype_col = "cdr3_nt", cluster_col = NULL, calc_abundances = FALSE, plot_type = "bar", yaxis = "percent"...
/man/plot_abundance.Rd
permissive
friedue/SCEdjvdj
R
false
true
1,816
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plots_SCE.R \name{plot_abundance} \alias{plot_abundance} \title{Plot clonotype abundance} \usage{ plot_abundance( SCE_in, clonotype_col = "cdr3_nt", cluster_col = NULL, calc_abundances = FALSE, plot_type = "bar", yaxis = "percent"...
# mark AOIs as distance from their centers ========================== CHECK NEW AOIS # make function data$aoi <- "out" for(ia in 1:naoi){ data$aoi[sqrt((data$gazePointX-aoimat[1,1,ia])^2+(data$gazePointY-aoimat[1,2,ia])^2)<=aoicorr[1,ia]]<-aoinames[ia] }
/markCircularAOIs.R
no_license
datigrezzi/rgaze_draft
R
false
false
255
r
# mark AOIs as distance from their centers ========================== CHECK NEW AOIS # make function data$aoi <- "out" for(ia in 1:naoi){ data$aoi[sqrt((data$gazePointX-aoimat[1,1,ia])^2+(data$gazePointY-aoimat[1,2,ia])^2)<=aoicorr[1,ia]]<-aoinames[ia] }
28f340190b84e913d9fc666a1357283a dungeon_i25-m12-u3-v0.pddl_planlen=170.qdimacs 121289 1150637
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1+A1/Database/Kronegger-Pfandler-Pichler/dungeon/dungeon_i25-m12-u3-v0.pddl_planlen=170/dungeon_i25-m12-u3-v0.pddl_planlen=170.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
94
r
28f340190b84e913d9fc666a1357283a dungeon_i25-m12-u3-v0.pddl_planlen=170.qdimacs 121289 1150637
est_mc_cov_latent <- function(S,X1=NULL,X2=NULL,yv=rep(1,nrow(S)),start=0,tol=10^-8,maxit=1000,out_se=FALSE,output=FALSE,fort=TRUE){ # Preliminaries check_der = FALSE # to check derivatives n = sum(yv) sS = dim(S) ns = sS[1] TT = sS[2] b = max(S) if(min(S,na.rm=T)>0){ cat("|----------------...
/R/est_mc_cov_latent.R
no_license
jmorten/LMest
R
false
false
5,633
r
est_mc_cov_latent <- function(S,X1=NULL,X2=NULL,yv=rep(1,nrow(S)),start=0,tol=10^-8,maxit=1000,out_se=FALSE,output=FALSE,fort=TRUE){ # Preliminaries check_der = FALSE # to check derivatives n = sum(yv) sS = dim(S) ns = sS[1] TT = sS[2] b = max(S) if(min(S,na.rm=T)>0){ cat("|----------------...
#start time ALL, to see how long is processing startTime_ALL <- Sys.time() #' ## 1 Introduction #' #' This project aims to create a movie recommendation system using the MovieLens dat aset. #' Information on the available scripts, implementation system and processing time can be found in the appendix at the ...
/MovieLens.R
no_license
matej-s/MovieLens
R
false
false
33,885
r
#start time ALL, to see how long is processing startTime_ALL <- Sys.time() #' ## 1 Introduction #' #' This project aims to create a movie recommendation system using the MovieLens dat aset. #' Information on the available scripts, implementation system and processing time can be found in the appendix at the ...
library(igraph) start_time <- Sys.time() g <- erdos.renyi.game(1000000,10000000,"gnm") end_time <- Sys.time() end_time - start_time start_time <- Sys.time() g <- erdos.renyi.game(1000000,10000000,"gnm") end_time <- Sys.time() end_time - start_time start_time <- Sys.time() g <- erdos.renyi.game(1000000,100...
/iGraph/er.r
permissive
Yili0616/graph-analytics-comparison
R
false
false
1,942
r
library(igraph) start_time <- Sys.time() g <- erdos.renyi.game(1000000,10000000,"gnm") end_time <- Sys.time() end_time - start_time start_time <- Sys.time() g <- erdos.renyi.game(1000000,10000000,"gnm") end_time <- Sys.time() end_time - start_time start_time <- Sys.time() g <- erdos.renyi.game(1000000,100...
library(numDeriv) library(MASS) #' Covariate Balancing Propensity Score (CBPS) for Marginal Structural Models #' #' \code{CBMSM} estimates propensity scores such that both covariate balance #' and prediction of treatment assignment are maximized. With longitudinal #' data, the method returns marginal structural mo...
/R/CBMSM.R
no_license
kosukeimai/CBPS
R
false
false
25,378
r
library(numDeriv) library(MASS) #' Covariate Balancing Propensity Score (CBPS) for Marginal Structural Models #' #' \code{CBMSM} estimates propensity scores such that both covariate balance #' and prediction of treatment assignment are maximized. With longitudinal #' data, the method returns marginal structural mo...
rm(list = ls(all = TRUE)) x<-date() print(x) ########################################################################################### ### PROJECT: Immune Repertoire. Analysis B cells antibodies ### ### CITATION: ### ### PROCESS: ### ### DESCRIP: Analysis of the VDJ data ### ### ### Author: Silv...
/Clone_type_Analysis_gDNA.R
no_license
silviapineda/VDJ
R
false
false
18,528
r
rm(list = ls(all = TRUE)) x<-date() print(x) ########################################################################################### ### PROJECT: Immune Repertoire. Analysis B cells antibodies ### ### CITATION: ### ### PROCESS: ### ### DESCRIP: Analysis of the VDJ data ### ### ### Author: Silv...
#' Get coordinates (i.e., row, column, (layer)) of an element of a matrix or #' array element given by the index. #' #' This function is an inverse function to [index()]. #' #' @param m A matrix or an array whose element coordinates have to be computed #' @param index The index of the element. #' @return For matrix, it...
/R/point.R
no_license
beerda/hexmatrix
R
false
false
1,608
r
#' Get coordinates (i.e., row, column, (layer)) of an element of a matrix or #' array element given by the index. #' #' This function is an inverse function to [index()]. #' #' @param m A matrix or an array whose element coordinates have to be computed #' @param index The index of the element. #' @return For matrix, it...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{word_scr} \alias{word_scr} \alias{word_stacfis} \title{Creates an R Markdown Word NAFO-formatted document} \usage{ word_scr(...) word_stacfis(...) } \arguments{ \item{...}{arguments to pass to \code{\link[bookdown:word_document...
/man/word_scr.Rd
permissive
ursusbob/NAFOdown
R
false
true
588
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{word_scr} \alias{word_scr} \alias{word_stacfis} \title{Creates an R Markdown Word NAFO-formatted document} \usage{ word_scr(...) word_stacfis(...) } \arguments{ \item{...}{arguments to pass to \code{\link[bookdown:word_document...
library(testthat) context("listSpecialSets") test_that("lists", { expect_silent(listSpecialSets(T)) expect_silent(listSpecialSets(F)) })
/tests/testthat/test_misc_listspecialset.R
permissive
xoopR/set6
R
false
false
143
r
library(testthat) context("listSpecialSets") test_that("lists", { expect_silent(listSpecialSets(T)) expect_silent(listSpecialSets(F)) })
#' urlr #' #' Convert selected text into a url #' #' @return a markdown image link #' @export #' @importFrom rstudioapi getSourceEditorContext modifyRange #' urlr <- function() { adc <- rstudioapi::getSourceEditorContext() before_last_space <- '(\\s)(?!.*\\s)(.*?)$' after_last_space <- '^(.*?)(\\s)(?!.*\\s)...
/R/urlr.R
no_license
aoles/remedy
R
false
false
1,069
r
#' urlr #' #' Convert selected text into a url #' #' @return a markdown image link #' @export #' @importFrom rstudioapi getSourceEditorContext modifyRange #' urlr <- function() { adc <- rstudioapi::getSourceEditorContext() before_last_space <- '(\\s)(?!.*\\s)(.*?)$' after_last_space <- '^(.*?)(\\s)(?!.*\\s)...
#this function calculate the null distribution of colonization timing colnllcal <- function(states,pars,tot,dt) { func0 <- function (time,state1,par) { with(as.list(c(state1,par)), { sB <- par[1] sA <- par[2] sAB <- par[3] xB <- par[4] xA <- par[5] dB <- par[6] dA <- par[...
/colnllcal.R
no_license
huaxia1985/TestingConstantSpeciesAddition
R
false
false
2,410
r
#this function calculate the null distribution of colonization timing colnllcal <- function(states,pars,tot,dt) { func0 <- function (time,state1,par) { with(as.list(c(state1,par)), { sB <- par[1] sA <- par[2] sAB <- par[3] xB <- par[4] xA <- par[5] dB <- par[6] dA <- par[...
## 1. Explore the features of the gamma distribution ## 1a. Graph the probability density function for the gamma distribution ## with a range of shape values, keeping the rate parameter constant curve( dgamma( x, 0.5, 1 ), from=0, to=10, ylab="pdf" ) curve( dgamma( x, 1, 1 ), from=0, to=10, col=2, add=TRUE ) curv...
/RStuff/NeptuneAdvTraining_Athens/1Simulation/ExSimKP.R
no_license
puruckertom/swat_gof
R
false
false
9,232
r
## 1. Explore the features of the gamma distribution ## 1a. Graph the probability density function for the gamma distribution ## with a range of shape values, keeping the rate parameter constant curve( dgamma( x, 0.5, 1 ), from=0, to=10, ylab="pdf" ) curve( dgamma( x, 1, 1 ), from=0, to=10, col=2, add=TRUE ) curv...
## Opening the required libraries and some. library(dplyr) library(datasets) library(reshape2) ## First of all, we are going to read in all the data given in the form of .txt files ## Reading all activities ID and their names and apprpriately labeling the columns labels <- read.table("./UCI HAR Dataset/activity...
/run_analysis.R
no_license
v-nayjack/Getting-and-Cleaning-Data-Course_Project
R
false
false
3,024
r
## Opening the required libraries and some. library(dplyr) library(datasets) library(reshape2) ## First of all, we are going to read in all the data given in the form of .txt files ## Reading all activities ID and their names and apprpriately labeling the columns labels <- read.table("./UCI HAR Dataset/activity...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/network.generic.R \docType{methods} \name{network.glmnet.private,ANY,matrix-method} \alias{network.glmnet.private,ANY,matrix-method} \title{Calculate GLM model with network-based regularization} \usage{ \S4method{network.glmnet.private}{ANY,m...
/man/network.glmnet.private-ANY-matrix-method.Rd
no_license
averissimo/network.cox
R
false
true
550
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/network.generic.R \docType{methods} \name{network.glmnet.private,ANY,matrix-method} \alias{network.glmnet.private,ANY,matrix-method} \title{Calculate GLM model with network-based regularization} \usage{ \S4method{network.glmnet.private}{ANY,m...
xdf_mlbSub <- read.table("mlb_filter_example.tsv", header=TRUE, sep="\t", quote="\"") tail(xdf_mlbSub) dim(xdf_mlbSub) ############## the field PID_ndx gives the row index for the last ############## appearance of pitcher ############## gives zero if first appearance in data ############ x <- as.vector(xdf_mlbS...
/_07_localLevel_MLB_example_01.R
no_license
davezes/Stats_141SL
R
false
false
1,727
r
xdf_mlbSub <- read.table("mlb_filter_example.tsv", header=TRUE, sep="\t", quote="\"") tail(xdf_mlbSub) dim(xdf_mlbSub) ############## the field PID_ndx gives the row index for the last ############## appearance of pitcher ############## gives zero if first appearance in data ############ x <- as.vector(xdf_mlbS...
#' Alpine newt body temperatures and associated operative temperatures #' #' Active field body temperature data of Belgian alpine newts #' (\emph{Ichthyosaura alpestris}) and associated operative temperature data #' from agar models, collected during nocturnal surveys in spring. Data are in #' degrees Celsius....
/R/ichalp-data.R
no_license
wouterbeukema/ectotemp
R
false
false
453
r
#' Alpine newt body temperatures and associated operative temperatures #' #' Active field body temperature data of Belgian alpine newts #' (\emph{Ichthyosaura alpestris}) and associated operative temperature data #' from agar models, collected during nocturnal surveys in spring. Data are in #' degrees Celsius....
errate = function(fun) { function(...) { warn <- err <- NULL result <- withCallingHandlers( tryCatch( fun(...), error=function(e) { err <<- conditionMessage(e) NULL }), warning=function(w) { warn <<- append(warn, conditionMessage(w)) inv...
/R/errate.R
permissive
spgolden/mynr
R
false
false
2,173
r
errate = function(fun) { function(...) { warn <- err <- NULL result <- withCallingHandlers( tryCatch( fun(...), error=function(e) { err <<- conditionMessage(e) NULL }), warning=function(w) { warn <<- append(warn, conditionMessage(w)) inv...
library(geoSpectral) ### Name: spc.getwavelengths ### Title: Extract wave lenghts of a 'Spectra' object ### Aliases: spc.getwavelengths spc.getwavelengths,Spectra-method ### ** Examples x <- spc.example_spectra() spc.getwavelengths(x)
/data/genthat_extracted_code/geoSpectral/examples/spc.getwavelengths.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
246
r
library(geoSpectral) ### Name: spc.getwavelengths ### Title: Extract wave lenghts of a 'Spectra' object ### Aliases: spc.getwavelengths spc.getwavelengths,Spectra-method ### ** Examples x <- spc.example_spectra() spc.getwavelengths(x)
##------------------------------------- ## fit a drift term in a Tweedie model ## CM for discussion with Louise ## 22/06/2021 ##------------------------------------- library(icesDatras) library(ggplot2); theme_set(theme_bw()) library(mgcv) library(tweedie) ## Norway pout WoRMS ID aphia_id <- 126444 ##----------------...
/coilin_sandbox/tweedie_drift/tweedie.R
no_license
IrishMarineInstitute/ClimFish
R
false
false
4,231
r
##------------------------------------- ## fit a drift term in a Tweedie model ## CM for discussion with Louise ## 22/06/2021 ##------------------------------------- library(icesDatras) library(ggplot2); theme_set(theme_bw()) library(mgcv) library(tweedie) ## Norway pout WoRMS ID aphia_id <- 126444 ##----------------...
GetMeta <- function(StudyName, subCol, groups=TRUE){ if(grepl("Stanley", StudyName)){ collection = gsub("Stanley", "", StudyName) StanleyStudies <- read.table("StanleyStudies.txt", sep="\t", header=T) MetaAll <- read.table(paste0(path, "MetadataStanley.csv"), header = T, sep="\t") names(MetaAll) <- sa...
/ProjectScripts/projectFunc.R
no_license
ltoker/CellularChangesPsychiatry
R
false
false
33,905
r
GetMeta <- function(StudyName, subCol, groups=TRUE){ if(grepl("Stanley", StudyName)){ collection = gsub("Stanley", "", StudyName) StanleyStudies <- read.table("StanleyStudies.txt", sep="\t", header=T) MetaAll <- read.table(paste0(path, "MetadataStanley.csv"), header = T, sep="\t") names(MetaAll) <- sa...
## File Name: rasch.mml2.R ## File Version: 7.4619 # Semiparametric Maximum Likelihood Estimation in the Rasch type Model # item discrimination and guessing parameter can be fixed rasch.mml2 <- function( dat, theta.k=seq(-6,6,len=21), group=NULL, weights=NULL, constraints=NULL, glob.conv=10^(-5), parm....
/sirt/R/rasch.mml2.R
no_license
akhikolla/TestedPackages-NoIssues
R
false
false
51,960
r
## File Name: rasch.mml2.R ## File Version: 7.4619 # Semiparametric Maximum Likelihood Estimation in the Rasch type Model # item discrimination and guessing parameter can be fixed rasch.mml2 <- function( dat, theta.k=seq(-6,6,len=21), group=NULL, weights=NULL, constraints=NULL, glob.conv=10^(-5), parm....
## slices <- c(1210529,37000,344148,22500,12000,406544) ## slices <- slices[order(c(1210529,37000,344148,22500,12000,406544))] ## lbls <- c("Personnel","Travel","Consumables","Publication","Training","Indirect costs") ## lbls <- lbls[order(c(1210529,37000,344148,22500,12000,406544))] ## pct <- round(slices/sum(slices...
/figures/PieChart.r
permissive
alj1983/2019HongKongPresentation
R
false
false
3,558
r
## slices <- c(1210529,37000,344148,22500,12000,406544) ## slices <- slices[order(c(1210529,37000,344148,22500,12000,406544))] ## lbls <- c("Personnel","Travel","Consumables","Publication","Training","Indirect costs") ## lbls <- lbls[order(c(1210529,37000,344148,22500,12000,406544))] ## pct <- round(slices/sum(slices...
\name{magcon} \alias{magcon} \title{ 2D quantile images and contours } \description{ This function generates pretty images and contours that reflect the 2D quantile levels of the data. This means the user can immediately assess the 2D regime that contains an arbitrary percentage of the data. This function was designed...
/magicaxis/man/magcon.Rd
no_license
rtobar/SS19B-Robotham
R
false
false
3,771
rd
\name{magcon} \alias{magcon} \title{ 2D quantile images and contours } \description{ This function generates pretty images and contours that reflect the 2D quantile levels of the data. This means the user can immediately assess the 2D regime that contains an arbitrary percentage of the data. This function was designed...
datafile<-"./Exploratory Data Analysis/household_power_consumption.txt" data<-read.table(datafile,sep=";",header=TRUE) #read data subdata<-subset(data,data$Date %in% c("1/2/2007","2/2/2007")) #subset data from 1/2/2007 to 2/2/2007 submetering1<-as.numeric(subdata$Sub_metering_1) submetering2<-as.numeric(subdata$Sub_...
/plot3.R
no_license
TWOSECOND/ExData_Plotting1
R
false
false
805
r
datafile<-"./Exploratory Data Analysis/household_power_consumption.txt" data<-read.table(datafile,sep=";",header=TRUE) #read data subdata<-subset(data,data$Date %in% c("1/2/2007","2/2/2007")) #subset data from 1/2/2007 to 2/2/2007 submetering1<-as.numeric(subdata$Sub_metering_1) submetering2<-as.numeric(subdata$Sub_...
#' Document vectorization object #' #' This class contains a vectorization model for textual documents. #' @name vectorizer-class #' @slot vectorizer The vectorizer. #' @slot transform The transformation to be applied after vectorization (normalization, TF-IDF). #' @slot phrases The phrase detection method. #' @slot tf...
/R/text.R
no_license
cran/fdm2id
R
false
false
24,713
r
#' Document vectorization object #' #' This class contains a vectorization model for textual documents. #' @name vectorizer-class #' @slot vectorizer The vectorizer. #' @slot transform The transformation to be applied after vectorization (normalization, TF-IDF). #' @slot phrases The phrase detection method. #' @slot tf...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tree_functions.R \name{binary_tree} \alias{binary_tree} \title{Create a binary tree object} \usage{ binary_tree(label, left = NULL, right = NULL) } \arguments{ \item{label}{The label of the node} \item{left}{The left binary tree} \item{righ...
/man/binary_tree.Rd
permissive
asmagen/hierarchicalSingleCell
R
false
true
431
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tree_functions.R \name{binary_tree} \alias{binary_tree} \title{Create a binary tree object} \usage{ binary_tree(label, left = NULL, right = NULL) } \arguments{ \item{label}{The label of the node} \item{left}{The left binary tree} \item{righ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rndpoints.r \docType{data} \name{rndpoints} \alias{rndpoints} \title{Dataset: random points} \format{ SpatialPointsDataFrame } \usage{ data(rndpoints) } \description{ A SpatialPointsDataFrame representing random locations. } \keyword{datasets...
/man/rndpoints.Rd
no_license
cran/GmAMisc
R
false
true
322
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rndpoints.r \docType{data} \name{rndpoints} \alias{rndpoints} \title{Dataset: random points} \format{ SpatialPointsDataFrame } \usage{ data(rndpoints) } \description{ A SpatialPointsDataFrame representing random locations. } \keyword{datasets...
#' @export PortSummary<-function(lfa='34',bins=seq(50,200,5),output='graph'){ loadfunctions('lobster') lobster.db('atSea') atSea<-addSYEAR(subset(atSea,LFA==lfa)) atSea$YEAR<-year(atSea$SDATE) atSea$SYEAR[month(atSea$SDATE)<12&atSea$YEAR<2001]<-atSea$YEAR[month(atSea$SDATE)<12&atSea$YEAR<2001] atSea$SYEAR[mont...
/R/PortSummary.r
no_license
LobsterScience/bio.lobster
R
false
false
3,214
r
#' @export PortSummary<-function(lfa='34',bins=seq(50,200,5),output='graph'){ loadfunctions('lobster') lobster.db('atSea') atSea<-addSYEAR(subset(atSea,LFA==lfa)) atSea$YEAR<-year(atSea$SDATE) atSea$SYEAR[month(atSea$SDATE)<12&atSea$YEAR<2001]<-atSea$YEAR[month(atSea$SDATE)<12&atSea$YEAR<2001] atSea$SYEAR[mont...
# For your information, briefly, the model is that, as below, # Y_ij = intercept + dummyX_ij * (beta + beta_i) + Z_ij * (b + b_i) + error_ij, # where 'beta' and 'b' are fixed effects while 'b and 'b_i' are random slope effects. # We conduct the test that H_0: variance of b_i = 0 v.s. H_a: variance of b_i > 0 through e...
/full simulation/12.7.2017/power test/variance0.25/power_0.25_8_grp50_rep20.R
no_license
wma9/FMRI-project
R
false
false
23,536
r
# For your information, briefly, the model is that, as below, # Y_ij = intercept + dummyX_ij * (beta + beta_i) + Z_ij * (b + b_i) + error_ij, # where 'beta' and 'b' are fixed effects while 'b and 'b_i' are random slope effects. # We conduct the test that H_0: variance of b_i = 0 v.s. H_a: variance of b_i > 0 through e...
# Exponential-Dispersions-Familien # Dichtefunktion/ Wahrschienlichkeitsfunktion # Der Form -> # f(y) = c(y, phi)*exp((y*Teta-A(Teta))/phi) # Bsp. Binomialverteilung n fest, p # Normalverteilung mue, sigma^2 # Exponentialverteilung gamma # Poinsonverteilung # X^2-Verteilung # Schlecht -> Gleic...
/Uebung9/uebung9.R
no_license
asver12/Statistische-Verfahren
R
false
false
3,820
r
# Exponential-Dispersions-Familien # Dichtefunktion/ Wahrschienlichkeitsfunktion # Der Form -> # f(y) = c(y, phi)*exp((y*Teta-A(Teta))/phi) # Bsp. Binomialverteilung n fest, p # Normalverteilung mue, sigma^2 # Exponentialverteilung gamma # Poinsonverteilung # X^2-Verteilung # Schlecht -> Gleic...
# Packages require(mlr) require(tweeDEseq) source('functions/functions.r') load('../data/filter_genes.RData') print('Load and match datasets ...') data = create.data(path.brca = '../data/brca.rds', path.luad = '../data/luad.rds') target = as.character(data$target) rnames = colnames(data) i = intersect(colnames(data)...
/R/run-MachineLearning-analysis.r
no_license
jlinaresb/RNAseqML
R
false
false
1,724
r
# Packages require(mlr) require(tweeDEseq) source('functions/functions.r') load('../data/filter_genes.RData') print('Load and match datasets ...') data = create.data(path.brca = '../data/brca.rds', path.luad = '../data/luad.rds') target = as.character(data$target) rnames = colnames(data) i = intersect(colnames(data)...
# Script for generating synthetic item response data using the Gaussian # copula factor and Accelerated Bayesian Additive Regression Trees models library(bfa.mod) library(XBART) library(plyr) out_of_sample <- FALSE subpopulation <- FALSE # paths to item response data for fitting models IR_data_dir <- "simulated_da...
/code/2-draw_synth_XB.R
no_license
chelsea-k/adaptive-tests
R
false
false
8,457
r
# Script for generating synthetic item response data using the Gaussian # copula factor and Accelerated Bayesian Additive Regression Trees models library(bfa.mod) library(XBART) library(plyr) out_of_sample <- FALSE subpopulation <- FALSE # paths to item response data for fitting models IR_data_dir <- "simulated_da...
url = "http://www.randomservices.org/random/data/Challenger2.txt" oring=read.table(url,header=T) attach(oring) # attach command is to lable the data # plot(T,I) oring.lm = lm (I ~T) # if you would like to see the regression details, you could use the summary function summary(oring.lm) # add fitted line to...
/LinearRegression.R
no_license
SaladeDeFruits/Bayesian_Statistics_From_Concept_to_Data_Analysis
R
false
false
2,695
r
url = "http://www.randomservices.org/random/data/Challenger2.txt" oring=read.table(url,header=T) attach(oring) # attach command is to lable the data # plot(T,I) oring.lm = lm (I ~T) # if you would like to see the regression details, you could use the summary function summary(oring.lm) # add fitted line to...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/ddo_addTransform.R \name{applyTransform} \alias{applyTransform} \title{Applies the transformation function(s)} \usage{ applyTransform(transFns, x, env = NULL) } \arguments{ \item{transFns}{from the "transforms" attribute of a ddo obje...
/man/applyTransform.Rd
permissive
jrounds/datadr
R
false
false
712
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/ddo_addTransform.R \name{applyTransform} \alias{applyTransform} \title{Applies the transformation function(s)} \usage{ applyTransform(transFns, x, env = NULL) } \arguments{ \item{transFns}{from the "transforms" attribute of a ddo obje...
# Multiple Testing --------------------------------------------------------
/Chapter_13.R
no_license
jSoboil/Introduction-to-Statistical-Learning
R
false
false
76
r
# Multiple Testing --------------------------------------------------------
context("Test to make sure lat checks and long checks are ok") test_that("lat and long checks work correctly", { expect_false(test_lat(-1900)) expect_true(test_lat(-89)) expect_false(test_long(-1800)) expect_true(test_long(-89)) }) context("Testing the aggregate function") test_that("aggregates wor...
/tests/testthat/test-mapData.r
no_license
Hackout2/mapData
R
false
false
46,073
r
context("Test to make sure lat checks and long checks are ok") test_that("lat and long checks work correctly", { expect_false(test_lat(-1900)) expect_true(test_lat(-89)) expect_false(test_long(-1800)) expect_true(test_long(-89)) }) context("Testing the aggregate function") test_that("aggregates wor...
library(Cascade) ### Name: compare-methods ### Title: Some basic criteria of comparison between actual and inferred ### network. ### Aliases: compare-methods compare compare,network,network,numeric-method ### ** Examples data(simul) #Comparing true and inferred networks F_score=NULL #Here are the cutoff level t...
/data/genthat_extracted_code/Cascade/examples/compare-methods.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
554
r
library(Cascade) ### Name: compare-methods ### Title: Some basic criteria of comparison between actual and inferred ### network. ### Aliases: compare-methods compare compare,network,network,numeric-method ### ** Examples data(simul) #Comparing true and inferred networks F_score=NULL #Here are the cutoff level t...
#' Sort_major_minor #' #' Sorting and reordering table #' @param data data #' @param col1 col1 #' @param col2 col2 #' @export #' @return None Sort_major_minor<-function(data, col1, col2){ for (i in 1:dim(data)[1]) { if (data[i,col1] < data[i,col2]) { save = data[i,col2] data[i,col2] = data[i,col1] ...
/eSNPKaryotyping/R/Sort_major_minor.R
no_license
BenvenLab/eSNPKaryotyping
R
false
false
370
r
#' Sort_major_minor #' #' Sorting and reordering table #' @param data data #' @param col1 col1 #' @param col2 col2 #' @export #' @return None Sort_major_minor<-function(data, col1, col2){ for (i in 1:dim(data)[1]) { if (data[i,col1] < data[i,col2]) { save = data[i,col2] data[i,col2] = data[i,col1] ...
context("erfc function") test_that("check mode of x", { x <- rnorm(4L) expect_match(mode(erfc(x)), "numeric") }) test_that("erfc length is constant", { x <- rnorm(4L) y <- 5. expect_equal(length(x), length(erfc(x))) })
/data/genthat_extracted_code/tsensembler/tests/test-erfc.R
no_license
surayaaramli/typeRrh
R
false
false
231
r
context("erfc function") test_that("check mode of x", { x <- rnorm(4L) expect_match(mode(erfc(x)), "numeric") }) test_that("erfc length is constant", { x <- rnorm(4L) y <- 5. expect_equal(length(x), length(erfc(x))) })
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/K_KernelObj.R \name{KernelObj-methods} \alias{KernelObj-methods} \alias{.getKernelX,data.frame,KernelObj-method} \alias{.kernel,KernelObj,ANY,ANY-method} \alias{.kernel,KernelObj,missing,missing-method} \alias{.kernel,KernelObj,missing,ANY-me...
/man/KernelObj-methods.Rd
no_license
cran/DynTxRegime
R
false
true
1,292
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/K_KernelObj.R \name{KernelObj-methods} \alias{KernelObj-methods} \alias{.getKernelX,data.frame,KernelObj-method} \alias{.kernel,KernelObj,ANY,ANY-method} \alias{.kernel,KernelObj,missing,missing-method} \alias{.kernel,KernelObj,missing,ANY-me...
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function # Function to create a cacheable matrix makeCacheMatrix <- function(x = matrix()) { inverse <- NULL ...
/cachematrix.R
no_license
senekanei/ProgrammingAssignment2
R
false
false
1,855
r
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function # Function to create a cacheable matrix makeCacheMatrix <- function(x = matrix()) { inverse <- NULL ...
dataset <- 'MERGE.clean.FINAL' #load("Cross_Validation.Rdata") load("resid.models.Rdata") # load total phenotype with covariates for all subjects total <- total[(!is.na(total$IID) & !is.na(total$BMI) & !is.na(total$SEX) & !is.na(total$AGE) & !is.na(total$BATCH) & !is.na(total$C1)),] # remove any subjects with missing d...
/Cross_Validation_GSEA.r
no_license
MatthewASimonson/gene_set_scripts
R
false
false
12,117
r
dataset <- 'MERGE.clean.FINAL' #load("Cross_Validation.Rdata") load("resid.models.Rdata") # load total phenotype with covariates for all subjects total <- total[(!is.na(total$IID) & !is.na(total$BMI) & !is.na(total$SEX) & !is.na(total$AGE) & !is.na(total$BATCH) & !is.na(total$C1)),] # remove any subjects with missing d...
#' Retrieve the Active Project #' #' Retrieve the path to the active project (if any). #' #' @param default The value to return when no project is #' currently active. Defaults to `NULL`. #' #' @export #' #' @return The active project directory, as a length-one character vector. #' #' @examples #' \dontrun{ #' #' # ...
/R/project.R
no_license
philipp-baumann/renv
R
false
false
3,999
r
#' Retrieve the Active Project #' #' Retrieve the path to the active project (if any). #' #' @param default The value to return when no project is #' currently active. Defaults to `NULL`. #' #' @export #' #' @return The active project directory, as a length-one character vector. #' #' @examples #' \dontrun{ #' #' # ...
library(PBImisc) ### Name: eden ### Title: European day hospital evaluation ### Aliases: eden ### Keywords: eden ### ** Examples data(eden) library(lattice) xyplot(BPRS.Average~MANSA|center, data=eden, type=c("p","g","smooth"))
/data/genthat_extracted_code/PBImisc/examples/eden.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
235
r
library(PBImisc) ### Name: eden ### Title: European day hospital evaluation ### Aliases: eden ### Keywords: eden ### ** Examples data(eden) library(lattice) xyplot(BPRS.Average~MANSA|center, data=eden, type=c("p","g","smooth"))
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/praise_bien.R \name{praise_bien} \alias{praise_bien} \title{Crear frases de éxito estilo mexicanas} \usage{ praise_bien(exclamaciones = exclamacion_positiva, frases = frase_positiva, refranes = refranes_positivos) } \arguments{ \item{exclam...
/man/praise_bien.Rd
no_license
ComunidadBioInfo/praiseMX
R
false
true
906
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/praise_bien.R \name{praise_bien} \alias{praise_bien} \title{Crear frases de éxito estilo mexicanas} \usage{ praise_bien(exclamaciones = exclamacion_positiva, frases = frase_positiva, refranes = refranes_positivos) } \arguments{ \item{exclam...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/nagelR2.r \name{nagelR2} \alias{nagelR2} \title{Nagelkerge's / Craig & Uhler's R2} \usage{ nagelR2(likeNull, likeFull, n) } \arguments{ \item{likeNull}{Likelihood (not log-likelihood) of the null model or an object of class \code{logLik} with...
/man/nagelR2.Rd
no_license
adamlilith/statisfactory
R
false
true
1,086
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/nagelR2.r \name{nagelR2} \alias{nagelR2} \title{Nagelkerge's / Craig & Uhler's R2} \usage{ nagelR2(likeNull, likeFull, n) } \arguments{ \item{likeNull}{Likelihood (not log-likelihood) of the null model or an object of class \code{logLik} with...
\name{xml.rpc} \alias{xml.rpc} \title{Invoke XML-RPC method from R} \description{ This function can be used to invoke a method provided by an XML-RPC (remote procedure call) server. It can pass R objects in the request by serializing them to XML format and also converts the result back to R. } \usage{ xml.rpc(url, ...
/man/xml.rpc.Rd
no_license
duncantl/XMLRPC
R
false
false
3,445
rd
\name{xml.rpc} \alias{xml.rpc} \title{Invoke XML-RPC method from R} \description{ This function can be used to invoke a method provided by an XML-RPC (remote procedure call) server. It can pass R objects in the request by serializing them to XML format and also converts the result back to R. } \usage{ xml.rpc(url, ...
library(ropercenter) ### Name: roper_download ### Title: Download datasets from the Roper Center ### Aliases: roper_download ### ** Examples ## Not run: ##D roper_download(file_id = c("CNCIPO1996-96010", "CNCIPO2000-02")) ## End(Not run)
/data/genthat_extracted_code/ropercenter/examples/roper_download.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
248
r
library(ropercenter) ### Name: roper_download ### Title: Download datasets from the Roper Center ### Aliases: roper_download ### ** Examples ## Not run: ##D roper_download(file_id = c("CNCIPO1996-96010", "CNCIPO2000-02")) ## End(Not run)
.onLoad <- function(libname, pkgname) { options( civis.ml_train_template_id = get_train_template_id(), civis.default_database = NULL ) invisible() } get_train_template_id <- function() { versions <- unique(CIVIS_ML_TEMPLATE_IDS$version) latest <- max(versions) id <- CIVIS_ML_TEMPLATE_IDS[CIVIS_ML_T...
/R/zzz.R
no_license
JosiahParry/civis-r
R
false
false
923
r
.onLoad <- function(libname, pkgname) { options( civis.ml_train_template_id = get_train_template_id(), civis.default_database = NULL ) invisible() } get_train_template_id <- function() { versions <- unique(CIVIS_ML_TEMPLATE_IDS$version) latest <- max(versions) id <- CIVIS_ML_TEMPLATE_IDS[CIVIS_ML_T...
# Resample the Fire risk map to be at the same resolution/extent as the Zillow data library(tidyverse) library(raster) library(googledrive) # devtools::install_github(repo = "JoshOBrien/rasterDT") library(rasterDT) library(gdalUtils) # make the functions available to download the Zillow grid source("R/download_grid.R...
/R/configure-hurricane-wind.R
permissive
mikoontz/twensday
R
false
false
4,016
r
# Resample the Fire risk map to be at the same resolution/extent as the Zillow data library(tidyverse) library(raster) library(googledrive) # devtools::install_github(repo = "JoshOBrien/rasterDT") library(rasterDT) library(gdalUtils) # make the functions available to download the Zillow grid source("R/download_grid.R...
ssplotM <- function(x, hidden.paths=NULL, plots="obs", type="d", sortv=NULL, sort.channel=1, dist.method="OM", with.missing=FALSE, title=NA, title.n=TRUE, cex.title=1, title.pos=1, withlegend="auto", ncol.legend="auto", ...
/R/ssplotM.R
no_license
zencoding/seqHMM
R
false
false
959
r
ssplotM <- function(x, hidden.paths=NULL, plots="obs", type="d", sortv=NULL, sort.channel=1, dist.method="OM", with.missing=FALSE, title=NA, title.n=TRUE, cex.title=1, title.pos=1, withlegend="auto", ncol.legend="auto", ...
library(package = "arules") transactions = read.transactions(file = file("stdin"), format = "basket", sep = ",") rules = apriori(transactions, parameter = list(minlen=1, sup = 0.001, conf = 0.001)) itemsets <- unique(generatingItemsets(rules)) itemsets.df <- as(itemsets, "data.frame") frequentItemsets <- itemsets.df[wi...
/Lab4/Mining.R
no_license
anishi-mehta/Data-Mining
R
false
false
472
r
library(package = "arules") transactions = read.transactions(file = file("stdin"), format = "basket", sep = ",") rules = apriori(transactions, parameter = list(minlen=1, sup = 0.001, conf = 0.001)) itemsets <- unique(generatingItemsets(rules)) itemsets.df <- as(itemsets, "data.frame") frequentItemsets <- itemsets.df[wi...
# Script to make example degree days and path plot library(tidyr) library(dplyr) library(lubridate) library(reshape2) library(geosphere) library(ggplot2) #devtools::install_github("thomasp85/patchwork") #install.packages("scales") #devtools::install_github('thomasp85/gganimate') #library(gganimate) library...
/3_Figures/Figure_S2.R
no_license
jaseeverett/TailorParticleTracking
R
false
false
5,306
r
# Script to make example degree days and path plot library(tidyr) library(dplyr) library(lubridate) library(reshape2) library(geosphere) library(ggplot2) #devtools::install_github("thomasp85/patchwork") #install.packages("scales") #devtools::install_github('thomasp85/gganimate') #library(gganimate) library...
## ----setup, include=FALSE----------------------------------------------------- library(knitr) knitr::opts_chunk$set( fig.align = "center", fig.height = 5.5, fig.width = 6, warning = FALSE, collapse = TRUE, dev.args = list(pointsize = 10), out.width = "65%" ) ## ---- message = FALSE, echo = FALSE--------------...
/inst/doc/Textile-Factory.R
no_license
cran/smmR
R
false
false
6,142
r
## ----setup, include=FALSE----------------------------------------------------- library(knitr) knitr::opts_chunk$set( fig.align = "center", fig.height = 5.5, fig.width = 6, warning = FALSE, collapse = TRUE, dev.args = list(pointsize = 10), out.width = "65%" ) ## ---- message = FALSE, echo = FALSE--------------...
######################################################### ## Reads Report Files ## ## and pulls out required quantities ## ## Written by: Chantel Wetzel ## ## Date: 4-18-2014 ## ##############################...
/archive_10_15/functions/Rep_Summary.R
no_license
chantelwetzel-noaa/Ch3_DataLoss
R
false
false
5,034
r
######################################################### ## Reads Report Files ## ## and pulls out required quantities ## ## Written by: Chantel Wetzel ## ## Date: 4-18-2014 ## ##############################...
library(tidyverse) library(here) library(brms) library(mice) bashInput <- commandArgs(trailingOnly = TRUE) #Function Defining split_facets <- function(x) { facet_expr <- unlist(x[["facet"]][["params"]][c("cols", "rows", "facets")]) facet_levels <- lapply(facet_expr, rlang::eval_tidy, data = x[["data"]]) facet...
/fitModelsCluster.R
no_license
NomisCiri/Risk_Gaps
R
false
false
8,010
r
library(tidyverse) library(here) library(brms) library(mice) bashInput <- commandArgs(trailingOnly = TRUE) #Function Defining split_facets <- function(x) { facet_expr <- unlist(x[["facet"]][["params"]][c("cols", "rows", "facets")]) facet_levels <- lapply(facet_expr, rlang::eval_tidy, data = x[["data"]]) facet...
##Load File: data <- read.csv("subset_household_power_consumption.txt", sep=";") data$DateTime <- strptime(paste(data$Date, data$Time), format='%d/%m/%Y %H:%M:%S') ##Plot Graph: plot(data$DateTime, data$Global_active_power, type="l", xlab="", ylab="Global Active Power (kilowatts)") #Save picture to file: dev.co...
/Plot2.R
no_license
dhelquist/ExData_Plotting1
R
false
false
378
r
##Load File: data <- read.csv("subset_household_power_consumption.txt", sep=";") data$DateTime <- strptime(paste(data$Date, data$Time), format='%d/%m/%Y %H:%M:%S') ##Plot Graph: plot(data$DateTime, data$Global_active_power, type="l", xlab="", ylab="Global Active Power (kilowatts)") #Save picture to file: dev.co...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/normalize_isobaric.R \name{normalize_isobaric} \alias{normalize_isobaric} \title{Examine and Apply Isobaric Normalization} \usage{ normalize_isobaric( omicsData, exp_cname = NULL, apply_norm = FALSE, channel_cname = NULL, refpool_ch...
/man/normalize_isobaric.Rd
permissive
clabornd/pmartR
R
false
true
4,643
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/normalize_isobaric.R \name{normalize_isobaric} \alias{normalize_isobaric} \title{Examine and Apply Isobaric Normalization} \usage{ normalize_isobaric( omicsData, exp_cname = NULL, apply_norm = FALSE, channel_cname = NULL, refpool_ch...
rm(list = ls()) setwd("~/project/colon cancer/siOTX2/") library(DESeq2) library(ggplot2) #inputf <- read.delim("tophat_featureCounts.txt",comment.char = "#") inputf <- read.delim("star_featureCounts.txt",sep = "\t",comment.char = "#") names(inputf) <- c("Geneid","Chr","Start","End","Starnd","Length","siKLF3-1","siKL...
/RNA-seq/siOTX2/siOTX2 and siKLF3 DESeq2.R
no_license
ZhaoChen96/CRC
R
false
false
16,194
r
rm(list = ls()) setwd("~/project/colon cancer/siOTX2/") library(DESeq2) library(ggplot2) #inputf <- read.delim("tophat_featureCounts.txt",comment.char = "#") inputf <- read.delim("star_featureCounts.txt",sep = "\t",comment.char = "#") names(inputf) <- c("Geneid","Chr","Start","End","Starnd","Length","siKLF3-1","siKL...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/logistic_pseudononmy.R \name{future.logis} \alias{future.logis} \title{Calculate expected optimality for a given trajectory using sequential approach. We assume a logistic model for the response.} \usage{ future.logis(D.fix, n.r, z.pro...
/man/future.logis.Rd
no_license
mst1g15/biasedcoin
R
false
true
1,241
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/logistic_pseudononmy.R \name{future.logis} \alias{future.logis} \title{Calculate expected optimality for a given trajectory using sequential approach. We assume a logistic model for the response.} \usage{ future.logis(D.fix, n.r, z.pro...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.sfn_operations.R \name{describe_state_machine} \alias{describe_state_machine} \title{Describes a state machine} \usage{ describe_state_machine(stateMachineArn) } \arguments{ \item{stateMachineArn}{[required] The Amazon Resource Name (ARN...
/service/paws.sfn/man/describe_state_machine.Rd
permissive
CR-Mercado/paws
R
false
true
641
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.sfn_operations.R \name{describe_state_machine} \alias{describe_state_machine} \title{Describes a state machine} \usage{ describe_state_machine(stateMachineArn) } \arguments{ \item{stateMachineArn}{[required] The Amazon Resource Name (ARN...
#move pdfs from subfolder to a new folder install.packages("stringi") install.packages("filesstrings") library(stringr) library(stringi) library(filesstrings) # list all CSV files recursively through each sub-folder pdf<-list.files("C:/Users/ASUS/Downloads/here",pattern = ".pdf", full.names=T,recursive = T...
/moveFiles.R
no_license
teuzindahuz/spat_ecology
R
false
false
408
r
#move pdfs from subfolder to a new folder install.packages("stringi") install.packages("filesstrings") library(stringr) library(stringi) library(filesstrings) # list all CSV files recursively through each sub-folder pdf<-list.files("C:/Users/ASUS/Downloads/here",pattern = ".pdf", full.names=T,recursive = T...
## Export: inla.version ## !\name{inla.version} ## !\alias{version} ## !\alias{inla.version} ## ! ## !\title{Show the version of the INLA-package} ## ! ## !\description{Show the version of the INLA-package} ## ! ## !\usage{ ## !inla.version(what = c("default", "version", "date")) ## !} ## ! ## !\arguments{ ## ! \item...
/R/version.R
no_license
jdsimkin04/shinyinla
R
false
false
2,132
r
## Export: inla.version ## !\name{inla.version} ## !\alias{version} ## !\alias{inla.version} ## ! ## !\title{Show the version of the INLA-package} ## ! ## !\description{Show the version of the INLA-package} ## ! ## !\usage{ ## !inla.version(what = c("default", "version", "date")) ## !} ## ! ## !\arguments{ ## ! \item...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/relationships.R \name{relationships} \alias{relationships} \alias{paths} \title{Structural specification functions for seminr package} \usage{ relationships(...) paths(from,to) } \arguments{ \item{...}{A comma separated list of all the struc...
/man/relationships.Rd
no_license
chendongyu0125/seminr
R
false
true
1,333
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/relationships.R \name{relationships} \alias{relationships} \alias{paths} \title{Structural specification functions for seminr package} \usage{ relationships(...) paths(from,to) } \arguments{ \item{...}{A comma separated list of all the struc...
# Naive Bayes # 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') library(caTools) s...
/Part 3 - Classification/Section 18 - Naive Bayes/naive_bayes_user.R
no_license
asjadaugust/machine-learning-toolkit
R
false
false
2,271
r
# Naive Bayes # 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') library(caTools) s...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fugu.R \name{fOr} \alias{fOr} \title{function-level OR operator} \usage{ fOr(...) } \arguments{ \item{...}{a list of functions} } \value{ f st. f(a,b,c) is true when f1(a,b,c) || f2(a,b,c) ... } \description{ Return a new function which is tr...
/man/fOr.Rd
no_license
VincentToups/fugu
R
false
true
373
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fugu.R \name{fOr} \alias{fOr} \title{function-level OR operator} \usage{ fOr(...) } \arguments{ \item{...}{a list of functions} } \value{ f st. f(a,b,c) is true when f1(a,b,c) || f2(a,b,c) ... } \description{ Return a new function which is tr...
library(shiny) ### Name: HTML ### Title: Mark Characters as HTML ### Aliases: HTML ### ** Examples el <- div(HTML("I like <u>turtles</u>")) cat(as.character(el))
/data/genthat_extracted_code/shiny/examples/HTML.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
169
r
library(shiny) ### Name: HTML ### Title: Mark Characters as HTML ### Aliases: HTML ### ** Examples el <- div(HTML("I like <u>turtles</u>")) cat(as.character(el))
#' Semi parametric location, shape and scale regression #' #' \code{lssVarReg.multi} performs a semiparametric location (\eqn{\xi} or xi), shape (\eqn{\nu} or nu) and scale (\eqn{\omega} or omega) regression model. This is designed for multiple covariates that are fit in the location, scale and shape models. #' @par...
/R/lssVarReg_multi.R
no_license
cran/VarReg
R
false
false
14,420
r
#' Semi parametric location, shape and scale regression #' #' \code{lssVarReg.multi} performs a semiparametric location (\eqn{\xi} or xi), shape (\eqn{\nu} or nu) and scale (\eqn{\omega} or omega) regression model. This is designed for multiple covariates that are fit in the location, scale and shape models. #' @par...
/fund 2004-2017/07-buy group.R
no_license
shenfan2018/shenfan2018
R
false
false
1,736
r
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/adexchangeseller_functions.R \docType{package} \name{adexchangeseller_googleAuthR} \alias{adexchangeseller_googleAuthR} \alias{adexchangeseller_googleAuthR-package} \title{Ad Exchange Seller API Accesses the inventory of Ad Exchange seller us...
/googleadexchangesellerv1.auto/man/adexchangeseller_googleAuthR.Rd
permissive
Phippsy/autoGoogleAPI
R
false
true
750
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/adexchangeseller_functions.R \docType{package} \name{adexchangeseller_googleAuthR} \alias{adexchangeseller_googleAuthR} \alias{adexchangeseller_googleAuthR-package} \title{Ad Exchange Seller API Accesses the inventory of Ad Exchange seller us...
\name{transactions-class} \docType{class} \alias{transactions-class} \alias{transactions} %%% \alias{initialize,transactions-method} \alias{coerce,matrix,transactions-method} \alias{coerce,list,transactions-method} \alias{coerce,transactions,matrix-method} \alias{coerce,transactions,list-method} \alias{coerce,data.fram...
/man/transactions-class.Rd
no_license
matmo/arules
R
false
false
8,923
rd
\name{transactions-class} \docType{class} \alias{transactions-class} \alias{transactions} %%% \alias{initialize,transactions-method} \alias{coerce,matrix,transactions-method} \alias{coerce,list,transactions-method} \alias{coerce,transactions,matrix-method} \alias{coerce,transactions,list-method} \alias{coerce,data.fram...
#install.packages('here') #install.packages('xlsx', type='source', repos='http://cran.rstudio.com') library(here) library(haven) library(foreign) library(openxlsx) path<-here::here("data", "municipal_population", "inegi","population_conteo") # path<-here("data", "municipal_population", "pop2000_and_2010.dta") # pop...
/scripts/population_conteo.R
no_license
aleistermi/Mortality-and-Suicides-in-Mx-Viz
R
false
false
3,423
r
#install.packages('here') #install.packages('xlsx', type='source', repos='http://cran.rstudio.com') library(here) library(haven) library(foreign) library(openxlsx) path<-here::here("data", "municipal_population", "inegi","population_conteo") # path<-here("data", "municipal_population", "pop2000_and_2010.dta") # pop...
####********************************************************************** ####********************************************************************** #### #### RANDOM FORESTS FOR SURVIVAL, REGRESSION, AND CLASSIFICATION (RF-SRC) #### Version 2.4.1 (_PROJECT_BUILD_ID_) #### #### Copyright 2016, University of Miami ##...
/R/data.utilities.R
no_license
ehrlinger/randomForestSRC
R
false
false
26,704
r
####********************************************************************** ####********************************************************************** #### #### RANDOM FORESTS FOR SURVIVAL, REGRESSION, AND CLASSIFICATION (RF-SRC) #### Version 2.4.1 (_PROJECT_BUILD_ID_) #### #### Copyright 2016, University of Miami ##...
\name{PlotLogTheta} \alias{PlotLogTheta} \title{Plot of the log theta penalties} \usage{ PlotLogTheta(results) } \arguments{ \item{results}{Object of class \code{"list"}: either the output of \code{\link{pawl}} or of \code{\link{adaptiveMH}}.} } \value{ The function returns a ggplot2 object. } \description{ ...
/man/PlotLogTheta.Rd
no_license
ericschulz/rpawl
R
false
false
587
rd
\name{PlotLogTheta} \alias{PlotLogTheta} \title{Plot of the log theta penalties} \usage{ PlotLogTheta(results) } \arguments{ \item{results}{Object of class \code{"list"}: either the output of \code{\link{pawl}} or of \code{\link{adaptiveMH}}.} } \value{ The function returns a ggplot2 object. } \description{ ...
source('getData.R') source('~/Dropbox/LNCC/Doutorado/Disciplinas/Ciência de Redes/Project/getData022018.R') # Genre - Country (Top 5 Genres) ##################################################### # Pegando apenas 5 gêneros para cada pais, de um top 200 artistas # Excluindo gêneros que aparecem em todos os países # Sim...
/top200spotify/R/artistGenreTop5NWA.R
no_license
mmondelli/network-science
R
false
false
18,562
r
source('getData.R') source('~/Dropbox/LNCC/Doutorado/Disciplinas/Ciência de Redes/Project/getData022018.R') # Genre - Country (Top 5 Genres) ##################################################### # Pegando apenas 5 gêneros para cada pais, de um top 200 artistas # Excluindo gêneros que aparecem em todos os países # Sim...
/Listas/Lista03/Lista3.R
permissive
ClezioLopes/MLG
R
false
false
13,339
r
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/questionnaire.R \name{kre.compute} \alias{kre.compute} \title{Oblicza wynik surowy dla kwestionariusza KRE} \usage{ kre.compute(x, ...) } \description{ Oblicza wynik surowy dla kwestionariusza KRE }
/man/kre.compute.Rd
no_license
boryspaulewicz/bp
R
false
true
278
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/questionnaire.R \name{kre.compute} \alias{kre.compute} \title{Oblicza wynik surowy dla kwestionariusza KRE} \usage{ kre.compute(x, ...) } \description{ Oblicza wynik surowy dla kwestionariusza KRE }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.greengrass_operations.R \name{associate_service_role_to_account} \alias{associate_service_role_to_account} \title{Associates a role with your account} \usage{ associate_service_role_to_account(RoleArn = NULL) } \arguments{ \item{RoleArn}...
/service/paws.greengrass/man/associate_service_role_to_account.Rd
permissive
CR-Mercado/paws
R
false
true
797
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.greengrass_operations.R \name{associate_service_role_to_account} \alias{associate_service_role_to_account} \title{Associates a role with your account} \usage{ associate_service_role_to_account(RoleArn = NULL) } \arguments{ \item{RoleArn}...