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
# Add an html dependency, without overwriting existing ones appendDependencies <- function(x, value) { if (inherits(value, "html_dependency")) value <- list(value) old <- attr(x, "html_dependencies", TRUE) htmltools::htmlDependencies(x) <- c(old, value) x } # Add CSS dependencies to a tag object addCSSDe...
/R/deps.R
no_license
kavetinaveen/shinyMobile
R
false
false
2,939
r
# Add an html dependency, without overwriting existing ones appendDependencies <- function(x, value) { if (inherits(value, "html_dependency")) value <- list(value) old <- attr(x, "html_dependencies", TRUE) htmltools::htmlDependencies(x) <- c(old, value) x } # Add CSS dependencies to a tag object addCSSDe...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/R6-classes.R \docType{class} \name{HpdsAttribList} \alias{HpdsAttribList} \title{R6 class used as base class for all query parameter lists - DO NOT CREATE THIS OBJECT DIRECTLY!} \format{ \code{\link{HpdsAttribList}} object. } \value{ Object o...
/man/HpdsAttribList.Rd
permissive
hms-dbmi/pic-sure-r-adapter-hpds
R
false
true
4,914
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/R6-classes.R \docType{class} \name{HpdsAttribList} \alias{HpdsAttribList} \title{R6 class used as base class for all query parameter lists - DO NOT CREATE THIS OBJECT DIRECTLY!} \format{ \code{\link{HpdsAttribList}} object. } \value{ Object o...
ar.egls <- function (x, R, order.max, na.action = na.fail, series = NULL, ...) { R = sync(R) aic = F demean = T intercept = F n <- nrow(x) k <- ncol(x) if (is.null(series)) series <- deparse(substitute(x)) rescale <- TRUE ists <- is.ts(x) x <- na.acti...
/R/ar.egls.R
no_license
cran/LPM
R
false
false
5,328
r
ar.egls <- function (x, R, order.max, na.action = na.fail, series = NULL, ...) { R = sync(R) aic = F demean = T intercept = F n <- nrow(x) k <- ncol(x) if (is.null(series)) series <- deparse(substitute(x)) rescale <- TRUE ists <- is.ts(x) x <- na.acti...
################################################### ### code chunk number 35: Cs410_conf-int ################################################### pred_kfas_t1 <- predict(fit_kfas$model, interval = "prediction", se.fit = TRUE, filtered = TRUE ) head(pred_kfas_t1)
/inst/userguide/figures/KFAS--Cs410_conf-int.R
permissive
nwfsc-timeseries/MARSS
R
false
false
268
r
################################################### ### code chunk number 35: Cs410_conf-int ################################################### pred_kfas_t1 <- predict(fit_kfas$model, interval = "prediction", se.fit = TRUE, filtered = TRUE ) head(pred_kfas_t1)
/lecture.R
no_license
ahmedjoubest/windows-server
R
false
false
4,281
r
#' @title Parallel processing of raster stack objects #' @name apply_stack_parallel #' @author Victor Maus, \email{vwmaus1@@gmail.com} #' #' @param x raster stack #' #' @param fun is a function to be applied to pixel location of the raster stack object and can #' be defined by the user. The function must have two argu...
/scripts/apply_stack_parallel.R
no_license
rkstan/GE712
R
false
false
3,739
r
#' @title Parallel processing of raster stack objects #' @name apply_stack_parallel #' @author Victor Maus, \email{vwmaus1@@gmail.com} #' #' @param x raster stack #' #' @param fun is a function to be applied to pixel location of the raster stack object and can #' be defined by the user. The function must have two argu...
library(nparLD) ### Name: f2.ld.f1 ### Title: Nonparametric Tests for the F2-LD-F1 Design ### Aliases: f2.ld.f1 ### Keywords: htest ### ** Examples ## Example with the "Shoulder tip pain study" data ## data(shoulder) attach(shoulder) ex.f2f1<-f2.ld.f1(y=resp, time=time, group1=group1, group2=group2, subject=subjec...
/data/genthat_extracted_code/nparLD/examples/f2.ld.f1.rd.R
no_license
surayaaramli/typeRrh
R
false
false
2,128
r
library(nparLD) ### Name: f2.ld.f1 ### Title: Nonparametric Tests for the F2-LD-F1 Design ### Aliases: f2.ld.f1 ### Keywords: htest ### ** Examples ## Example with the "Shoulder tip pain study" data ## data(shoulder) attach(shoulder) ex.f2f1<-f2.ld.f1(y=resp, time=time, group1=group1, group2=group2, subject=subjec...
################################################################################ ##### Directed Acyclid Graph ################################################## ################################################################################ ## For browser-based: dag { "LDL-C" [pos="0.296,0.447"] AF [pos="0.653,...
/MACE/DAG.R
no_license
chrnowak/MACE
R
false
false
15,303
r
################################################################################ ##### Directed Acyclid Graph ################################################## ################################################################################ ## For browser-based: dag { "LDL-C" [pos="0.296,0.447"] AF [pos="0.653,...
testlist <- list(AgeVector = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), ExpressionSet = structure(c(1.63064200184954e+212, 1.11558267938731e+157, 2.3453288146775e+59, 7.59955788945772e-256, 5.55398...
/myTAI/inst/testfiles/cpp_omitMatrix/AFL_cpp_omitMatrix/cpp_omitMatrix_valgrind_files/1615845735-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
1,090
r
testlist <- list(AgeVector = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), ExpressionSet = structure(c(1.63064200184954e+212, 1.11558267938731e+157, 2.3453288146775e+59, 7.59955788945772e-256, 5.55398...
--- title: "Time_Series_Template_in_R" author: "Sharath" date: "07/08/2020" output: html_document editor_options: chunk_output_type: console --- library(kernlab) library(kknn) library(caret) library(ggplot2) library(dplyr) library(lubridate) library(MLmetrics) library(forecast) library(GeneCycle) ######################...
/R/TimeSeriesinR.R
no_license
sharathnatraj/TimeSeriesForecastinginR
R
false
false
6,054
r
--- title: "Time_Series_Template_in_R" author: "Sharath" date: "07/08/2020" output: html_document editor_options: chunk_output_type: console --- library(kernlab) library(kknn) library(caret) library(ggplot2) library(dplyr) library(lubridate) library(MLmetrics) library(forecast) library(GeneCycle) ######################...
tabPanel("HCPC", column(3, tags$h4(""), sliderInput(inputId = "sliderhcpc",label = "Select number of components", min=2, max=10, step = 1, value = 2) ), column(8, tags$h3("Interactive hierarchical cluster on PCA"), bsAlert("hcpcm...
/ui-hcpc.R
no_license
fpsanz/pcaExplorer
R
false
false
717
r
tabPanel("HCPC", column(3, tags$h4(""), sliderInput(inputId = "sliderhcpc",label = "Select number of components", min=2, max=10, step = 1, value = 2) ), column(8, tags$h3("Interactive hierarchical cluster on PCA"), bsAlert("hcpcm...
#' Attempts to install a package directly from github. #' #' This function is vectorised so you can install multiple packages in #' a single command. #' #' @param username Github username #' @param repo Repo name #' @param ref Desired git reference. Could be a commit, tag, or branch #' name. Defaults to \code{"master...
/devtoolsVersion/devtools 13/R/install-github.r
no_license
connectthefuture/devtools-R-Forge
R
false
false
2,918
r
#' Attempts to install a package directly from github. #' #' This function is vectorised so you can install multiple packages in #' a single command. #' #' @param username Github username #' @param repo Repo name #' @param ref Desired git reference. Could be a commit, tag, or branch #' name. Defaults to \code{"master...
## These functions create a cached matrix inversion object with helper ## methods to get/set the inverse and values on the object. ## The matrix inverse is cached after the first calculation so that it ## need not be recalculated on subsequent inversion calcuation requests. ## The make cache matrix function create...
/cachematrix.R
no_license
ellisgiles/ProgrammingAssignment2
R
false
false
1,672
r
## These functions create a cached matrix inversion object with helper ## methods to get/set the inverse and values on the object. ## The matrix inverse is cached after the first calculation so that it ## need not be recalculated on subsequent inversion calcuation requests. ## The make cache matrix function create...
saveRDS(data.frame(), file = "data/dennys.rds")
/parse_dennys.R
no_license
nicolegu/hw4
R
false
false
49
r
saveRDS(data.frame(), file = "data/dennys.rds")
#Download data file url<-'https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip' path<-file.path(getwd(),"hpc.zip") download.file(url,path) household_power_consumption<-read.csv( unz(path, "household_power_consumption.txt"), sep=";", quote="",na="?") dim(household_power_consumption) #207...
/plot4.R
no_license
IgorOnyshchenko/Exploratory_data_analysis_in_R_v1
R
false
false
1,312
r
#Download data file url<-'https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip' path<-file.path(getwd(),"hpc.zip") download.file(url,path) household_power_consumption<-read.csv( unz(path, "household_power_consumption.txt"), sep=";", quote="",na="?") dim(household_power_consumption) #207...
separate_bike_model <- function(data, keep_model_column = TRUE, append = TRUE) { if (!append) { data <- data %>% select(model) } # Fix typo output_tbl <- data %>% mutate(model = case_when( model == "CAAD Disc Ultegra" ~ "CAAD12 Disc Ultegra", model == "...
/price_prediction2/02_process_data.R
no_license
dukebird/prueba
R
false
false
3,139
r
separate_bike_model <- function(data, keep_model_column = TRUE, append = TRUE) { if (!append) { data <- data %>% select(model) } # Fix typo output_tbl <- data %>% mutate(model = case_when( model == "CAAD Disc Ultegra" ~ "CAAD12 Disc Ultegra", model == "...
#' @title Read table from Citavi database (via SQL) #' #' @param path Path to the local Citavi project file (.ctv6). #' @param CitDBTableName Name of the table to be read from the connected Citavi database (via \code{DBI::dbReadTable()}). #' Set to "Reference" by default. Shows all table names when set to NULL (via \co...
/R/read_Citavi_ctv6.R
no_license
dl0s/CitaviR
R
false
false
2,060
r
#' @title Read table from Citavi database (via SQL) #' #' @param path Path to the local Citavi project file (.ctv6). #' @param CitDBTableName Name of the table to be read from the connected Citavi database (via \code{DBI::dbReadTable()}). #' Set to "Reference" by default. Shows all table names when set to NULL (via \co...
library(scpm) ### Name: scpm-package ### Title: 'An R Package for Spatial Smoothing' ### Aliases: scpm-package scpm ### ** Examples require(geoR) data(landim1, package = "geoR") d <- as.sss(landim1, coords = NULL, coords.col = 1:2, data.col = 3:4) ##fitting spatial linear model with response A and covariate B ##Gne...
/data/genthat_extracted_code/scpm/examples/scpm-package.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,300
r
library(scpm) ### Name: scpm-package ### Title: 'An R Package for Spatial Smoothing' ### Aliases: scpm-package scpm ### ** Examples require(geoR) data(landim1, package = "geoR") d <- as.sss(landim1, coords = NULL, coords.col = 1:2, data.col = 3:4) ##fitting spatial linear model with response A and covariate B ##Gne...
# Predicting classes for new samples rm(list=ls()) library(randomForest) library(glmnet) source(file.path("code","R","train-pred_per_Samp.R")) # Load classifier mod <- "Capper" ### Change RF model accordingly load(file.path("Results",paste0("rf.pred_",mod,".RData"))) probes_rf <- rownames(rf.pred$importance) # Load c...
/code/R/predictionNewSamples.R
no_license
cjthernandez/CNS_RF_Class
R
false
false
1,063
r
# Predicting classes for new samples rm(list=ls()) library(randomForest) library(glmnet) source(file.path("code","R","train-pred_per_Samp.R")) # Load classifier mod <- "Capper" ### Change RF model accordingly load(file.path("Results",paste0("rf.pred_",mod,".RData"))) probes_rf <- rownames(rf.pred$importance) # Load c...
### ========================================================================= ### Comparing and ordering the elements in one or more XRawList objects ### ------------------------------------------------------------------------- ### ### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ### pcom...
/R/XRawList-comparison.R
no_license
kiwiroy/XVector
R
false
false
4,638
r
### ========================================================================= ### Comparing and ordering the elements in one or more XRawList objects ### ------------------------------------------------------------------------- ### ### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ### pcom...
#This script takes data from the Individual household electric power consumption Data Set and plots a time series of Global Active Power #-----------------------START: OPEN AND CLEAN DATA------------------------------------# #read the dataset into variable called 'electric' (NA values in dataset are given as "?") elect...
/plot2.R
no_license
jaroberti/ExData_Plotting1
R
false
false
1,498
r
#This script takes data from the Individual household electric power consumption Data Set and plots a time series of Global Active Power #-----------------------START: OPEN AND CLEAN DATA------------------------------------# #read the dataset into variable called 'electric' (NA values in dataset are given as "?") elect...
# This program read data about pollutant emission in the years of 1999, 2002, 2005, and 2008 # library(dplyr) library(ggplot2) library(gridExtra) setwd("C:/dados/coursera/dscoursera/eda") fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip" fileName <- "FNEI_data.zip" directory <- "data" ...
/plot1.R
no_license
bergojr/eda
R
false
false
1,204
r
# This program read data about pollutant emission in the years of 1999, 2002, 2005, and 2008 # library(dplyr) library(ggplot2) library(gridExtra) setwd("C:/dados/coursera/dscoursera/eda") fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip" fileName <- "FNEI_data.zip" directory <- "data" ...
mtcars plot(women) install.packages('car') ?women x=1:100 y x y=seq(1,100, by=2)
/file2.R
no_license
ishita9327/analytics1-
R
false
false
82
r
mtcars plot(women) install.packages('car') ?women x=1:100 y x y=seq(1,100, by=2)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.secretsmanager_operations.R \name{tag_resource} \alias{tag_resource} \title{Attaches one or more tags, each consisting of a key name and a value, to the specified secret} \usage{ tag_resource(SecretId, Tags) } \arguments{ \item{SecretId}...
/service/paws.secretsmanager/man/tag_resource.Rd
permissive
CR-Mercado/paws
R
false
true
4,221
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.secretsmanager_operations.R \name{tag_resource} \alias{tag_resource} \title{Attaches one or more tags, each consisting of a key name and a value, to the specified secret} \usage{ tag_resource(SecretId, Tags) } \arguments{ \item{SecretId}...
#Poors properties.R # # Copyright © 2018:Arin Shahbazian # Licence: GPL-3 # rm(list=ls()) starttime <- proc.time() library(yaml) Settings <- yaml.load_file("Settings.yaml") library(readxl) library(stringr) library(data.table) library(sm) library(ggplot2) library(xlsx) library(haven) for(year in (Settings$startyear...
/R/Archive/November 2019/85-Poor properties_Home2.R
no_license
IPRCIRI/IRHEIS
R
false
false
18,074
r
#Poors properties.R # # Copyright © 2018:Arin Shahbazian # Licence: GPL-3 # rm(list=ls()) starttime <- proc.time() library(yaml) Settings <- yaml.load_file("Settings.yaml") library(readxl) library(stringr) library(data.table) library(sm) library(ggplot2) library(xlsx) library(haven) for(year in (Settings$startyear...
rm(list = ls()) library("highcharter") library("ggdendro") library("dplyr") x <- iris[, -5] %>% dist %>% hclust %>% as.dendrogram() x <- mtcars %>% dist %>% hclust %>% as.dendrogram() hchart(as.dendrogram(hclust(dist(mtcars)))) attr(x, "class") <- "dendrogram" class(x) plot(x) hchart(x) highcharter::...
/devscripts/dendro.R
no_license
APKBridget/highcharter
R
false
false
1,598
r
rm(list = ls()) library("highcharter") library("ggdendro") library("dplyr") x <- iris[, -5] %>% dist %>% hclust %>% as.dendrogram() x <- mtcars %>% dist %>% hclust %>% as.dendrogram() hchart(as.dendrogram(hclust(dist(mtcars)))) attr(x, "class") <- "dendrogram" class(x) plot(x) hchart(x) highcharter::...
if (!require("pacman")) { install.packages("pacman") } pacman::p_load( tidyverse, lubridate, zeallot, RcppRoll, caret, rsample, xgboost, mlrMBO, hydroGOF, cowplot, ggthemes ) # Data -------------------------------------------------------------------- load("./data/WS/ready_for_training.Rda") l...
/WS_compute_SHAP.R
permissive
stsfk/ExplainableML_SuDS
R
false
false
1,497
r
if (!require("pacman")) { install.packages("pacman") } pacman::p_load( tidyverse, lubridate, zeallot, RcppRoll, caret, rsample, xgboost, mlrMBO, hydroGOF, cowplot, ggthemes ) # Data -------------------------------------------------------------------- load("./data/WS/ready_for_training.Rda") l...
#### 第一章 多项式回归的实现 过拟合现象 #### polyfit<-function(y,x,maxdeg){ pwrs<-powers(x,maxdeg)#生成不同阶数的x lmout<-list() class(lmout)<-"polyreg"#创建一个新类 for(i in 1:maxdeg){ lmo<-lm(y~pwrs[,1:i]) lmo$fitted.cvvalues<-lvoneout(y,pwrs[,1:i,drop=FALSE]) lmout[[i]]<-lmo } lmout$x<-x lmout$y<-y ret...
/李航统计学习方法笔记代码.R
no_license
BlankSeraph/machine-learning
R
false
false
89,852
r
#### 第一章 多项式回归的实现 过拟合现象 #### polyfit<-function(y,x,maxdeg){ pwrs<-powers(x,maxdeg)#生成不同阶数的x lmout<-list() class(lmout)<-"polyreg"#创建一个新类 for(i in 1:maxdeg){ lmo<-lm(y~pwrs[,1:i]) lmo$fitted.cvvalues<-lvoneout(y,pwrs[,1:i,drop=FALSE]) lmout[[i]]<-lmo } lmout$x<-x lmout$y<-y ret...
# Developmen log # version 6 # What is new # Added BEFdata for central Russia species # Added LAI calculation according top Beer law # Corrected variable filtering according to it position, now filtered by name # Starting thinking to switch to dtplyr # Switched from cat to special logging function # Switching to forea...
/code/__TTcalc_site_6.R
no_license
yaroslavtsevam/TT-
R
false
false
52,980
r
# Developmen log # version 6 # What is new # Added BEFdata for central Russia species # Added LAI calculation according top Beer law # Corrected variable filtering according to it position, now filtered by name # Starting thinking to switch to dtplyr # Switched from cat to special logging function # Switching to forea...
#' @title HTTP client #' @description Create and execute HTTP requests #' #' @export #' @template args #' @param path URL path, appended to the base URL #' @param query query terms, as a named list #' @param body body as an R list #' @param encode one of form, multipart, json, or raw #' @param disk a path to write to. ...
/R/client.R
permissive
aaronwolen/crul
R
false
false
19,836
r
#' @title HTTP client #' @description Create and execute HTTP requests #' #' @export #' @template args #' @param path URL path, appended to the base URL #' @param query query terms, as a named list #' @param body body as an R list #' @param encode one of form, multipart, json, or raw #' @param disk a path to write to. ...
testlist <- list(doy = c(-Inf, 0), latitude = c(-6.93132091139805e-107, 1.86807199752012e+112, -Inf, 2.00994342527714e-162, 1.81541609400943e-79, 7.89363005545926e+139, 2.3317908961407e-93, NaN, -1.5134579018881e+21, 1.44942408802595e-285, -1.72131968218895e+83, 0), temp = c(8.5728629954997e-312, 1.56898424065867e+8...
/meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615832638-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
420
r
testlist <- list(doy = c(-Inf, 0), latitude = c(-6.93132091139805e-107, 1.86807199752012e+112, -Inf, 2.00994342527714e-162, 1.81541609400943e-79, 7.89363005545926e+139, 2.3317908961407e-93, NaN, -1.5134579018881e+21, 1.44942408802595e-285, -1.72131968218895e+83, 0), temp = c(8.5728629954997e-312, 1.56898424065867e+8...
library(boot) library(reshape2) library(lme4) demo<-read.csv('~/pnc_demo.csv') subjects<-read.csv('~/participants.txt',header = F) ageSex<-data.frame(demo$ageAtScan1,as.factor(demo$sex),demo$scanid,demo$bblid) colnames(ageSex)[4]<-'bblid' colnames(ageSex)[1]<-'Age' Rest_Motion_Data <- read.csv("~/n1601_RestQAData_2017...
/scripts/derive_mixedModels/mixedEf_vert_looper_pmacs921_BoStr.R
no_license
weiwei-wch/multiscale
R
false
false
4,184
r
library(boot) library(reshape2) library(lme4) demo<-read.csv('~/pnc_demo.csv') subjects<-read.csv('~/participants.txt',header = F) ageSex<-data.frame(demo$ageAtScan1,as.factor(demo$sex),demo$scanid,demo$bblid) colnames(ageSex)[4]<-'bblid' colnames(ageSex)[1]<-'Age' Rest_Motion_Data <- read.csv("~/n1601_RestQAData_2017...
######################################### ## structable structable <- function(x, ...) UseMethod("structable") structable.formula <- function(formula, data = NULL, direction = NULL, split_vertical = NULL, ..., subset, na.action) { if (missing(formula) || !inherits(formula, "formul...
/pkgs/vcd/R/structable.R
no_license
vaguiar/EDAV_Project_2017
R
false
false
18,364
r
######################################### ## structable structable <- function(x, ...) UseMethod("structable") structable.formula <- function(formula, data = NULL, direction = NULL, split_vertical = NULL, ..., subset, na.action) { if (missing(formula) || !inherits(formula, "formul...
PlotCDTDatasetCmd <- function(){ listOpenFiles <- openFile_ttkcomboList() if(WindowsOS()){ largeur0 <- .cdtEnv$tcl$fun$w.widgets(33) largeur1 <- .cdtEnv$tcl$fun$w.widgets(31) largeur2 <- 23 largeur3 <- 12 largeur4 <- 10 }else{ largeur0 <- .cdtEnv$tcl$fun$w.wi...
/R/cdtPlot_CDTDataset_leftCmd.R
no_license
YabOusmane/CDT
R
false
false
16,355
r
PlotCDTDatasetCmd <- function(){ listOpenFiles <- openFile_ttkcomboList() if(WindowsOS()){ largeur0 <- .cdtEnv$tcl$fun$w.widgets(33) largeur1 <- .cdtEnv$tcl$fun$w.widgets(31) largeur2 <- 23 largeur3 <- 12 largeur4 <- 10 }else{ largeur0 <- .cdtEnv$tcl$fun$w.wi...
library(rwty) ### Name: tree.dist.matrix ### Title: Tree distance matrix calculation ### Aliases: tree.dist.matrix ### Keywords: distance, robinson-foulds tree treespace, ### ** Examples data(fungus) tree.dist.matrix(fungus$Fungus.Run1$trees)
/data/genthat_extracted_code/rwty/examples/tree.dist.matrix.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
250
r
library(rwty) ### Name: tree.dist.matrix ### Title: Tree distance matrix calculation ### Aliases: tree.dist.matrix ### Keywords: distance, robinson-foulds tree treespace, ### ** Examples data(fungus) tree.dist.matrix(fungus$Fungus.Run1$trees)
library(shiny) options(shiny.maxRequestSize = 3000*1024^2) suppressWarnings(suppressMessages(library(data.table))) suppressWarnings(suppressMessages(library(plyr))) suppressWarnings(suppressMessages(library(dplyr))) suppressWarnings(suppressMessages(library(reshape2))) suppressWarnings(suppressMessages(libr...
/processapp.R
no_license
paulahsan/CDP
R
false
false
7,159
r
library(shiny) options(shiny.maxRequestSize = 3000*1024^2) suppressWarnings(suppressMessages(library(data.table))) suppressWarnings(suppressMessages(library(plyr))) suppressWarnings(suppressMessages(library(dplyr))) suppressWarnings(suppressMessages(library(reshape2))) suppressWarnings(suppressMessages(libr...
#'CreateConceptSetDatasets #' #' The function CreateConceptSetDatasets inspects a set of input tables af data and creates a group of datasets, each corresponding to a concept set. Each dataset contains the records of the input tables that match the corresponding concept set and is named out of it. #' #' #' @param datas...
/p_macro/CreateConceptSetDatasets_v14.R
no_license
ARS-toscana/CONSIGN
R
false
false
20,825
r
#'CreateConceptSetDatasets #' #' The function CreateConceptSetDatasets inspects a set of input tables af data and creates a group of datasets, each corresponding to a concept set. Each dataset contains the records of the input tables that match the corresponding concept set and is named out of it. #' #' #' @param datas...
#' dimsum__check_countfile #' #' Check whether user-specified count file correctly formatted. #' #' @param dimsum_meta an experiment metadata object (required) #' @param input_dt input data.table (required) #' #' @return Reformatted data.table #' @export #' @import data.table dimsum__check_countfile <- function( dim...
/R/dimsum__check_countfile.R
permissive
hemantkiitg/DiMSum
R
false
false
3,196
r
#' dimsum__check_countfile #' #' Check whether user-specified count file correctly formatted. #' #' @param dimsum_meta an experiment metadata object (required) #' @param input_dt input data.table (required) #' #' @return Reformatted data.table #' @export #' @import data.table dimsum__check_countfile <- function( dim...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.r \docType{data} \name{primate.dat} \alias{primate.dat} \title{Primate line transect survey data.} \format{A list with elements x (perpendicular distance) and y (forward distance).} \source{ We are grateful to Matthew Nowak from the Suma...
/LT2D/man/primate.dat.Rd
no_license
calliste-fagard-jenkin/LT2D-work
R
false
true
894
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.r \docType{data} \name{primate.dat} \alias{primate.dat} \title{Primate line transect survey data.} \format{A list with elements x (perpendicular distance) and y (forward distance).} \source{ We are grateful to Matthew Nowak from the Suma...
\name{RandomPortfolios} \alias{RandomPortfolios} \title{Some Title} \usage{ RandomPortfolios(strategy, pars, n = 100, parallel = T) } \description{ Some Title }
/man/RandomPortfolios.Rd
no_license
vzs/strategery
R
false
false
166
rd
\name{RandomPortfolios} \alias{RandomPortfolios} \title{Some Title} \usage{ RandomPortfolios(strategy, pars, n = 100, parallel = T) } \description{ Some Title }
getCCC2<-function(F, model="weibull") { # getCCC2_r.r # Correlation developed by David Silkworth in Oct 2013 # Back-converted in Nov 2019 from ansi c code in abpv.c from abremPivotals latest modification (May 2014) getCCC2_r<-function(nF, dist="weibull") { T1w<-c( 0.792235,0.7990604,0.8076126,0.8204102,0.83...
/R/getCCC2.r
no_license
Weibull-R/WeibullR
R
false
false
3,617
r
getCCC2<-function(F, model="weibull") { # getCCC2_r.r # Correlation developed by David Silkworth in Oct 2013 # Back-converted in Nov 2019 from ansi c code in abpv.c from abremPivotals latest modification (May 2014) getCCC2_r<-function(nF, dist="weibull") { T1w<-c( 0.792235,0.7990604,0.8076126,0.8204102,0.83...
################################# ### Linear regression example ### ### with simulated data 1 ### ################################# # Set seed (so that simulations may be redone) set.seed(100) # Number of data points n <- 20 # Intercept, slope, and std. deviation for simulations beta0 <- 50 beta1 <- 200 s...
/introstat/slides02402/week8.R
no_license
Collinnn/Aflevering1
R
false
false
6,278
r
################################# ### Linear regression example ### ### with simulated data 1 ### ################################# # Set seed (so that simulations may be redone) set.seed(100) # Number of data points n <- 20 # Intercept, slope, and std. deviation for simulations beta0 <- 50 beta1 <- 200 s...
avg_wrapper = function(counts, interval, isGA) { library(dplyr) pp = counts %>% filter(dCD>0) counts = smooth_intrapatient_avg(counts, interval, isGA) counts = interpatient_avg(counts, pp, interval, isGA) return(counts) } smooth_intrapatient_avg = function(counts, interval, isGA) { counts = counts...
/fig_2/a/fig_2a_helper.R
no_license
jianglst/pregnancy_cfRNA
R
false
false
4,218
r
avg_wrapper = function(counts, interval, isGA) { library(dplyr) pp = counts %>% filter(dCD>0) counts = smooth_intrapatient_avg(counts, interval, isGA) counts = interpatient_avg(counts, pp, interval, isGA) return(counts) } smooth_intrapatient_avg = function(counts, interval, isGA) { counts = counts...
## Put comments here that give an overall description of what your ## functions do ## Creates a matrix that will cache its inverse, a costly operation makeCacheMatrix <- function(x = matrix()) { inv <- NULL list( set = function (y) { x <<- y inv <<- NULL }, get = function() x, setInv...
/cachematrix.R
no_license
abrady/ProgrammingAssignment2
R
false
false
1,046
r
## Put comments here that give an overall description of what your ## functions do ## Creates a matrix that will cache its inverse, a costly operation makeCacheMatrix <- function(x = matrix()) { inv <- NULL list( set = function (y) { x <<- y inv <<- NULL }, get = function() x, setInv...
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common get_config new_operation new_request send_request #' @include amplify_service.R NULL #' Creates a new Amplify app #' #' @description #' Creates a new Amplify app. #' #' @usage #' amplify_create_app(name, description, repository,...
/cran/paws.mobile/R/amplify_operations.R
permissive
sanchezvivi/paws
R
false
false
63,203
r
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common get_config new_operation new_request send_request #' @include amplify_service.R NULL #' Creates a new Amplify app #' #' @description #' Creates a new Amplify app. #' #' @usage #' amplify_create_app(name, description, repository,...
\name{plot_offense_counts} \alias{plot_offense_counts} \title{Plot Offense Counts of Crime in DC} \usage{ plot_offense_counts(crime_data) } \arguments{ \item{crime_data}{data.frame to plot} } \description{ Plots counts of crimes from 2006-2012. } \examples{ plot_offense_counts(crime_data=dc_crime_data_sample) }
/man/plot_offense_counts.Rd
no_license
DaveDCGIS/dc_crime_analysis
R
false
false
320
rd
\name{plot_offense_counts} \alias{plot_offense_counts} \title{Plot Offense Counts of Crime in DC} \usage{ plot_offense_counts(crime_data) } \arguments{ \item{crime_data}{data.frame to plot} } \description{ Plots counts of crimes from 2006-2012. } \examples{ plot_offense_counts(crime_data=dc_crime_data_sample) }
library(proftools) ### Name: plotProfileCallGraph ### Title: Plot Call Graph for Rprof Profile Data ### Aliases: plotProfileCallGraph ### Keywords: programming utilities ### ** Examples pd <- readProfileData(system.file("samples", "glmEx.out", package="proftools")) plotProfileCallGraph(pd) plotProfileCallGraph(pd, ...
/data/genthat_extracted_code/proftools/examples/plotProfileCallGraph.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
402
r
library(proftools) ### Name: plotProfileCallGraph ### Title: Plot Call Graph for Rprof Profile Data ### Aliases: plotProfileCallGraph ### Keywords: programming utilities ### ** Examples pd <- readProfileData(system.file("samples", "glmEx.out", package="proftools")) plotProfileCallGraph(pd) plotProfileCallGraph(pd, ...
#' Interactive artifact-distribution meta-analysis correcting for Case II direct range restriction and measurement error #' #' @param x List of bare-bones meta-analytic data, artifact-distribution objects for X and Y, and other meta-analysis options. #' #' @return A meta-analysis class object containing all results. #'...
/R/ma_r_ad_rb_adj.R
no_license
Meta-Repository/psychmeta
R
false
false
21,872
r
#' Interactive artifact-distribution meta-analysis correcting for Case II direct range restriction and measurement error #' #' @param x List of bare-bones meta-analytic data, artifact-distribution objects for X and Y, and other meta-analysis options. #' #' @return A meta-analysis class object containing all results. #'...
binary.file <- "file.Rdata" if (file.exists(binary.file)) { load(binary.file) } else { ## do commands }
/loadfile.R
no_license
adbecker/snips
R
false
false
113
r
binary.file <- "file.Rdata" if (file.exists(binary.file)) { load(binary.file) } else { ## do commands }
#Logan Thayer and Diane Lee #getting every odd row from a dataframe every.odd <- function(x){ odd.rows = x[seq(from = 1, to = nrow(x), 2), ] return(odd.rows) }
/ex7_script1.R
no_license
dlee24/ICB2019_Exercise07
R
false
false
171
r
#Logan Thayer and Diane Lee #getting every odd row from a dataframe every.odd <- function(x){ odd.rows = x[seq(from = 1, to = nrow(x), 2), ] return(odd.rows) }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/makeNA.R \name{makeNA} \alias{makeNA} \title{makeNA} \usage{ makeNA(data, n_missing = 10, value_NA = NA) } \arguments{ \item{data}{an object of class data.frame to apply missing values.} \item{n_missing}{an object of class int specifying NA ...
/man/makeNA.Rd
permissive
phillip-wong/seeNA
R
false
true
650
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/makeNA.R \name{makeNA} \alias{makeNA} \title{makeNA} \usage{ makeNA(data, n_missing = 10, value_NA = NA) } \arguments{ \item{data}{an object of class data.frame to apply missing values.} \item{n_missing}{an object of class int specifying NA ...
library(ggplot2) library(plotly) library(RColorBrewer) library(ggthemes) library(maps) library(RColorBrewer) library(leaflet) library(htmltools) source("data_prep2.R") max_count <- max(tidydistrict_counts$Count) schools <- unique(tidydata$School) groups <- unique(tidydata$Group) types <- c("All", unique(tidydata$Type...
/CMS_Diversity/app.R
no_license
cromano8/CMS-Diversity
R
false
false
19,418
r
library(ggplot2) library(plotly) library(RColorBrewer) library(ggthemes) library(maps) library(RColorBrewer) library(leaflet) library(htmltools) source("data_prep2.R") max_count <- max(tidydistrict_counts$Count) schools <- unique(tidydata$School) groups <- unique(tidydata$Group) types <- c("All", unique(tidydata$Type...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/build.R \name{build_create_image} \alias{build_create_image} \title{Building create image request} \usage{ build_create_image(url = NULL, pageElementProperty = NULL, objectId = NULL, requests_list = NULL) } \arguments{ \item{url}{A characte...
/man/build_create_image.Rd
no_license
nazroll/googleslides
R
false
true
736
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/build.R \name{build_create_image} \alias{build_create_image} \title{Building create image request} \usage{ build_create_image(url = NULL, pageElementProperty = NULL, objectId = NULL, requests_list = NULL) } \arguments{ \item{url}{A characte...
regressionData<-read.table("/Users/Anesthesia/Desktop/GUIDE628/roundData/RegData.txt", header=TRUE) #1 library(rpart) # 我们可以使用help(rpart)来获取rpart的使用帮助,帮助文档Usage如下 # rpart(formula, data, weights, subset, na.action = na.rpart, method, # model = FALSE, x = FALSE, y = TRUE, parms, control, cost, ...) fit <- rpart(regress...
/codes/Goal1/attribute_analysis/rpart.R
no_license
junxiazhujoy/STAT628_Module2
R
false
false
2,530
r
regressionData<-read.table("/Users/Anesthesia/Desktop/GUIDE628/roundData/RegData.txt", header=TRUE) #1 library(rpart) # 我们可以使用help(rpart)来获取rpart的使用帮助,帮助文档Usage如下 # rpart(formula, data, weights, subset, na.action = na.rpart, method, # model = FALSE, x = FALSE, y = TRUE, parms, control, cost, ...) fit <- rpart(regress...
## Merge the test ans training datasets # 1. Load the librart library(dplyr) # 2. work directory if(!dir.exists("./data")) dir.create("./data") setwd("./data/") # 3. Download the data fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" destFile <- "UCI HAR D...
/run_Analysis.R
no_license
gtibana/DataCleaning_project
R
false
false
2,589
r
## Merge the test ans training datasets # 1. Load the librart library(dplyr) # 2. work directory if(!dir.exists("./data")) dir.create("./data") setwd("./data/") # 3. Download the data fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" destFile <- "UCI HAR D...
#' tsf_paired #' #' OTU transformation for paired data. Computes within-subject change (in presence #' for qualitative metrics and abundance for quantitative metrics) between time #' points for each taxon. #' #' @param otus Matrix of OTU counts or proportions. Notes: (1) Will be transformed to #' ...
/pldist.Rcheck/00_pkg_src/pldist/R/pltransform.R
no_license
aplantin/pldist_master
R
false
false
8,446
r
#' tsf_paired #' #' OTU transformation for paired data. Computes within-subject change (in presence #' for qualitative metrics and abundance for quantitative metrics) between time #' points for each taxon. #' #' @param otus Matrix of OTU counts or proportions. Notes: (1) Will be transformed to #' ...
\alias{GtkProgress} \name{GtkProgress} \title{GtkProgress} \description{Base class for GtkProgressBar} \section{Methods and Functions}{ \code{\link{gtkProgressSetShowText}(object, show.text)}\cr \code{\link{gtkProgressSetTextAlignment}(object, x.align, y.align)}\cr \code{\link{gtkProgressSetFormatString}(object, format...
/RGtk2/man/GtkProgress.Rd
no_license
hjy1210/RGtk2
R
false
false
2,549
rd
\alias{GtkProgress} \name{GtkProgress} \title{GtkProgress} \description{Base class for GtkProgressBar} \section{Methods and Functions}{ \code{\link{gtkProgressSetShowText}(object, show.text)}\cr \code{\link{gtkProgressSetTextAlignment}(object, x.align, y.align)}\cr \code{\link{gtkProgressSetFormatString}(object, format...
library(rethinking) d<-read.table("data.clean.txt",sep="\t",header=T,stringsAsFactors = F) names(d) dat <- list( C=d$CountC, A = standardize(d$Age), G = as.integer(as.factor(d$Gender)), #1 Man, 2 Woman CD = as.integer(d$COND), Mfm = standardize(d$MAC.fam), Mg = standardize(d$MAC.gro), Mr ...
/02_analysis_country_contrast.R
no_license
costlysignalling/coronaMACprereg
R
false
false
6,851
r
library(rethinking) d<-read.table("data.clean.txt",sep="\t",header=T,stringsAsFactors = F) names(d) dat <- list( C=d$CountC, A = standardize(d$Age), G = as.integer(as.factor(d$Gender)), #1 Man, 2 Woman CD = as.integer(d$COND), Mfm = standardize(d$MAC.fam), Mg = standardize(d$MAC.gro), Mr ...
testlist <- list(phi = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), x = c(1.38354125570936e-311, -1.657912...
/dcurver/inst/testfiles/ddc/AFL_ddc/ddc_valgrind_files/1609866618-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
831
r
testlist <- list(phi = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), x = c(1.38354125570936e-311, -1.657912...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/template.R \name{metric_summarizer} \alias{metric_summarizer} \title{Developer function for summarizing new metrics} \usage{ metric_summarizer( metric_nm, metric_fn, data, truth, estimate, estimator = NULL, na_rm = TRUE, ..., ...
/man/metric_summarizer.Rd
no_license
trangdata/yardstick
R
false
true
3,058
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/template.R \name{metric_summarizer} \alias{metric_summarizer} \title{Developer function for summarizing new metrics} \usage{ metric_summarizer( metric_nm, metric_fn, data, truth, estimate, estimator = NULL, na_rm = TRUE, ..., ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kendra_operations.R \name{kendra_create_data_source} \alias{kendra_create_data_source} \title{Creates a data source that you use to with an Amazon Kendra index} \usage{ kendra_create_data_source(Name, IndexId, Type, Configuration, Descripti...
/paws/man/kendra_create_data_source.Rd
permissive
sanchezvivi/paws
R
false
true
12,394
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kendra_operations.R \name{kendra_create_data_source} \alias{kendra_create_data_source} \title{Creates a data source that you use to with an Amazon Kendra index} \usage{ kendra_create_data_source(Name, IndexId, Type, Configuration, Descripti...
#Plot log scale daily cases and total cases for log-curve prediction library(tidyverse) library(gghighlight) library(scales) library(here) library(ggsci) library(TTR) library(ggsci) library(gganimate) library(gifski) source("scripts/getCases.R") COVID <- as_tibble(COVID) #Process data into sum form COVID <- rename(CO...
/scripts/loglogAnimation.R
no_license
cortbreuer/COVID-19
R
false
false
2,495
r
#Plot log scale daily cases and total cases for log-curve prediction library(tidyverse) library(gghighlight) library(scales) library(here) library(ggsci) library(TTR) library(ggsci) library(gganimate) library(gifski) source("scripts/getCases.R") COVID <- as_tibble(COVID) #Process data into sum form COVID <- rename(CO...
pdf_file<-"pdf/tablecharts_gantt_simplified.pdf" c0<-"black"; c1<-"green"; c2<-"red"; c3<-"blue"; c4<-"orange"; c5<-"brown" myColour_done<-"grey" myColour<-c(c0,c1,c1,c1,c0,c0,c2,c2,c2,c2,c0,c0,c3,c3,c3,c0,c0,c4,c4,c4,c0,c0,c5) source("scripts/inc_gantt_simplified.r") dev.off()
/dataFromBook DataVISWithR/scripts/tablecharts_gantt_simplified.r
no_license
shahidnawazkhan/Machine-Learning-Book
R
false
false
278
r
pdf_file<-"pdf/tablecharts_gantt_simplified.pdf" c0<-"black"; c1<-"green"; c2<-"red"; c3<-"blue"; c4<-"orange"; c5<-"brown" myColour_done<-"grey" myColour<-c(c0,c1,c1,c1,c0,c0,c2,c2,c2,c2,c0,c0,c3,c3,c3,c0,c0,c4,c4,c4,c0,c0,c5) source("scripts/inc_gantt_simplified.r") dev.off()
testlist <- list(a = -1L, b = -1L, x = c(-256L, -256L, -1L, -2071690108L, -2071952252L, -2071690108L, -2071690108L, -2071690108L, 1361077359L, 1969384549L, 703787569L, 184549375L, -218972161L, -1L, NA, -868879630L, -218972161L, -52L, -858980353L, -870527796L, -858993460L, -2228225L, -1L, NA, -572653569L, -1L, -1L, ...
/grattan/inst/testfiles/anyOutside/libFuzzer_anyOutside/anyOutside_valgrind_files/1610055867-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
680
r
testlist <- list(a = -1L, b = -1L, x = c(-256L, -256L, -1L, -2071690108L, -2071952252L, -2071690108L, -2071690108L, -2071690108L, 1361077359L, 1969384549L, 703787569L, 184549375L, -218972161L, -1L, NA, -868879630L, -218972161L, -52L, -858980353L, -870527796L, -858993460L, -2228225L, -1L, NA, -572653569L, -1L, -1L, ...
################################################################################ ## PROGRAM: write.merlin.R ## BY: Bhoom Suktitipat, MD,PhD ## DATE: Tue Dec 20 15:38:18 EST 2011 ################################################################################ ## GOAL: write pedigree file for Merlin (LINKAGE FORMAT)...
/write.merlin.r
no_license
hypotheses/Genetics
R
false
false
3,804
r
################################################################################ ## PROGRAM: write.merlin.R ## BY: Bhoom Suktitipat, MD,PhD ## DATE: Tue Dec 20 15:38:18 EST 2011 ################################################################################ ## GOAL: write pedigree file for Merlin (LINKAGE FORMAT)...
library(Sleuth2) ### Name: ex2119 ### Title: Meta-Analysis of Breast Cancer and Lactation Studies ### Aliases: ex2119 ### Keywords: datasets ### ** Examples str(ex2119)
/data/genthat_extracted_code/Sleuth2/examples/ex2119.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
176
r
library(Sleuth2) ### Name: ex2119 ### Title: Meta-Analysis of Breast Cancer and Lactation Studies ### Aliases: ex2119 ### Keywords: datasets ### ** Examples str(ex2119)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/stfilter.R \name{TWSE_csv} \alias{TWSE_csv} \title{Get daily record of stock from TWSE} \usage{ TWSE_csv(stock = "1215", year_in, month_in) } \arguments{ \item{stock}{stock code} \item{year_in}{year, ex:'2017'} \item{month_in}{month, ex: '0...
/man/TWSE_csv.Rd
no_license
KuiMing/stfilter
R
false
true
514
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/stfilter.R \name{TWSE_csv} \alias{TWSE_csv} \title{Get daily record of stock from TWSE} \usage{ TWSE_csv(stock = "1215", year_in, month_in) } \arguments{ \item{stock}{stock code} \item{year_in}{year, ex:'2017'} \item{month_in}{month, ex: '0...
#' Add covariate levels detection function plots #' #' @inherit mrds::add.df.covar.line #' @name add_df_covar_line #' @docType methods #' @param ddf a fitted detection function object. #' @param data a `data.frame` with the covariate combination you want to plot. #' @param \dots extra arguments to give to [`line...
/R/add_df_covar_line.R
no_license
cran/Distance
R
false
false
1,721
r
#' Add covariate levels detection function plots #' #' @inherit mrds::add.df.covar.line #' @name add_df_covar_line #' @docType methods #' @param ddf a fitted detection function object. #' @param data a `data.frame` with the covariate combination you want to plot. #' @param \dots extra arguments to give to [`line...
\name{invalsi} \alias{invalsi} \docType{data} \title{The Invalsi data Set} \description{ The INVALSI "Istituto nazionale per la valutazione del sistema educativo di istruzione e di formazione" data set is a subset of 15398 tweets from the original data collected during the days of the administration of a national test ...
/man/invalsi.Rd
no_license
blogsvoices/iSAX
R
false
false
899
rd
\name{invalsi} \alias{invalsi} \docType{data} \title{The Invalsi data Set} \description{ The INVALSI "Istituto nazionale per la valutazione del sistema educativo di istruzione e di formazione" data set is a subset of 15398 tweets from the original data collected during the days of the administration of a national test ...
library(rechonest) ### Name: get_artist_videos ### Title: To get a list of video documents found on the web related to an ### artist ### Aliases: get_artist_videos ### ** Examples ## Not run: ##D data=get_artist_videos(api_key,name="coldplay") ## End(Not run)
/data/genthat_extracted_code/rechonest/examples/get_artist_videos.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
270
r
library(rechonest) ### Name: get_artist_videos ### Title: To get a list of video documents found on the web related to an ### artist ### Aliases: get_artist_videos ### ** Examples ## Not run: ##D data=get_artist_videos(api_key,name="coldplay") ## End(Not run)
library(data.table) library(dplyr) # Require access SNOMED CT content # Read required files language <- fread("./Language/der2_cRefset_LanguageSnapshot.txt", colClasses = 'character') Concept <- fread("./Terminology/sct2_Concept_Snapshot.txt", colClasses = 'character') description <- fread("./Terminology/sct2...
/data_manipulation_dplyr.R
no_license
Al-Murrani/data-manipulation
R
false
false
1,603
r
library(data.table) library(dplyr) # Require access SNOMED CT content # Read required files language <- fread("./Language/der2_cRefset_LanguageSnapshot.txt", colClasses = 'character') Concept <- fread("./Terminology/sct2_Concept_Snapshot.txt", colClasses = 'character') description <- fread("./Terminology/sct2...
/DataPostProcessing/perform_statistical_analysis_branch_lengths.R
no_license
g-heemeryck/SLiMTree
R
false
false
19,585
r
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/distributions.R \name{plot_distrib} \alias{plot_distrib} \title{Plot marginal distrib} \usage{ plot_distrib(asrStructure, distribDF = NULL, type = "colouredText", colour = NULL, columns = NULL, aas = NULL) } \arguments{ \item{asrStructure}{...
/ASR/man/plot_distrib.Rd
no_license
laiso1983/ASR
R
false
true
2,296
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/distributions.R \name{plot_distrib} \alias{plot_distrib} \title{Plot marginal distrib} \usage{ plot_distrib(asrStructure, distribDF = NULL, type = "colouredText", colour = NULL, columns = NULL, aas = NULL) } \arguments{ \item{asrStructure}{...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/xlsx_date.R \name{xlsx_date} \alias{xlsx_date} \title{number to date for vector/column from excel sheet with mixed value types} \usage{ xlsx_date(x, msg = NULL, minyear = 2000, maxyear = year_() + 2) } \arguments{ \item{x}{(vector of) would b...
/man/xlsx_date.Rd
no_license
LabNeuroCogDevel/LNCDR
R
false
true
751
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/xlsx_date.R \name{xlsx_date} \alias{xlsx_date} \title{number to date for vector/column from excel sheet with mixed value types} \usage{ xlsx_date(x, msg = NULL, minyear = 2000, maxyear = year_() + 2) } \arguments{ \item{x}{(vector of) would b...
x <- read.table("household_power_consumption.txt", header = TRUE, sep = ";", as.is = TRUE, na.strings = "?") y <- x[x$Date == "1/2/2007" | x$Date == "2/2/2007", ] y$DateTime <- strptime(paste(y$Date, y$Time), "%d/%m/%Y %H:%M:%S") png(file = "plot4.png") par(mfrow = c(2, 2)) plot(y$DateTime, y$Global_active_power, ...
/plot4.R
no_license
apavelyev/ExData_Plotting1
R
false
false
1,078
r
x <- read.table("household_power_consumption.txt", header = TRUE, sep = ";", as.is = TRUE, na.strings = "?") y <- x[x$Date == "1/2/2007" | x$Date == "2/2/2007", ] y$DateTime <- strptime(paste(y$Date, y$Time), "%d/%m/%Y %H:%M:%S") png(file = "plot4.png") par(mfrow = c(2, 2)) plot(y$DateTime, y$Global_active_power, ...
setwd("/home/gerardo/MEGAsync/Niche models") load('Future scenarios Bayesian/Future scenarios bayesian-P-consp.RData') library(raster) ; library(rgdal); library(maptools); library(dismo); library(rgeos) library(lgcp); library(spatstat); library(plyr); library(coda) ###################### #####Data loading##### ####...
/Preparacion lgcp.R
no_license
gerardommc/Curso-de-metodos-bayesianos-en-ENM
R
false
false
8,943
r
setwd("/home/gerardo/MEGAsync/Niche models") load('Future scenarios Bayesian/Future scenarios bayesian-P-consp.RData') library(raster) ; library(rgdal); library(maptools); library(dismo); library(rgeos) library(lgcp); library(spatstat); library(plyr); library(coda) ###################### #####Data loading##### ####...
## makeCacheMatrix creates a special matrix that is able to cache the inverse of the matrix ## cacheSolve makes used o the cache inverse matrix; if the inverse is available, then return it immediately without calculation. ## Otherwise calculate the inverse of the matrix, cache it before returning the inverse ## the i...
/ProgrammingAssignment2/cachematrix.R
no_license
number9dream/datasciencecoursera
R
false
false
1,395
r
## makeCacheMatrix creates a special matrix that is able to cache the inverse of the matrix ## cacheSolve makes used o the cache inverse matrix; if the inverse is available, then return it immediately without calculation. ## Otherwise calculate the inverse of the matrix, cache it before returning the inverse ## the i...
\name{plotSwim} \alias{plotSwim} \title{Plot a swim object} \description{Plots a swim object (the results of fitting the HMMM) as a spatial object with surrounding land boundaries. } \usage{plotSwim(object)} \arguments{ \item{object}{An object of class 'swim'.} } \author{K. Whoriskey} \references{ Vector land data...
/man/plotSwim.Rd
no_license
kimwhoriskey/swim
R
false
false
430
rd
\name{plotSwim} \alias{plotSwim} \title{Plot a swim object} \description{Plots a swim object (the results of fitting the HMMM) as a spatial object with surrounding land boundaries. } \usage{plotSwim(object)} \arguments{ \item{object}{An object of class 'swim'.} } \author{K. Whoriskey} \references{ Vector land data...
## File Name: skillspace.approximation.R ## File Version: 0.08 ########################################### # skill space approximation skillspace.approximation <- function( L, K, nmax=5000 ) { n <- nmax ndim <- K res <- sfsmisc::QUnif (n, p=ndim, leap=409) res <- 1*(res>.5) res <- rbind( rep( 0,ndim...
/R/skillspace.approximation.R
no_license
Janehappiest/CDM
R
false
false
628
r
## File Name: skillspace.approximation.R ## File Version: 0.08 ########################################### # skill space approximation skillspace.approximation <- function( L, K, nmax=5000 ) { n <- nmax ndim <- K res <- sfsmisc::QUnif (n, p=ndim, leap=409) res <- 1*(res>.5) res <- rbind( rep( 0,ndim...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/annotatr_genomes_doc.R \name{mm9_chrom_sizes} \alias{mm9_chrom_sizes} \title{mm9_chrom_sizes} \format{A numeric vector with names of chromsomes and values of length of chromsomes.} \usage{ data(mm9_chrom_sizes) } \description{ Chromosome size...
/man/mm9_chrom_sizes.Rd
no_license
Al3n70rn/annotatr
R
false
true
412
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/annotatr_genomes_doc.R \name{mm9_chrom_sizes} \alias{mm9_chrom_sizes} \title{mm9_chrom_sizes} \format{A numeric vector with names of chromsomes and values of length of chromsomes.} \usage{ data(mm9_chrom_sizes) } \description{ Chromosome size...
DescStats = function(x) { descriptiveStats = c(sum(!is.na(x)),mean(x),sd(x),quantile(x, 0.25),median(x),quantile(x, 0.75),min(x),max(x),max(x)-min(x)) descriptiveStats = round(descriptiveStats,2) descriptiveMeasure = c("Valid Sample", "Mean", "STD", "Q1", "Median", "Q3", "Min", "Max", "Range") descriptives = d...
/Logistic Regression/Descriptive Stats Function.R
no_license
dean-sh/Statistical-Learning
R
false
false
862
r
DescStats = function(x) { descriptiveStats = c(sum(!is.na(x)),mean(x),sd(x),quantile(x, 0.25),median(x),quantile(x, 0.75),min(x),max(x),max(x)-min(x)) descriptiveStats = round(descriptiveStats,2) descriptiveMeasure = c("Valid Sample", "Mean", "STD", "Q1", "Median", "Q3", "Min", "Max", "Range") descriptives = d...
#Simple manhattan plot of the Ods Ratio (OR) of assoc files #Will output a png plot #argv[1] Title #argv[2] Assoc file location #'qqman' package needs to be installed #(install.packages("qqman") library(qqman) #Able to read given arguments #args[1]:Title name for the plot args <- commandArgs(trailing = TRUE) title ...
/rScripts/manORPlot.r
permissive
RunarReve/PredictICDwithHPO
R
false
false
726
r
#Simple manhattan plot of the Ods Ratio (OR) of assoc files #Will output a png plot #argv[1] Title #argv[2] Assoc file location #'qqman' package needs to be installed #(install.packages("qqman") library(qqman) #Able to read given arguments #args[1]:Title name for the plot args <- commandArgs(trailing = TRUE) title ...
library(ggplot2) library(plyr) str(allfrog) summary(allfrog) colnames(allfrog) # indices #frogs unique.frogs <- unique(allfrog$Species) for(frog in unique.frogs){print(frog)} index.green <- which(allfrog$Species=="Green treefrog") print(paste("# green =",length(index.green))) index.barking <- which(allfrog$Species=...
/01vanmeter_archives_figs.R
no_license
amphibian-exeff/vanmeter_aerial_aect2015
R
false
false
13,017
r
library(ggplot2) library(plyr) str(allfrog) summary(allfrog) colnames(allfrog) # indices #frogs unique.frogs <- unique(allfrog$Species) for(frog in unique.frogs){print(frog)} index.green <- which(allfrog$Species=="Green treefrog") print(paste("# green =",length(index.green))) index.barking <- which(allfrog$Species=...
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) # Define UI for application that draws a histogram ui <- fluidPage( # Application title ...
/SOTU/app.R
no_license
teresarokos/class-2018-10-29
R
false
false
1,214
r
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) # Define UI for application that draws a histogram ui <- fluidPage( # Application title ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fars_functions.R \name{fars_map_state} \alias{fars_map_state} \title{Map FARS accidents in a state} \usage{ fars_map_state(state.num, year) } \arguments{ \item{state.num}{Code for the wanted state} \item{year}{Wanted year in the f...
/man/fars_map_state.Rd
no_license
danielmoralesx/dmorales.fars
R
false
true
660
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fars_functions.R \name{fars_map_state} \alias{fars_map_state} \title{Map FARS accidents in a state} \usage{ fars_map_state(state.num, year) } \arguments{ \item{state.num}{Code for the wanted state} \item{year}{Wanted year in the f...
#' @title Identify sudden gains. #' #' @description Function to identify sudden gains in longitudinal data structured in wide format. #' #' @param data A data set in wide format including an ID variable and variables for each measurement point. #' @param id_var_name String, specifying the name of the ID variable. Each ...
/R/identify_sg.R
permissive
milanwiedemann/suddengains
R
false
false
16,968
r
#' @title Identify sudden gains. #' #' @description Function to identify sudden gains in longitudinal data structured in wide format. #' #' @param data A data set in wide format including an ID variable and variables for each measurement point. #' @param id_var_name String, specifying the name of the ID variable. Each ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/youtube_functions.R \name{videos.insert} \alias{videos.insert} \title{Uploads a video to YouTube and optionally sets the video's metadata.} \usage{ videos.insert(Video, part, autoLevels = NULL, notifySubscribers = NULL, onBehalfOfContentOwn...
/googleyoutubev3.auto/man/videos.insert.Rd
permissive
uwazac/autoGoogleAPI
R
false
true
2,091
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/youtube_functions.R \name{videos.insert} \alias{videos.insert} \title{Uploads a video to YouTube and optionally sets the video's metadata.} \usage{ videos.insert(Video, part, autoLevels = NULL, notifySubscribers = NULL, onBehalfOfContentOwn...
######################################## #### Example of a profile iteration #### ######################################## require(pomp) require(plyr) dat <- read.csv("DataCovar_1975-2000.csv",header=T) # read in data file with the malaria data and covariates y <- read.csv("mifOutputProf_rho.csv", header=T) y <- arra...
/fitting/mifProf_rho.R
no_license
pascualgroup/Malaria-highlands
R
false
false
2,105
r
######################################## #### Example of a profile iteration #### ######################################## require(pomp) require(plyr) dat <- read.csv("DataCovar_1975-2000.csv",header=T) # read in data file with the malaria data and covariates y <- read.csv("mifOutputProf_rho.csv", header=T) y <- arra...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/crawlers.R \name{get_ais_urls} \alias{get_ais_urls} \title{Get latest AIS URLs since last given URL to start} \usage{ get_ais_urls(start_url) } \arguments{ \item{start_url}{The path to a TXT url. See notes and examples} } \description{ This w...
/man/get_ais_urls.Rd
no_license
BenioffOceanInitiative/whalesafe4r
R
false
true
754
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/crawlers.R \name{get_ais_urls} \alias{get_ais_urls} \title{Get latest AIS URLs since last given URL to start} \usage{ get_ais_urls(start_url) } \arguments{ \item{start_url}{The path to a TXT url. See notes and examples} } \description{ This w...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/datasets.R \docType{data} \name{soap} \alias{soap} \title{Dwindling soap} \format{A data frame with 15 observations on the following 3 variables. \itemize{ \item{Date}{ } \item{Day}{ days since start of soap usage and data collection} \item{W...
/man/soap.Rd
no_license
cran/fastR
R
false
true
1,373
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/datasets.R \docType{data} \name{soap} \alias{soap} \title{Dwindling soap} \format{A data frame with 15 observations on the following 3 variables. \itemize{ \item{Date}{ } \item{Day}{ days since start of soap usage and data collection} \item{W...
################################################################################ #' @title gls calculation of mean elevation #' @author: James Margrove #' @description calculating the mean elevation using gls #' Sys.setenv(LANG = "en") # Clear work space rm(list=ls()) # Import packages require(ggplot2...
/analysis/sp_dist_4ha_spatialModel.R
no_license
jmargrove/ForestFloodingSensitivityAnalysis
R
false
false
1,503
r
################################################################################ #' @title gls calculation of mean elevation #' @author: James Margrove #' @description calculating the mean elevation using gls #' Sys.setenv(LANG = "en") # Clear work space rm(list=ls()) # Import packages require(ggplot2...
\name{Pade} \encoding{UTF-8} \alias{Pade} \title{Padé Approximant Coefficients} \description{ Given Taylor series coefficients \eqn{a_n} from \eqn{n = 0} up to \eqn{n = T}, the function will calculate the Padé \eqn{\left[L / M\right]}{[L / M]} approximant coefficients so long as \eqn{L + M \leq T}{L + M ≤ T}. }...
/man/Pade.Rd
no_license
cran/Pade
R
false
false
3,148
rd
\name{Pade} \encoding{UTF-8} \alias{Pade} \title{Padé Approximant Coefficients} \description{ Given Taylor series coefficients \eqn{a_n} from \eqn{n = 0} up to \eqn{n = T}, the function will calculate the Padé \eqn{\left[L / M\right]}{[L / M]} approximant coefficients so long as \eqn{L + M \leq T}{L + M ≤ T}. }...
library(dplyr) library(readr) library(ggplot2) library(readr) paper_search <- read_csv("paper_search.csv", col_types = cols(id_index = col_character(), id_index_1 = col_character())) # 体重身高有异常值手动修改 Data <- paper_search %>% filter(CysC < 50, ...
/doument.R
no_license
xiaodi007/hospital
R
false
false
2,796
r
library(dplyr) library(readr) library(ggplot2) library(readr) paper_search <- read_csv("paper_search.csv", col_types = cols(id_index = col_character(), id_index_1 = col_character())) # 体重身高有异常值手动修改 Data <- paper_search %>% filter(CysC < 50, ...
#' Adds a Layer with Observations to a Profile Plot #' #' Function \code{\link{show_observations}} adds a layer to a plot created with #' \code{\link{plot.ceteris_paribus_explainer}} for selected observations. #' Various parameters help to decide what should be plotted, profiles, aggregated profiles, points or rugs. #'...
/R/show_observations.R
no_license
WojciechKretowicz/ingredients
R
false
false
4,333
r
#' Adds a Layer with Observations to a Profile Plot #' #' Function \code{\link{show_observations}} adds a layer to a plot created with #' \code{\link{plot.ceteris_paribus_explainer}} for selected observations. #' Various parameters help to decide what should be plotted, profiles, aggregated profiles, points or rugs. #'...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/my_log1p.R \name{my_log1p} \alias{my_log1p} \title{Customed log1p for data with negative value less than -1} \usage{ my_log1p(x, base = exp(1)) } \arguments{ \item{x}{a numeric vector} \item{base}{exp(1) or 10, or 2 based log (x+a)} } \value...
/man/my_log1p.Rd
no_license
kun-ecology/ecoloop
R
false
true
409
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/my_log1p.R \name{my_log1p} \alias{my_log1p} \title{Customed log1p for data with negative value less than -1} \usage{ my_log1p(x, base = exp(1)) } \arguments{ \item{x}{a numeric vector} \item{base}{exp(1) or 10, or 2 based log (x+a)} } \value...
#' @import mlr predict_DT <- function(object, newdata, pred.all = TRUE) { funScale <- approxfun(x = c(0, object$threshold, 1), y = c(0, 0.5, 1)) IP_all <- pbapply::pblapply(object$models, mlr:::predict.WrappedModel...
/R/predict_DT.R
no_license
CedricMondy/ecodiag
R
false
false
957
r
#' @import mlr predict_DT <- function(object, newdata, pred.all = TRUE) { funScale <- approxfun(x = c(0, object$threshold, 1), y = c(0, 0.5, 1)) IP_all <- pbapply::pblapply(object$models, mlr:::predict.WrappedModel...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geog.range.overlap.R \name{geog.range.overlap} \alias{geog.range.overlap} \title{Takes two emtools.species objects with range rasters, calculates overlap between them as in Fitzpatrick and Turelli 2006} \usage{ geog.range.overlap(x, y) } \arg...
/man/geog.range.overlap.Rd
no_license
helixcn/ENMTools
R
false
true
969
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geog.range.overlap.R \name{geog.range.overlap} \alias{geog.range.overlap} \title{Takes two emtools.species objects with range rasters, calculates overlap between them as in Fitzpatrick and Turelli 2006} \usage{ geog.range.overlap(x, y) } \arg...
library(dirmult) # example code functions and dirmult, equalTheta functions library(ggplot2) # pretty plots for pi library(doParallel) # parallelizing library(MASS) # ginv function for Xsc.statistics library(vegan) # ga distances library(gplots) # heatmap plots library(rpart) # base rpart library(rpart.plot) # ...
/WorkingCode/Code/HMP Functions.R
no_license
BioRankings/HMP
R
false
false
67,453
r
library(dirmult) # example code functions and dirmult, equalTheta functions library(ggplot2) # pretty plots for pi library(doParallel) # parallelizing library(MASS) # ginv function for Xsc.statistics library(vegan) # ga distances library(gplots) # heatmap plots library(rpart) # base rpart library(rpart.plot) # ...
context("get_ag_bulletin") # Test that get_ag_bulletin returns a data frame with 29 columns --------------- test_that("get_ag_bulletin returns 29 columns", { skip_on_cran() bom_bulletin <- get_ag_bulletin(state = "QLD") expect_equal(ncol(bom_bulletin), 29) expect_named( bom_bulletin, c( "product_...
/tests/testthat/test-get_ag_bulletin.R
permissive
graceli8/bomrang
R
false
false
2,516
r
context("get_ag_bulletin") # Test that get_ag_bulletin returns a data frame with 29 columns --------------- test_that("get_ag_bulletin returns 29 columns", { skip_on_cran() bom_bulletin <- get_ag_bulletin(state = "QLD") expect_equal(ncol(bom_bulletin), 29) expect_named( bom_bulletin, c( "product_...
# predictions library(tibble) model <- readRDS("models/stack_pls_c50_rngr_pval_dv.Rds") test <- test.dv[, names(pval.dv)] pred.test <- predict(model, newdata = test, na.action = na.pass) test.submit <- data_frame(USER_ID = testing$USER_ID, Predictions = pred.test) mod <- str_replace_all(as.character(Sys.time()), "-...
/3-test_predictions.R
no_license
laiw/kaggle_ae_2016
R
false
false
390
r
# predictions library(tibble) model <- readRDS("models/stack_pls_c50_rngr_pval_dv.Rds") test <- test.dv[, names(pval.dv)] pred.test <- predict(model, newdata = test, na.action = na.pass) test.submit <- data_frame(USER_ID = testing$USER_ID, Predictions = pred.test) mod <- str_replace_all(as.character(Sys.time()), "-...