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
############################################################################### ## preliminaries ############################################################################### library(xlsx) library(dplyr) library(tidyr) library(RCurl) options(stringsAsFactors = FALSE) ## years of WPP years <- c(1976, 1986, 1996, 2001...
/scripts/01-Data-Import-Clean.R
no_license
majazaloznik/PH13.01.FS
R
false
false
8,808
r
############################################################################### ## preliminaries ############################################################################### library(xlsx) library(dplyr) library(tidyr) library(RCurl) options(stringsAsFactors = FALSE) ## years of WPP years <- c(1976, 1986, 1996, 2001...
#---------------------------------------------------------------------- # Purpose: Create random data and run 20 iterations of GLM on it. #---------------------------------------------------------------------- setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source('../h2o-runit.R') options(echo...
/h2o-r/tests/testdir_demos/runit_demo_random_data_glm.R
permissive
brightchen/h2o-3
R
false
false
3,000
r
#---------------------------------------------------------------------- # Purpose: Create random data and run 20 iterations of GLM on it. #---------------------------------------------------------------------- setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source('../h2o-runit.R') options(echo...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_streams_id.R \name{get_streams_id} \alias{get_streams_id} \title{genera tutti gli stream id di un pcap e di un protocollo. \cr} \usage{ get_streams_id(max_stream_id) } \arguments{ \item{max_stream_id}{stream_id massimo} } \value{ array ch...
/TesinaTIR/tesina_tir_pkg/man/get_streams_id.Rd
no_license
DanieleCampagnoli/TesinaTIR
R
false
true
489
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_streams_id.R \name{get_streams_id} \alias{get_streams_id} \title{genera tutti gli stream id di un pcap e di un protocollo. \cr} \usage{ get_streams_id(max_stream_id) } \arguments{ \item{max_stream_id}{stream_id massimo} } \value{ array ch...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sjplot.R \name{sjplot} \alias{sjplot} \alias{sjtab} \title{Wrapper to create plots and tables within a pipe-workflow} \usage{ sjplot(data, ..., fun = c("frq", "grpfrq", "xtab", "gpt", "scatter", "aov1", "likert", "stackfrq")) sjtab(data, ....
/man/sjplot.Rd
no_license
derele/sjPlot
R
false
true
4,541
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sjplot.R \name{sjplot} \alias{sjplot} \alias{sjtab} \title{Wrapper to create plots and tables within a pipe-workflow} \usage{ sjplot(data, ..., fun = c("frq", "grpfrq", "xtab", "gpt", "scatter", "aov1", "likert", "stackfrq")) sjtab(data, ....
#this is a cleaner version of atlas_analysis.R #initiated: 09.08.2021 #finished: #author: Aleid Teeuwen #project: The impact of governance on food security: a systematic review of simulation models rm(list = ls()) #start with a clean environment ###################### load libraries ###################### library("r...
/atlas_analysis_clean.R
no_license
ateeuw/myrepo
R
false
false
96,688
r
#this is a cleaner version of atlas_analysis.R #initiated: 09.08.2021 #finished: #author: Aleid Teeuwen #project: The impact of governance on food security: a systematic review of simulation models rm(list = ls()) #start with a clean environment ###################### load libraries ###################### library("r...
#' Searches vector for states by full name and two-letter abbreviation. #' #' This function takes a vector input and searches presence of #' any text that matches states' full names or 2 letter abbreviation. #' #' The default output is a TRUE/FALSE vector but the function can also #' return a dataframe of the origin...
/R/search_state.R
permissive
DevikaNair90/prybar
R
false
false
2,313
r
#' Searches vector for states by full name and two-letter abbreviation. #' #' This function takes a vector input and searches presence of #' any text that matches states' full names or 2 letter abbreviation. #' #' The default output is a TRUE/FALSE vector but the function can also #' return a dataframe of the origin...
\name{rats} \alias{rats} \docType{data} \title{ Dataset - Glycogen content of rat livers. } \description{ Duplicate readings were made on each of three preparations of rat livers from each of two rats for three different treatments (Sokal & Rohlf, 1995). } \usage{data(rats)} \format{ A data frame with 36 observations...
/man/rats.Rd
no_license
cran/GAD
R
false
false
773
rd
\name{rats} \alias{rats} \docType{data} \title{ Dataset - Glycogen content of rat livers. } \description{ Duplicate readings were made on each of three preparations of rat livers from each of two rats for three different treatments (Sokal & Rohlf, 1995). } \usage{data(rats)} \format{ A data frame with 36 observations...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.R \name{textract} \alias{textract} \title{Amazon Textract} \usage{ textract(config = list()) } \arguments{ \item{config}{Optional configuration of credentials, endpoint, and/or region.} } \description{ Amazon Textract detects and analyze...
/cran/paws/man/textract.Rd
permissive
TWarczak/paws
R
false
true
1,829
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.R \name{textract} \alias{textract} \title{Amazon Textract} \usage{ textract(config = list()) } \arguments{ \item{config}{Optional configuration of credentials, endpoint, and/or region.} } \description{ Amazon Textract detects and analyze...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Animal.R \name{setWeighing} \alias{setWeighing} \title{Set the Weighing values of an animal object.} \usage{ setWeighing(theObject, weighing) } \description{ \code{setWeighing} sets the weights of the animal object to the weighing value. } \d...
/man/setWeighing.Rd
no_license
AlexandreMertens/GESLib
R
false
true
338
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Animal.R \name{setWeighing} \alias{setWeighing} \title{Set the Weighing values of an animal object.} \usage{ setWeighing(theObject, weighing) } \description{ \code{setWeighing} sets the weights of the animal object to the weighing value. } \d...
#29-2-2012 MRC-Epid JHZ library(foreign) nf <- read.dta("nuclearfamily.dta") library(kinship2) attach(nf) f <- makefamid(shareid, fshare, mshare) k <- makekinship(f, shareid, fshare, mshare) detach(nf) save(nf,k,file="nf.RData")
/JPS/nf.R
no_license
jinghuazhao/Mixed-Models
R
false
false
232
r
#29-2-2012 MRC-Epid JHZ library(foreign) nf <- read.dta("nuclearfamily.dta") library(kinship2) attach(nf) f <- makefamid(shareid, fshare, mshare) k <- makekinship(f, shareid, fshare, mshare) detach(nf) save(nf,k,file="nf.RData")
# page 187 figure 12.2 - see page 186 & 189 for data par(mfrow=c(3,2)) plot(p31table3.2$Actual~p31table3.2$Reported,xlim=c(0,200),ylim=c(0,200),pch=19,ylab="Actual",xlab="Reported") plot(200-p31table3.2$Actual~p31table3.2$Reported,xlim=c(0,200),ylim=c(0,200),pch=19,ylab="Actual",xlab="Reported") x = c(50,85,105,110,...
/ch12/p187-figure12.2.r
no_license
antmolinaro/Sampler
R
false
false
883
r
# page 187 figure 12.2 - see page 186 & 189 for data par(mfrow=c(3,2)) plot(p31table3.2$Actual~p31table3.2$Reported,xlim=c(0,200),ylim=c(0,200),pch=19,ylab="Actual",xlab="Reported") plot(200-p31table3.2$Actual~p31table3.2$Reported,xlim=c(0,200),ylim=c(0,200),pch=19,ylab="Actual",xlab="Reported") x = c(50,85,105,110,...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/read_SC.R \name{get_precinct} \alias{get_precinct} \title{Extract precinct-identifying information} \usage{ get_precinct(df, precinct_regex = "(RUN DATE|ELECTION ID:)") } \arguments{ \item{df}{a EL155 dataset, read through read_EL155} \item{...
/man/get_precinct.Rd
permissive
kuriwaki/ballot
R
false
true
999
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/read_SC.R \name{get_precinct} \alias{get_precinct} \title{Extract precinct-identifying information} \usage{ get_precinct(df, precinct_regex = "(RUN DATE|ELECTION ID:)") } \arguments{ \item{df}{a EL155 dataset, read through read_EL155} \item{...
#' @title #' Column selection #' #' @description #' The function \code{pull} selects a column in a data frame #' and transforms it into a vector. #' This is useful to use it in combination with \pkg{magrittr}'s pipe operator #' and \pkg{dplyr}'s verbs. #' #' @param .data #' A tbl. #' #' @param j #' integer...
/R/pull.R
no_license
cran/lplyr
R
false
false
1,571
r
#' @title #' Column selection #' #' @description #' The function \code{pull} selects a column in a data frame #' and transforms it into a vector. #' This is useful to use it in combination with \pkg{magrittr}'s pipe operator #' and \pkg{dplyr}'s verbs. #' #' @param .data #' A tbl. #' #' @param j #' integer...
###face_summary.r ###give summary statistics for each face in confederate sample and comparison sample, make comparisons ###RdE February 2013 ##se function stderr <- function(x) sqrt(var(x,na.rm=TRUE)/length(na.omit(x))) out.list = list() for(i in 1:3){ if(i == 1){use.dat = conf.dat} if(i == 2){use.dat...
/Enos Code/face_summary_pnas.r
no_license
jackmschroeder/Gov-1006-Replication-2
R
false
false
3,748
r
###face_summary.r ###give summary statistics for each face in confederate sample and comparison sample, make comparisons ###RdE February 2013 ##se function stderr <- function(x) sqrt(var(x,na.rm=TRUE)/length(na.omit(x))) out.list = list() for(i in 1:3){ if(i == 1){use.dat = conf.dat} if(i == 2){use.dat...
# ---------------------------- # # LOADS DATASET INTO SQLSERVER # 2014-18-11 GRAHAM FRENCH # ---------------------------- # # LOAD REQUIRED PACKAGES library(RODBC) # CLEAR R DATA rm(list=ls()) # INPUT FILES inputFile = file.choose() headset <-read.csv(inputFile, header=TRUE, nrows = 1, sep='\t') classes <- sapply(he...
/Import_dataset_into_SQL_Spatial.r
no_license
Dariuscu/Data-transformations
R
false
false
889
r
# ---------------------------- # # LOADS DATASET INTO SQLSERVER # 2014-18-11 GRAHAM FRENCH # ---------------------------- # # LOAD REQUIRED PACKAGES library(RODBC) # CLEAR R DATA rm(list=ls()) # INPUT FILES inputFile = file.choose() headset <-read.csv(inputFile, header=TRUE, nrows = 1, sep='\t') classes <- sapply(he...
####################################################################################### ####################################################################################### ########### Script started in August 2017 by Heather Kropp ########### ########### Script for looking at sites with good depth ...
/archive/Deep_Temp/Deep_temp_sites_script.r
no_license
kroppheather/synthesis_database
R
false
false
29,808
r
####################################################################################### ####################################################################################### ########### Script started in August 2017 by Heather Kropp ########### ########### Script for looking at sites with good depth ...
# TODO: Add comment # # Author: tiffn_000 ############################################################################### batchnum <- z # load( "C:\\Users\\tiffn_000\\Documents\\workspaces\\REDO_93_spbatch.RData") # load(paste("C:\\Users\\tiffn_000\\Documents\\workspaces\\functions_5_13_16",".RData",...
/R/check.R
no_license
tnkocis/stReamflowstats
R
false
false
5,549
r
# TODO: Add comment # # Author: tiffn_000 ############################################################################### batchnum <- z # load( "C:\\Users\\tiffn_000\\Documents\\workspaces\\REDO_93_spbatch.RData") # load(paste("C:\\Users\\tiffn_000\\Documents\\workspaces\\functions_5_13_16",".RData",...
library(ggplot) library(ggplot2) library(ggplot2) points <- data.frame( x = rep(1:9,2), y = rep(1:9,2), z = sort(rep(letters[1:5], 10)), w = rep(letters[2:7], 10) ) ggplot(data = points, mapping = aes(x = y, y = x, col = factor(y))) + geom_point(size = 69) + facet_grid(w ~ z, s...
/Ugly.R
no_license
cmattnielsen/Data_Course_NIELSEN
R
false
false
537
r
library(ggplot) library(ggplot2) library(ggplot2) points <- data.frame( x = rep(1:9,2), y = rep(1:9,2), z = sort(rep(letters[1:5], 10)), w = rep(letters[2:7], 10) ) ggplot(data = points, mapping = aes(x = y, y = x, col = factor(y))) + geom_point(size = 69) + facet_grid(w ~ z, s...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/wafregional_operations.R \name{wafregional_update_rule_group} \alias{wafregional_update_rule_group} \title{Inserts or deletes ActivatedRule objects in a RuleGroup} \usage{ wafregional_update_rule_group(RuleGroupId, Updates, ChangeToken) } \ar...
/cran/paws.security.identity/man/wafregional_update_rule_group.Rd
permissive
johnnytommy/paws
R
false
true
2,675
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/wafregional_operations.R \name{wafregional_update_rule_group} \alias{wafregional_update_rule_group} \title{Inserts or deletes ActivatedRule objects in a RuleGroup} \usage{ wafregional_update_rule_group(RuleGroupId, Updates, ChangeToken) } \ar...
##1. download the dataset, unzip it if(!file.exists("./electr/data.zip")) { url="https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" dir.create("./electr") download.file(url, destfile="./electr/data.zip", method="curl") unzip("./electr/data.zip", exdir="./electr") } ###2....
/Plot3.R
no_license
nl2284/ExData_Plotting1
R
false
false
1,467
r
##1. download the dataset, unzip it if(!file.exists("./electr/data.zip")) { url="https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" dir.create("./electr") download.file(url, destfile="./electr/data.zip", method="curl") unzip("./electr/data.zip", exdir="./electr") } ###2....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/clean_posts.R \name{clean_posts_mlr3gallery} \alias{clean_posts_mlr3gallery} \title{Clean Post Directory} \usage{ clean_posts_mlr3gallery() } \description{ Remove html and ancillary files from \verb{_post} directory. }
/docs/man/clean_posts_mlr3gallery.Rd
no_license
mlr-org/mlr3gallery
R
false
true
297
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/clean_posts.R \name{clean_posts_mlr3gallery} \alias{clean_posts_mlr3gallery} \title{Clean Post Directory} \usage{ clean_posts_mlr3gallery() } \description{ Remove html and ancillary files from \verb{_post} directory. }
#read data: deal with NAs data = read.csv('analysisData.csv',na.strings = c("NA","N/A","")) scoringData = read.csv('scoringData.csv',na.strings = c("NA","N/A","")) #load packages library(ggplot2) library(caret) library(caTools) library(dplyr) library(ISLR) library(gplots) library(ROCR) library(zipcode) library(rpart) ...
/kaggle Project_AirBnb Rental Price Prediction_Yiheng Shen.R
no_license
Yiheng-Shen/Airbnb-Rental-Price-Prediction
R
false
false
15,502
r
#read data: deal with NAs data = read.csv('analysisData.csv',na.strings = c("NA","N/A","")) scoringData = read.csv('scoringData.csv',na.strings = c("NA","N/A","")) #load packages library(ggplot2) library(caret) library(caTools) library(dplyr) library(ISLR) library(gplots) library(ROCR) library(zipcode) library(rpart) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/extract_data2.R \name{extract_data2} \alias{extract_data2} \title{Faster version of `rdimensions::extract_data()``} \usage{ extract_data2(data_entry) } \description{ Faster version of `rdimensions::extract_data()`` }
/man/extract_data2.Rd
no_license
tilltnet/rdimensions
R
false
true
295
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/extract_data2.R \name{extract_data2} \alias{extract_data2} \title{Faster version of `rdimensions::extract_data()``} \usage{ extract_data2(data_entry) } \description{ Faster version of `rdimensions::extract_data()`` }
testlist <- list(c = 167772170L, r = 168427530L) result <- do.call(landscapemetrics:::triangular_index,testlist) str(result)
/landscapemetrics/inst/testfiles/triangular_index/libFuzzer_triangular_index/triangular_index_valgrind_files/1609955430-test.R
no_license
akhikolla/newtestfiles-2
R
false
false
124
r
testlist <- list(c = 167772170L, r = 168427530L) result <- do.call(landscapemetrics:::triangular_index,testlist) str(result)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sigclust.R \name{sigclust} \alias{sigclust} \title{Significant Testing of Clustering Results} \usage{ sigclust(x, k, nsim, nrep = 1, labflag = 0, label = 0, icovest = 2) } \arguments{ \item{x}{data matrix, samples are rows and features are co...
/man/sigclust.Rd
permissive
AlineTalhouk/diceR
R
false
true
2,073
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sigclust.R \name{sigclust} \alias{sigclust} \title{Significant Testing of Clustering Results} \usage{ sigclust(x, k, nsim, nrep = 1, labflag = 0, label = 0, icovest = 2) } \arguments{ \item{x}{data matrix, samples are rows and features are co...
setwd("E:/Sola/Git/Economics/Macro/HP") library(mFilter) library(dplyr) # READ THE DATA FILE INTO R data <- read.csv("FinalDataX.csv") data$year <- rep(1960:2008,each=4) # Clean the data and choose the subsample from 1973 datax <- data %>% filter(year > 1972) %>% mutate(c = pc + gc) %>% mutate(nx = (ex - ...
/Economics/Macro/HP/HpRep.R
no_license
guoyu07/EthanDENG
R
false
false
1,445
r
setwd("E:/Sola/Git/Economics/Macro/HP") library(mFilter) library(dplyr) # READ THE DATA FILE INTO R data <- read.csv("FinalDataX.csv") data$year <- rep(1960:2008,each=4) # Clean the data and choose the subsample from 1973 datax <- data %>% filter(year > 1972) %>% mutate(c = pc + gc) %>% mutate(nx = (ex - ...
##' Adaptive Multivariate MCMC sampler ##' ##' This function generates MCMC-based samples from a (posterior) density f ##' (not necessarily normalized). It uses a Metropolis algorithm in conjunction ##' with a multivariate normal proposal distribution which is updated ##' adaptively by monitoring the correlations of s...
/R/mcmc.R
no_license
cran/Bhat
R
false
false
13,448
r
##' Adaptive Multivariate MCMC sampler ##' ##' This function generates MCMC-based samples from a (posterior) density f ##' (not necessarily normalized). It uses a Metropolis algorithm in conjunction ##' with a multivariate normal proposal distribution which is updated ##' adaptively by monitoring the correlations of s...
## The two functions work together to store the inversed value for a matrix, ## calling upon this value if there is already a computed value, reducing computing time. ## This function creates a list that of 4 functions that allow the next function to ## easily gain access to these 4 unique functions within the same e...
/cachematrix.R
no_license
chuazongxian/ProgrammingAssignment2
R
false
false
1,476
r
## The two functions work together to store the inversed value for a matrix, ## calling upon this value if there is already a computed value, reducing computing time. ## This function creates a list that of 4 functions that allow the next function to ## easily gain access to these 4 unique functions within the same e...
if (is.R()){ ".onLoad.x64" <- function(lib, pkg){ ## TODO any need for these to be user specifiable? options("BRugsTmpdir" = gsub("\\\\", "/", tempdir())) options("BRugsExtFile" = paste(basename(tempfile()), ".bug", sep="")) ob <- findOpenBUGS() options(OpenBUGS = ob$...
/R/windows/zzz.x64.R
no_license
cran/BRugs
R
false
false
1,074
r
if (is.R()){ ".onLoad.x64" <- function(lib, pkg){ ## TODO any need for these to be user specifiable? options("BRugsTmpdir" = gsub("\\\\", "/", tempdir())) options("BRugsExtFile" = paste(basename(tempfile()), ".bug", sep="")) ob <- findOpenBUGS() options(OpenBUGS = ob$...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/read_timeseries_dsg.R \name{read_timeseries_dsg} \alias{read_timeseries_dsg} \title{Read NetCDF-CF timeSeries featuretype} \usage{ read_timeseries_dsg(nc_file) } \arguments{ \item{nc_file}{character file path to the nc file to be read.} } \va...
/man/read_timeseries_dsg.Rd
permissive
yangxhcaf/ncdfgeom
R
false
true
1,701
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/read_timeseries_dsg.R \name{read_timeseries_dsg} \alias{read_timeseries_dsg} \title{Read NetCDF-CF timeSeries featuretype} \usage{ read_timeseries_dsg(nc_file) } \arguments{ \item{nc_file}{character file path to the nc file to be read.} } \va...
# Authors: Angelo Di Mambro, Emanuele Giona, Luigi Berducci # Date: January 2019 # Purpose: Main script merging the individual work done. # Libraries library(plyr) library(dplyr) require(glmnet) require(Matrix) require(xgboost) require(kernlab) library(caret) library(e1071) library(psych) library(dummies) sou...
/sample.R
permissive
luigiberducci/FDS-Project-HousePrices
R
false
false
4,774
r
# Authors: Angelo Di Mambro, Emanuele Giona, Luigi Berducci # Date: January 2019 # Purpose: Main script merging the individual work done. # Libraries library(plyr) library(dplyr) require(glmnet) require(Matrix) require(xgboost) require(kernlab) library(caret) library(e1071) library(psych) library(dummies) sou...
source('./GIS_module/Function/MITERRA_fractions.R') ## Pre-Process GIS rasters to a suitable spatial resolution/extent #note: untested but it should work preProcessing_rasters() ## Compute all MITERRA fractions without writing anything #id 1 - Rf_min, id 2- Rf, i3 _ Lf_min, id 4 - Lf mit_fracs99 <- compute_all_fracti...
/Test_module/GIS_modules/Computation_MITERRA_fractions.R
permissive
shekharsg/MITERRA-PORTUGAL
R
false
false
512
r
source('./GIS_module/Function/MITERRA_fractions.R') ## Pre-Process GIS rasters to a suitable spatial resolution/extent #note: untested but it should work preProcessing_rasters() ## Compute all MITERRA fractions without writing anything #id 1 - Rf_min, id 2- Rf, i3 _ Lf_min, id 4 - Lf mit_fracs99 <- compute_all_fracti...
## This part of code downloads and unzips the data uRl<-"https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" # Set the data url temp <- tempfile() # used as name for temporary files download.file(uRl,temp) ...
/plot3.R
no_license
iDvs/ExData_Plotting1
R
false
false
3,205
r
## This part of code downloads and unzips the data uRl<-"https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" # Set the data url temp <- tempfile() # used as name for temporary files download.file(uRl,temp) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/MultigeneSurvival.R \name{MultigeneSurvival} \alias{MultigeneSurvival} \title{Multiple Gene Survival Analysis} \usage{ MultigeneSurvival(dataset, time, event, title, alpha) } \arguments{ \item{dataset}{A dataset. This dataset contains only ge...
/man/MultigeneSurvival.Rd
no_license
jyeh0909/MultigeneSurvival
R
false
true
1,950
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/MultigeneSurvival.R \name{MultigeneSurvival} \alias{MultigeneSurvival} \title{Multiple Gene Survival Analysis} \usage{ MultigeneSurvival(dataset, time, event, title, alpha) } \arguments{ \item{dataset}{A dataset. This dataset contains only ge...
#' LBLE_to_BE transforms a set of parameters from LengthB LengthE to Begin End. #' @title Transform a set of parameters from LengthB LengthE to Begin End. #' @author Marc Girondot #' @return Return a set of modified parameters #' @param parameters Set of current parameters #' @param help If TRUE, an help is displayed #...
/R/LBLE_to_BE.R
no_license
cran/phenology
R
false
false
1,657
r
#' LBLE_to_BE transforms a set of parameters from LengthB LengthE to Begin End. #' @title Transform a set of parameters from LengthB LengthE to Begin End. #' @author Marc Girondot #' @return Return a set of modified parameters #' @param parameters Set of current parameters #' @param help If TRUE, an help is displayed #...
## simulate under alpha = 0 and run when alpha = 0 ## Much bigger sims. one_rep <- function(new_params, current_params) { source("../../reproduce_ruv3/Code/nc_adjustment_methods.R") source("../code/non_nc_methods.R") args_val <- append(current_params, new_params) set.seed(new_params$current_seed) ## Choose ...
/code/mouthwash_sims_alphais0.R
no_license
dcgerard/ruvb_plus_ash
R
false
false
9,930
r
## simulate under alpha = 0 and run when alpha = 0 ## Much bigger sims. one_rep <- function(new_params, current_params) { source("../../reproduce_ruv3/Code/nc_adjustment_methods.R") source("../code/non_nc_methods.R") args_val <- append(current_params, new_params) set.seed(new_params$current_seed) ## Choose ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/readWriteMzTab.R \name{readMzTabData_v0.9} \alias{readMzTabData_v0.9} \title{Read an 'mzTab' file} \usage{ readMzTabData_v0.9(file, what = c("PRT", "PEP"), verbose = isMSnbaseVerbose()) } \arguments{ \item{file}{A \code{character} with the \c...
/man/readMzTabData_v0.9.Rd
no_license
stanstrup/MSnbase
R
false
true
1,246
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/readWriteMzTab.R \name{readMzTabData_v0.9} \alias{readMzTabData_v0.9} \title{Read an 'mzTab' file} \usage{ readMzTabData_v0.9(file, what = c("PRT", "PEP"), verbose = isMSnbaseVerbose()) } \arguments{ \item{file}{A \code{character} with the \c...
#' Shiny app to pick colors in HCL space #' #' @examples #' \dontrun{ #' HCL_color_picker() #' } #' @export #' @importFrom colorspace polarLUV LUV hex coords hex2RGB #' @importFrom methods as #' @author Claus O. Wilke wilke@austin.utexas.edu #' @author Douglas C. Wu @wckdouglas (color-palette feature) HCL_color_picker ...
/R/HCL_color_picker.R
permissive
emilelatour/colorblindr
R
false
false
14,255
r
#' Shiny app to pick colors in HCL space #' #' @examples #' \dontrun{ #' HCL_color_picker() #' } #' @export #' @importFrom colorspace polarLUV LUV hex coords hex2RGB #' @importFrom methods as #' @author Claus O. Wilke wilke@austin.utexas.edu #' @author Douglas C. Wu @wckdouglas (color-palette feature) HCL_color_picker ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{map} \alias{map} \title{map example.} \format{A data frame with one variables: \code{Populasi}} \usage{ map } \description{ Central Java shapefile source: bps.go.id } \keyword{datasets}
/man/map.Rd
no_license
cran/spatialClust
R
false
true
309
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{map} \alias{map} \title{map example.} \format{A data frame with one variables: \code{Populasi}} \usage{ map } \description{ Central Java shapefile source: bps.go.id } \keyword{datasets}
sab.init <- function(constr, thin.fn = function(n) { ceiling(log(n + 1)/4 * n^3) }, thin = NULL, x0.randomize = FALSE, x0.method="slacklp", x0 = NULL, eliminate=TRUE) { state <- har.init(constr, thin.fn, thin, x0.randomize, x0.method, x0, eliminate) state$i0 <- findFace(state$x0, state$constr) #...
/hitandrun/R/shakeandbake.R
no_license
gertvv/hitandrun
R
false
false
1,170
r
sab.init <- function(constr, thin.fn = function(n) { ceiling(log(n + 1)/4 * n^3) }, thin = NULL, x0.randomize = FALSE, x0.method="slacklp", x0 = NULL, eliminate=TRUE) { state <- har.init(constr, thin.fn, thin, x0.randomize, x0.method, x0, eliminate) state$i0 <- findFace(state$x0, state$constr) #...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cloudwatchevents_operations.R \name{cloudwatchevents_put_permission} \alias{cloudwatchevents_put_permission} \title{Running PutPermission permits the specified AWS account or AWS organization to put events to the specified \emph{event bus}} \...
/cran/paws.management/man/cloudwatchevents_put_permission.Rd
permissive
jcheng5/paws
R
false
true
3,781
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cloudwatchevents_operations.R \name{cloudwatchevents_put_permission} \alias{cloudwatchevents_put_permission} \title{Running PutPermission permits the specified AWS account or AWS organization to put events to the specified \emph{event bus}} \...
\name{ASpliDU-class} \Rdversion{1.1} \docType{class} \alias{ASpliDU} \alias{ASpliDU-class} \alias{binsDU,ASpliDU-method} \alias{genesDE,ASpliDU-method} \alias{junctionsDU,ASpliDU-method} \alias{binsDU<-,ASpliDU-method} \alias{genesDE<-,ASpliDU,data.frame-method} \alias{junctionsDU<-,ASpliDU,data.frame-method} \alias...
/man/ASpliDU-class.Rd
no_license
estepi/ASpli-1
R
false
false
900
rd
\name{ASpliDU-class} \Rdversion{1.1} \docType{class} \alias{ASpliDU} \alias{ASpliDU-class} \alias{binsDU,ASpliDU-method} \alias{genesDE,ASpliDU-method} \alias{junctionsDU,ASpliDU-method} \alias{binsDU<-,ASpliDU-method} \alias{genesDE<-,ASpliDU,data.frame-method} \alias{junctionsDU<-,ASpliDU,data.frame-method} \alias...
source("degene.R"); #source("genereg.R"); args<-commandArgs(trailingOnly=TRUE); #method=0; #if(as.integer(regexpr("chrhmm",args[1]))>0) method=1; #if(as.integer(regexpr("segway",args[1]))>0) method=2; #runar2 = TRUE; #if(runar2) { rungeneReg(args[1], args[2], method=method, mydist=100000); } #rungeneReg_splinenew(args[...
/fig6_figS17_ccRE_selection_script/rungenereg.R
permissive
hardisonlab/vision_pipeline_mouse_mm10
R
false
false
5,787
r
source("degene.R"); #source("genereg.R"); args<-commandArgs(trailingOnly=TRUE); #method=0; #if(as.integer(regexpr("chrhmm",args[1]))>0) method=1; #if(as.integer(regexpr("segway",args[1]))>0) method=2; #runar2 = TRUE; #if(runar2) { rungeneReg(args[1], args[2], method=method, mydist=100000); } #rungeneReg_splinenew(args[...
uselegend.ggplot <- function ### Show the ggplot2 legend, for comparison. (p, ### The ggplot object. ... ### Ignored. ){ p } geom_dl <- structure(function ### Geom that will plot direct labels. (mapping=NULL, ### aes(label=variable_that_will_be_used_as_groups_in_Positioning_Methods). data=NULL, ### data.frame to ...
/R/ggplot2.R
no_license
econandrew/directlabels
R
false
false
10,404
r
uselegend.ggplot <- function ### Show the ggplot2 legend, for comparison. (p, ### The ggplot object. ... ### Ignored. ){ p } geom_dl <- structure(function ### Geom that will plot direct labels. (mapping=NULL, ### aes(label=variable_that_will_be_used_as_groups_in_Positioning_Methods). data=NULL, ### data.frame to ...
detach("package:pkg.WWM", unload = TRUE) #Packages laden library(pkg.WWM) packages<-c("lubridate","stringr","ggplot2","readxl","egg") check.packages(packages) hauptpfad <- "C:/Users/ThinkPad/Documents/FVA/P01677_WindWaldMethan/" sqlpfad<-paste0(hauptpfad,"Daten/aufbereiteteDaten/SQLite/") unzipped_path <- "C:/Users/Th...
/PP_kammer_hartheim/GGA_time_trouble.R
no_license
laurin-f/WWM
R
false
false
3,523
r
detach("package:pkg.WWM", unload = TRUE) #Packages laden library(pkg.WWM) packages<-c("lubridate","stringr","ggplot2","readxl","egg") check.packages(packages) hauptpfad <- "C:/Users/ThinkPad/Documents/FVA/P01677_WindWaldMethan/" sqlpfad<-paste0(hauptpfad,"Daten/aufbereiteteDaten/SQLite/") unzipped_path <- "C:/Users/Th...
\name{summary.MPLEergm} \alias{summary.MPLEergm} %- Also NEED an '\alias' for EACH other topic documented here. \title{Summarizing ERGM Model Fits %% ~~function to do ... ~~ } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ summary.MPLEergm(object) } %- maybe also 'usage'...
/.Rproj.user/E224A8EB/sources/s-1AD85A1D/189127A-contents
no_license
schmid86/ERGMwithMPLE
R
false
false
1,389
\name{summary.MPLEergm} \alias{summary.MPLEergm} %- Also NEED an '\alias' for EACH other topic documented here. \title{Summarizing ERGM Model Fits %% ~~function to do ... ~~ } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ summary.MPLEergm(object) } %- maybe also 'usage'...
library(readr) ref20 <- read.csv("~/Team_1/data/Ref_Factor_20.csv") ref48 <- read.csv("~/Team_1/data/Ref_Factor_48.csv") ref75 <- read.csv("~/Team_1/data/Ref_Factor_75.csv") ref95 <- read.csv("~/Team_1/data/Ref_Factor_95.csv") ref99 <- read.csv("~/Team_1/data/Ref_Factor_99.csv") #colnames(ref20) # Delelting all those r...
/src/R/regression_models.R
no_license
dlebauer/team1-predict-swir
R
false
false
8,715
r
library(readr) ref20 <- read.csv("~/Team_1/data/Ref_Factor_20.csv") ref48 <- read.csv("~/Team_1/data/Ref_Factor_48.csv") ref75 <- read.csv("~/Team_1/data/Ref_Factor_75.csv") ref95 <- read.csv("~/Team_1/data/Ref_Factor_95.csv") ref99 <- read.csv("~/Team_1/data/Ref_Factor_99.csv") #colnames(ref20) # Delelting all those r...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/iheatmap.R \name{iheatmap} \alias{iheatmap} \alias{iheatmap,matrix-method} \title{iheatmap} \usage{ \S4method{iheatmap}{matrix}( data, x = default_x(data), y = default_y(data), cluster_rows = c("none", "hclust", "kmeans"), cluster_c...
/man/iheatmap.Rd
permissive
ropensci/iheatmapr
R
false
true
4,778
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/iheatmap.R \name{iheatmap} \alias{iheatmap} \alias{iheatmap,matrix-method} \title{iheatmap} \usage{ \S4method{iheatmap}{matrix}( data, x = default_x(data), y = default_y(data), cluster_rows = c("none", "hclust", "kmeans"), cluster_c...
#' Get the current meetup members from a meetup group #' #' @template urlname #' @template api_key #' #' @return A tibble with the following columns: #' * id #' * name #' * bio #' * status #' * joined #' * city #' * country #' * state #' * lat #' * lon #' * photo_link #' * resource #...
/R/get_members.R
permissive
cvitolo/meetupr
R
false
false
1,278
r
#' Get the current meetup members from a meetup group #' #' @template urlname #' @template api_key #' #' @return A tibble with the following columns: #' * id #' * name #' * bio #' * status #' * joined #' * city #' * country #' * state #' * lat #' * lon #' * photo_link #' * resource #...
# # 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/ # # Originally implemented by Yury Goltsev goltsev@stanford.edu as described in https://doi.org/10.1016/j.cel...
/Neighborhoods/app_CRC_contacts.R
no_license
shovikb94/NeighborhoodCoordination
R
false
false
53,456
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/ # # Originally implemented by Yury Goltsev goltsev@stanford.edu as described in https://doi.org/10.1016/j.cel...
scan.data <- read.csv("data.csv") products <- read.csv("Products1.txt", sep = '|') join.data <- merge(x=scan.data, y=products, by.x="ProductPurchased", by.y="SKU") rm(scan.data, products) join.data <- join.data[-c(5,7,9)] nrow(join.data[which(join.data$ItemType == "Milk"),])/365 nrow(join.data[which(join.data$ItemTy...
/Stats/data_summary.R
no_license
scavet64/DataWarehousingHW1
R
false
false
960
r
scan.data <- read.csv("data.csv") products <- read.csv("Products1.txt", sep = '|') join.data <- merge(x=scan.data, y=products, by.x="ProductPurchased", by.y="SKU") rm(scan.data, products) join.data <- join.data[-c(5,7,9)] nrow(join.data[which(join.data$ItemType == "Milk"),])/365 nrow(join.data[which(join.data$ItemTy...
## 2016年暑期课程设计 ## 问题:Grupo Bimbo Inventory Demand ## 宾堡集团的库存需求 ## 最大限度地提高销售和最大限度地减少烘焙食品的退回 ## Daitu ## start:2016.06.21 ## 参考借鉴kaggle上的公开程序 ## 使用随机森林回归进行预测 setwd("/Users/Daitu/数据分析/kaggle/Grupo Bimbo") getwd() ## 加载包 library(data.table) library(dplyr) library(randomForest) library(doParallel) ## 读取数据#### ## 1:读取训...
/Grupo Bimbo/Group_randomfrost_lin_1.R
no_license
Daitu/Grupo-Bimbo-data-mine
R
false
false
1,883
r
## 2016年暑期课程设计 ## 问题:Grupo Bimbo Inventory Demand ## 宾堡集团的库存需求 ## 最大限度地提高销售和最大限度地减少烘焙食品的退回 ## Daitu ## start:2016.06.21 ## 参考借鉴kaggle上的公开程序 ## 使用随机森林回归进行预测 setwd("/Users/Daitu/数据分析/kaggle/Grupo Bimbo") getwd() ## 加载包 library(data.table) library(dplyr) library(randomForest) library(doParallel) ## 读取数据#### ## 1:读取训...
#EPID600 Final Project #Jay (Soon Jae) Kwon #Import libraries library(dplyr) library(ggplot2) #Merge drug data directory <- list.files("./EPID600_Kwon_RData/Drug", recursive = T, full.names = T) year <- unlist(lapply(directory, function(x) strsplit(strsplit(x, "/")[[1]][4], "\\q")[[1]][1])) year <- as.integer(year) q...
/drugAnalysis.R
no_license
blancahimes/EPID600_Final
R
false
false
1,177
r
#EPID600 Final Project #Jay (Soon Jae) Kwon #Import libraries library(dplyr) library(ggplot2) #Merge drug data directory <- list.files("./EPID600_Kwon_RData/Drug", recursive = T, full.names = T) year <- unlist(lapply(directory, function(x) strsplit(strsplit(x, "/")[[1]][4], "\\q")[[1]][1])) year <- as.integer(year) q...
# NO LONGER ACTIVE ## THIS HAS BEEN MOVED TO JOIN_ENV_VARS_with_FIM.R # ABOUT #### # R script for getting all of the FIM habitat and environmental variables together. # Some of this script borrows from Delta_Method_For_Producing_Nominal # Environmental variables collected by FIM include: Dissolved O2, Salinity, Temp, ...
/All_ENV_vars_FIM.R
no_license
eherdter/Seatrout_ENV_Chapter2
R
false
false
11,389
r
# NO LONGER ACTIVE ## THIS HAS BEEN MOVED TO JOIN_ENV_VARS_with_FIM.R # ABOUT #### # R script for getting all of the FIM habitat and environmental variables together. # Some of this script borrows from Delta_Method_For_Producing_Nominal # Environmental variables collected by FIM include: Dissolved O2, Salinity, Temp, ...
utils::globalVariables(c("total", "virus", "V1"))
/R/globals.R
permissive
drmonaco/AVARDA
R
false
false
50
r
utils::globalVariables(c("total", "virus", "V1"))
# MIT License # # Copyright(c) 2018 Ilia Kosenkov[ilia.kosenkov.at.gm@gmail.com] # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights ...
/Source/Tools/Nest.R
permissive
Ilia-Kosenkov/MAXI1820_2
R
false
false
1,251
r
# MIT License # # Copyright(c) 2018 Ilia Kosenkov[ilia.kosenkov.at.gm@gmail.com] # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files(the "Software"), to deal # in the Software without restriction, including without limitation the rights ...
library(ggplot2) library(cowplot) setwd("~/Stanford/projects/smoke_segmentation/") ## read in training log data dataFormatter <- function(run, data, avg_window=500){ ## read in data for specific train or val run df <- read.table(pipe(paste0("awk '/epoch:/ && /",data, "/ {...
/src/analysis/training_plots.R
no_license
jeffwen/smoke_segmentation
R
false
false
3,364
r
library(ggplot2) library(cowplot) setwd("~/Stanford/projects/smoke_segmentation/") ## read in training log data dataFormatter <- function(run, data, avg_window=500){ ## read in data for specific train or val run df <- read.table(pipe(paste0("awk '/epoch:/ && /",data, "/ {...
# Generate DataPower latency boxplots by URI # # Read in the CSV data. df <- read.csv('sample6.csv', stringsAsFactors=F) # Make a latency column containing the maximum of the # 16 measurement colummns: X1, X2, ..., X16. # latencyColumns <- paste(rep('X',16), 1:16, sep='') df['Latency'] <- apply(df[,latencyColumns], ...
/latencyBoxplot.R
no_license
pglezen/dpLatencyStats
R
false
false
540
r
# Generate DataPower latency boxplots by URI # # Read in the CSV data. df <- read.csv('sample6.csv', stringsAsFactors=F) # Make a latency column containing the maximum of the # 16 measurement colummns: X1, X2, ..., X16. # latencyColumns <- paste(rep('X',16), 1:16, sep='') df['Latency'] <- apply(df[,latencyColumns], ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tar_glimpse.R \name{tar_glimpse} \alias{tar_glimpse} \title{Visualize an abridged fast dependency graph.} \usage{ tar_glimpse( targets_only = TRUE, allow = NULL, exclude = ".Random.seed", level_separation = NULL, callr_function = ca...
/man/tar_glimpse.Rd
permissive
ian-flores/targets
R
false
true
2,842
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tar_glimpse.R \name{tar_glimpse} \alias{tar_glimpse} \title{Visualize an abridged fast dependency graph.} \usage{ tar_glimpse( targets_only = TRUE, allow = NULL, exclude = ".Random.seed", level_separation = NULL, callr_function = ca...
testlist <- list(ends = c(-1125300777L, 765849512L, -1760774663L, 791623263L, 1358782356L, -128659642L, -14914341L, 1092032927L, 1837701012L, 1632068659L), pts = c(1758370433L, 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,...
/IntervalSurgeon/inst/testfiles/rcpp_pile/AFL_rcpp_pile/rcpp_pile_valgrind_files/1609873629-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
735
r
testlist <- list(ends = c(-1125300777L, 765849512L, -1760774663L, 791623263L, 1358782356L, -128659642L, -14914341L, 1092032927L, 1837701012L, 1632068659L), pts = c(1758370433L, 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,...
#' datafsm: A package for estimating FSM models. #' #'It relies on the \strong{GA} package: #'Luca Scrucca (2013). GA: A Package for Genetic Algorithms in R. #'Journal of Statistical Software, 53 (4), 1-37. #'URL http://www.jstatsoft.org/v53/i04/. #' #' @section datafsm functions: #' \code{datafsm}'s main function fo...
/datafsm/R/datafsm.R
no_license
ingted/R-Examples
R
false
false
848
r
#' datafsm: A package for estimating FSM models. #' #'It relies on the \strong{GA} package: #'Luca Scrucca (2013). GA: A Package for Genetic Algorithms in R. #'Journal of Statistical Software, 53 (4), 1-37. #'URL http://www.jstatsoft.org/v53/i04/. #' #' @section datafsm functions: #' \code{datafsm}'s main function fo...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/run_ipm.R \name{run_ipm} \alias{run_ipm} \title{Run multi-species Integral Projection Model} \usage{ run_ipm(A = 10000, tlimit = 2500, burn_in = 500, spp_list, Nyrs, constant = FALSE, iter_matrix_dims, max_size, Rpars, Spars, Gpars,...
/man/run_ipm.Rd
no_license
atredennick/community_synchrony
R
false
false
1,360
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/run_ipm.R \name{run_ipm} \alias{run_ipm} \title{Run multi-species Integral Projection Model} \usage{ run_ipm(A = 10000, tlimit = 2500, burn_in = 500, spp_list, Nyrs, constant = FALSE, iter_matrix_dims, max_size, Rpars, Spars, Gpars,...
source("setup.R") #Plot 1 png("plot1.png") freq <- table(unlist(range$group)) barplot(freq[2:12], col="red", xaxt="n", xlab="Global Active Power (kilowats)", ylab="Frequency")#start at two to remove NAs, which are counted as zero axis(1, at=c(0,4,8,12) , labels=c(0 , 2, 4, 6)) title(main="Global Active Power")...
/plot1.R
no_license
newspapercentral/ExData_Plotting1
R
false
false
331
r
source("setup.R") #Plot 1 png("plot1.png") freq <- table(unlist(range$group)) barplot(freq[2:12], col="red", xaxt="n", xlab="Global Active Power (kilowats)", ylab="Frequency")#start at two to remove NAs, which are counted as zero axis(1, at=c(0,4,8,12) , labels=c(0 , 2, 4, 6)) title(main="Global Active Power")...
a <- rnorm(25) ## ------------------------------------------------------------------------ # Have a look at what is in "a" now print(a) # Basic statistical summaries of "a" summary(a) dist <- rbinom(225,1,0.91) num_tickets <- sum(dist) expected_rev <- (num_tickets*300+ (225-num_tickets)*75) # There are...
/FNCE 385/ECON104_h1_q1.R
no_license
apatoski/FNCE385-Introduction-to-Financial-Technology
R
false
false
1,555
r
a <- rnorm(25) ## ------------------------------------------------------------------------ # Have a look at what is in "a" now print(a) # Basic statistical summaries of "a" summary(a) dist <- rbinom(225,1,0.91) num_tickets <- sum(dist) expected_rev <- (num_tickets*300+ (225-num_tickets)*75) # There are...
#----------------------------------------------------------------------------# # File: R Video Code Annotation # Author: Dylan Oh # # Created on 18 January 2018, 20:58 #----------------------------------------------------------------------------# #-----------------------------------------------------------------------...
/EBIO 1010/codeannotations.R
no_license
dmwo/EBIO-R-Code
R
false
false
15,666
r
#----------------------------------------------------------------------------# # File: R Video Code Annotation # Author: Dylan Oh # # Created on 18 January 2018, 20:58 #----------------------------------------------------------------------------# #-----------------------------------------------------------------------...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/nodes.branches.R \name{select_branch} \alias{select_branch} \title{select branch} \usage{ select_branch(phycnv, nodeid, cascade = FALSE) } \arguments{ \item{phycnv}{Required.} \item{nodeid}{Required.} \item{cascade}{Optional. Default \code...
/man/select_branch.Rd
no_license
cran/phylocanvas
R
false
true
534
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/nodes.branches.R \name{select_branch} \alias{select_branch} \title{select branch} \usage{ select_branch(phycnv, nodeid, cascade = FALSE) } \arguments{ \item{phycnv}{Required.} \item{nodeid}{Required.} \item{cascade}{Optional. Default \code...
df2020 <- read.csv("full_set_2020.csv") summary(df2020)
/2020_analysis.r
permissive
trdunsworth/WGU_Capstone
R
false
false
56
r
df2020 <- read.csv("full_set_2020.csv") summary(df2020)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/crafter-package.r \docType{package} \name{crafter} \alias{crafter} \alias{crafter-package} \title{A package to work with packet captures (PCAPs)} \description{ The main function - \code{read_pcap} returns a hybrid S3 \code{crafter} object wit...
/man/crafter.Rd
no_license
aandreatos/crafter
R
false
true
1,580
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/crafter-package.r \docType{package} \name{crafter} \alias{crafter} \alias{crafter-package} \title{A package to work with packet captures (PCAPs)} \description{ The main function - \code{read_pcap} returns a hybrid S3 \code{crafter} object wit...
# ANALYSIS OF GROWTH ADVANTAGE OF DIFFERENT SARS-CoV2 VARIANTS OF CONCERN IN THE NETHERLANDS #### # Tom Wenseleers # Data: baseline surveillance whole genome sequencing RIVM, https://data.rivm.nl/covid-19/COVID-19_varianten.csv / https://raw.githubusercontent.com/mzelst/covid-19/master/data-misc/variants-rivm/prevalen...
/data-misc/variants-rivm/prevalence/estimate_prevalence.R
permissive
JoepvanderPlas/covid-19
R
false
false
38,083
r
# ANALYSIS OF GROWTH ADVANTAGE OF DIFFERENT SARS-CoV2 VARIANTS OF CONCERN IN THE NETHERLANDS #### # Tom Wenseleers # Data: baseline surveillance whole genome sequencing RIVM, https://data.rivm.nl/covid-19/COVID-19_varianten.csv / https://raw.githubusercontent.com/mzelst/covid-19/master/data-misc/variants-rivm/prevalen...
# ================================================== # project: load data bases # Author: Andres Castaneda # Dependencies: The World Bank # ---------------------------------------------------- # Creation Date: sep 26 2019 # Modification Date: # Script version: 01 # References: # # # Outpu...
/R/load_data.R
no_license
worldbank/ESG_gaps_research
R
false
false
3,481
r
# ================================================== # project: load data bases # Author: Andres Castaneda # Dependencies: The World Bank # ---------------------------------------------------- # Creation Date: sep 26 2019 # Modification Date: # Script version: 01 # References: # # # Outpu...
\name{corpus_filepaths} \alias{corpus_filepaths} \title{Returns the absolute filepaths to corpus text files.} \description{ Returns file paths to the corpus texts; the locations of which are not always transparent to the user. } \usage{ corpus_filepaths(corpus, title = NULL) } \arguments{ \item{corp...
/man/corpus_filepaths.Rd
no_license
mahlberg-lab/CorporaCorpus
R
false
false
1,273
rd
\name{corpus_filepaths} \alias{corpus_filepaths} \title{Returns the absolute filepaths to corpus text files.} \description{ Returns file paths to the corpus texts; the locations of which are not always transparent to the user. } \usage{ corpus_filepaths(corpus, title = NULL) } \arguments{ \item{corp...
#!/usr/bin/env Rscript args <- commandArgs(trailingOnly = T) infile_1 <- args[1] infile_2 <- args[2] name1 <- args[3] name2 <- args[4] column <- args[5] prefix <- args[6] data_1 <- read.table(gzfile(infile_1), sep="\t", header=TRUE, quote="", stringsAsFactors=FALSE) data_2 <- read.table(gzfile(infile_2), sep="\t", he...
/local/src/overlap_column.R
no_license
vodkatad/AF_spectra
R
false
false
1,223
r
#!/usr/bin/env Rscript args <- commandArgs(trailingOnly = T) infile_1 <- args[1] infile_2 <- args[2] name1 <- args[3] name2 <- args[4] column <- args[5] prefix <- args[6] data_1 <- read.table(gzfile(infile_1), sep="\t", header=TRUE, quote="", stringsAsFactors=FALSE) data_2 <- read.table(gzfile(infile_2), sep="\t", he...
#' Write a gff3 file from a tidy table #' #' @param feats tidy feat table #' @param file name of output file #' @param seqs a tidy sequence table to generate optional `##sequence-region` #' directives in the header #' @param type if no type column exists, use this as the default type #' @param source if no source c...
/R/write.R
permissive
iimog/gggenomes
R
false
false
3,324
r
#' Write a gff3 file from a tidy table #' #' @param feats tidy feat table #' @param file name of output file #' @param seqs a tidy sequence table to generate optional `##sequence-region` #' directives in the header #' @param type if no type column exists, use this as the default type #' @param source if no source c...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/drug_enzyme_node_parser.R \name{parse_drug_enzymes_actions} \alias{parse_drug_enzymes_actions} \title{Extracts the drug enzymes actions element and return data as data frame.} \usage{ parse_drug_enzymes_actions(save_table = FALSE, save_...
/man/parse_drug_enzymes_actions.Rd
no_license
fabbondanza/dbparser
R
false
true
2,512
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/drug_enzyme_node_parser.R \name{parse_drug_enzymes_actions} \alias{parse_drug_enzymes_actions} \title{Extracts the drug enzymes actions element and return data as data frame.} \usage{ parse_drug_enzymes_actions(save_table = FALSE, save_...
# correct_labrid_data.R require(wrightscape) require(phytools) require(geiger) # This data has not been released labrid_tree <- read.nexus("../data/labrid_tree.nex") diet_data <- read.csv("../data/labriddata_parrotfish.csv") corrected_data <- diet_data # Use the simple names from Price et al 2010 traitnames <- c("Spe...
/demo/dataset_examples/parrotfish_data.R
permissive
cboettig/wrightscape
R
false
false
2,506
r
# correct_labrid_data.R require(wrightscape) require(phytools) require(geiger) # This data has not been released labrid_tree <- read.nexus("../data/labrid_tree.nex") diet_data <- read.csv("../data/labriddata_parrotfish.csv") corrected_data <- diet_data # Use the simple names from Price et al 2010 traitnames <- c("Spe...
# Purpose: designate active fire detections as "front burning" or "residual burning" library(tidyverse) library(sf) library(lubridate) library(purrr) firepoints3310 <- st_read("data/data_output/sierra-ypmc-active-fire-detections_epsg3310.gpkg") frap_meta <- st_read("data/data_raw/wildfire-severity_sierra-nevada-ca-u...
/data/data_carpentry/designate-front-versus-residual-burning.R
no_license
mikoontz/nighttime-fire-effects
R
false
false
6,453
r
# Purpose: designate active fire detections as "front burning" or "residual burning" library(tidyverse) library(sf) library(lubridate) library(purrr) firepoints3310 <- st_read("data/data_output/sierra-ypmc-active-fire-detections_epsg3310.gpkg") frap_meta <- st_read("data/data_raw/wildfire-severity_sierra-nevada-ca-u...
SystemRequirement { Identifier : uid448567, Text : "QYHFX32ZZ8KLF6D1IMNJYZJMITPXN1SNCSVWUUMEI4MPQKY6N9TGMUXAASR59FCCOAM88Q04L1HM9KV42E8GN81G8WFLXF7NLFNYTDHL5MBQRAD9EF5G6NHGZNO7X7S8NFU9K9QLKLRKQO4E8CW2CEYD4QX7BA8AKEOS0FXUCTMART5MYPB2VH9SWT6MUXEG7KGC2R8BLGFJEJVUKUZV8U771343O30ROSVW5O9OIA4LPBA815O016VCIUBP114CD181162L...
/test/huge/Books/9_NJ2VXJ/8_2OULH1.rd
permissive
lsp-implementaions/rel
R
false
false
943,862
rd
SystemRequirement { Identifier : uid448567, Text : "QYHFX32ZZ8KLF6D1IMNJYZJMITPXN1SNCSVWUUMEI4MPQKY6N9TGMUXAASR59FCCOAM88Q04L1HM9KV42E8GN81G8WFLXF7NLFNYTDHL5MBQRAD9EF5G6NHGZNO7X7S8NFU9K9QLKLRKQO4E8CW2CEYD4QX7BA8AKEOS0FXUCTMART5MYPB2VH9SWT6MUXEG7KGC2R8BLGFJEJVUKUZV8U771343O30ROSVW5O9OIA4LPBA815O016VCIUBP114CD181162L...
{ library(survey) library(dplyr) library(haven) library(ggplot2) library(ggthemes) library(GGally) library(lmtest) library(gtools) #library(formattable) library(openxlsx) library(plm) library(readr) library(sjstats) library(regclass) } data = read_csv("surveydata.csv") %>% select(-X1) # Kodning af variable --------...
/Erik survey branch_ny.R
no_license
erikmnielsen/Speciale-oecon
R
false
false
22,675
r
{ library(survey) library(dplyr) library(haven) library(ggplot2) library(ggthemes) library(GGally) library(lmtest) library(gtools) #library(formattable) library(openxlsx) library(plm) library(readr) library(sjstats) library(regclass) } data = read_csv("surveydata.csv") %>% select(-X1) # Kodning af variable --------...
#! /usr/bin/env Rscript ## ---- setup ---- # Install CRAN packages (if not already installed) .packages <- c("data.table", "plyr", "dplyr") .inst <- .packages %in% installed.packages() if(any(!.inst)) { install.packages(.packages[!.inst], repos = "http://cran.rstudio.com/") } # Load packages into session sapply...
/utils/general/db_summaries.R
no_license
AllThing/sedesol-public
R
false
false
4,479
r
#! /usr/bin/env Rscript ## ---- setup ---- # Install CRAN packages (if not already installed) .packages <- c("data.table", "plyr", "dplyr") .inst <- .packages %in% installed.packages() if(any(!.inst)) { install.packages(.packages[!.inst], repos = "http://cran.rstudio.com/") } # Load packages into session sapply...
################################################### ### Modelling using K-Means Clustering ### ################################################### ### K-means clustering # set up #data1 stores original data after cleansing (but before re-leveling) data3 <- data1 data3$gender <- as.numeric(data3$gender) data3 <- data.fr...
/5_Clustering & Improved GLM.R
no_license
AkiraK92/MQBSCapstoneProject
R
false
false
6,662
r
################################################### ### Modelling using K-Means Clustering ### ################################################### ### K-means clustering # set up #data1 stores original data after cleansing (but before re-leveling) data3 <- data1 data3$gender <- as.numeric(data3$gender) data3 <- data.fr...
context("Glimpse") test_that("format_v for values", { expect_equal(format_v(1), "1") expect_equal(format_v(1:3), c("1", "2", "3")) expect_equal(format_v(NA), "NA") expect_equal(format_v(TRUE), "TRUE") expect_equal(format_v(logical()), character()) }) test_that("format_v for character", { expect_equal(form...
/packrat/lib/x86_64-pc-linux-gnu/3.4.3/tibble/tests/testthat/test-glimpse.R
permissive
xinbinhuang/bitcoin-analysis
R
false
false
2,158
r
context("Glimpse") test_that("format_v for values", { expect_equal(format_v(1), "1") expect_equal(format_v(1:3), c("1", "2", "3")) expect_equal(format_v(NA), "NA") expect_equal(format_v(TRUE), "TRUE") expect_equal(format_v(logical()), character()) }) test_that("format_v for character", { expect_equal(form...
test_that("get_afghan_regional_cases data source is unchanged and up to date", { data <- readr::read_csv("https://docs.google.com/spreadsheets/d/1F-AMEDtqK78EA6LYME2oOsWQsgJi4CT3V_G4Uo-47Rg/export?format=csv") expected_colnames <- c("Province", "Cases", "Deaths", "Recoveries", "Active Cases", "Date") expect_true(...
/tests/testthat/test-get_afghan_regional_cases.R
permissive
mariabnd/covidregionaldata
R
false
false
1,180
r
test_that("get_afghan_regional_cases data source is unchanged and up to date", { data <- readr::read_csv("https://docs.google.com/spreadsheets/d/1F-AMEDtqK78EA6LYME2oOsWQsgJi4CT3V_G4Uo-47Rg/export?format=csv") expected_colnames <- c("Province", "Cases", "Deaths", "Recoveries", "Active Cases", "Date") expect_true(...
a = 0.116 b = 0.114 A = function(W) { W/(a*W +b) } W = function(A) { b*A/(1-A*a) } A(1.05) x = A(2.29) W(x) W(0.007189)
/src/resources/data/input/papers/2021-saccharina(0)/analysis/area.R
no_license
NielsHolst/UniSim2
R
false
false
128
r
a = 0.116 b = 0.114 A = function(W) { W/(a*W +b) } W = function(A) { b*A/(1-A*a) } A(1.05) x = A(2.29) W(x) W(0.007189)
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252348781e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L))) result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist) st...
/CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615782630-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
329
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252348781e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L))) result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist) st...
/[교내수업]Yonsei/MarketingAnalytics_R/KBO_regression.R
no_license
Hwnag702/datascience
R
false
false
4,259
r
# ---------------------------------------- # Objective: Format tree ring data so that it can be compared to models # Christy Rollinson, crollinson@gmail.com # Date Created: 21 January 2016 # ---------------------------------------- # # ------------------------- # Workflow # ------------------------- # 1. Load and forma...
/R/3b_format_treerings_NPP.R
no_license
PalEON-Project/Temporal-Scaling-MS
R
false
false
8,025
r
# ---------------------------------------- # Objective: Format tree ring data so that it can be compared to models # Christy Rollinson, crollinson@gmail.com # Date Created: 21 January 2016 # ---------------------------------------- # # ------------------------- # Workflow # ------------------------- # 1. Load and forma...
library(plotly) dt <- data.frame( x = 1:8, freq = c(120,130,140,150,160,170,170,180), earn = c(3,3,5,4,6,7,3,5) * 0.1 ) dt_earn_plotly <- plot_ly(data = dt, x=dt$x, y=dt$earn, type = "scatter", mode = "liners", name = "earn") dt_freq_plotly <- plot_ly(data = dt, x=dt$x, y=dt$freq, type = "bar", name = ...
/plotly sample.R
no_license
yichunsung/R_Application
R
false
false
427
r
library(plotly) dt <- data.frame( x = 1:8, freq = c(120,130,140,150,160,170,170,180), earn = c(3,3,5,4,6,7,3,5) * 0.1 ) dt_earn_plotly <- plot_ly(data = dt, x=dt$x, y=dt$earn, type = "scatter", mode = "liners", name = "earn") dt_freq_plotly <- plot_ly(data = dt, x=dt$x, y=dt$freq, type = "bar", name = ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/NonProbEst.R \name{lee_weights} \alias{lee_weights} \title{Calculates Lee weights} \usage{ lee_weights(convenience_propensities, reference_propensities, g = 5) } \arguments{ \item{convenience_propensities}{A vector with the propensities assoc...
/man/lee_weights.Rd
no_license
cran/NonProbEst
R
false
true
2,336
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/NonProbEst.R \name{lee_weights} \alias{lee_weights} \title{Calculates Lee weights} \usage{ lee_weights(convenience_propensities, reference_propensities, g = 5) } \arguments{ \item{convenience_propensities}{A vector with the propensities assoc...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/myci.R \name{myci} \alias{myci} \title{myci} \usage{ myci(x) } \arguments{ \item{x}{A sample to be tested} } \value{ The 95% percent confidence interval for a single sample for mu. } \description{ myci } \examples{ set.seed(23);x = rnorm(30,m...
/man/myci.Rd
no_license
raymondhaynesOU/Math4753
R
false
true
344
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/myci.R \name{myci} \alias{myci} \title{myci} \usage{ myci(x) } \arguments{ \item{x}{A sample to be tested} } \value{ The 95% percent confidence interval for a single sample for mu. } \description{ myci } \examples{ set.seed(23);x = rnorm(30,m...
#' RBi is an interface to \code{libbi}, a library for Bayesian Inference #' #' The package includes a wrapper for the \code{libbi} script, allowing #' to launch the \code{libbi} command from within R. #' It also provides various utility functions to browse the output from \code{libbi}, #' for instance to plot the res...
/R/RBi-package.R
no_license
tyler-abbot/RBi
R
false
false
1,425
r
#' RBi is an interface to \code{libbi}, a library for Bayesian Inference #' #' The package includes a wrapper for the \code{libbi} script, allowing #' to launch the \code{libbi} command from within R. #' It also provides various utility functions to browse the output from \code{libbi}, #' for instance to plot the res...
library(shiny) library(ggplot2) # Modificaciones estéticas para las apps de Shiny: texto e imágenes. # ----- Interfaz Gráfica ----- InterfazEx2 <- fluidPage( titlePanel(h1(strong("Hey"), align = "center")), sidebarLayout( position = "right", sidebarPanel( ...
/ShinyBeginnings/06-Aesthetics.R
no_license
Angnar1997/ShinyPath
R
false
false
1,051
r
library(shiny) library(ggplot2) # Modificaciones estéticas para las apps de Shiny: texto e imágenes. # ----- Interfaz Gráfica ----- InterfazEx2 <- fluidPage( titlePanel(h1(strong("Hey"), align = "center")), sidebarLayout( position = "right", sidebarPanel( ...
kNN <- function(features, labels, train_set = NULL, k = 1, p = 2, type='train'){ # test the inputs if (!require("assertthat")) install.packages("assertthat"); library(assertthat); if (!require("plyr")) install.packages("plyr"); library(plyr); not_empty(features); not_empty(labels); are_equal(nrow(f...
/PS3/kNN.R
no_license
denipanova/adcomp
R
false
false
3,170
r
kNN <- function(features, labels, train_set = NULL, k = 1, p = 2, type='train'){ # test the inputs if (!require("assertthat")) install.packages("assertthat"); library(assertthat); if (!require("plyr")) install.packages("plyr"); library(plyr); not_empty(features); not_empty(labels); are_equal(nrow(f...
library(knitr) library(dplyr) library(tidyr) library(reshape2) library(RColorBrewer) library(GGally) library(ggplot2) library(caret) library(glmnet) library(boot) library(verification) german_credit<-read.table("german.data") psych::describe(german_credit) colnames(german_credit)=c("chk_acct","duration","credit_his","...
/Variable Selection Logistic.R
no_license
guptahk/German-Credit-Data
R
false
false
7,392
r
library(knitr) library(dplyr) library(tidyr) library(reshape2) library(RColorBrewer) library(GGally) library(ggplot2) library(caret) library(glmnet) library(boot) library(verification) german_credit<-read.table("german.data") psych::describe(german_credit) colnames(german_credit)=c("chk_acct","duration","credit_his","...
setwd("F:\\Data Science\\DataScience_2019501111\\Data Mining\\Final exam") data = read.csv("Liver_data.csv", header = FALSE, col.names = c("mcv", "alkphos", "sgpt", "sgot", "gammagt", "drinks", "selector")) data$drinks = cut(data$drinks, breaks = c(0,5,10,15,20,25), labels = c('C1', 'C2', 'C3', 'C4', 'C4'), right =...
/Data Mining/FinalExam/Q5.R
no_license
Manideepnetha/DataScience_2019501111
R
false
false
853
r
setwd("F:\\Data Science\\DataScience_2019501111\\Data Mining\\Final exam") data = read.csv("Liver_data.csv", header = FALSE, col.names = c("mcv", "alkphos", "sgpt", "sgot", "gammagt", "drinks", "selector")) data$drinks = cut(data$drinks, breaks = c(0,5,10,15,20,25), labels = c('C1', 'C2', 'C3', 'C4', 'C4'), right =...
#' Distribution function of a copula #' #' Constructs the distribution function for a supplied copula object. #' #' @param copula A copula object. Supplies the copula for which the cdf is to be #' defined. #' @param u double. Optional argument supplying the data to evaluate the cdf. #' @return An expression for the cdf...
/R/pcop.R
no_license
AlexanderRitz/copR
R
false
false
930
r
#' Distribution function of a copula #' #' Constructs the distribution function for a supplied copula object. #' #' @param copula A copula object. Supplies the copula for which the cdf is to be #' defined. #' @param u double. Optional argument supplying the data to evaluate the cdf. #' @return An expression for the cdf...
### - GCtoMAT_BW_vJJ - ### # Adapted from GCtoMAT_BW_v2.R # Brian Whyte # ba.whyte@berkeley.edu # ----- READ ME ----- # <---- <---- <---- <---- <---- <---- ### OBJECTIVE ### # 1) Gather .csv files from directory # 2) Extract only RT and Area data from .csv files into a shared list # 3) Organize (via merge function...
/GCtoMAT_BW_vJJ_2.R
no_license
buelles/GC_Auto
R
false
false
2,743
r
### - GCtoMAT_BW_vJJ - ### # Adapted from GCtoMAT_BW_v2.R # Brian Whyte # ba.whyte@berkeley.edu # ----- READ ME ----- # <---- <---- <---- <---- <---- <---- ### OBJECTIVE ### # 1) Gather .csv files from directory # 2) Extract only RT and Area data from .csv files into a shared list # 3) Organize (via merge function...
# Read data ################################################################################ # Clear workspace rm(list = ls()) # Packages library(tidyverse) library(countrycode) # Directories inputdir <- "data/intakes/processed" outputdir <- "data/intakes/output" plotdir <- "data/intakes/figures" # Read data dis...
/data/intakes/FigSX_intake_distributions.R
no_license
alonshepon/Health-Benefit-Calculation-BFA
R
false
false
5,908
r
# Read data ################################################################################ # Clear workspace rm(list = ls()) # Packages library(tidyverse) library(countrycode) # Directories inputdir <- "data/intakes/processed" outputdir <- "data/intakes/output" plotdir <- "data/intakes/figures" # Read data dis...
shinyServer(function(input, output, session){ print("Initialize Start") values <- reactiveValues() values$data <- tibble() values$AB <- NULL # -------------------------- # UI output$ui_dlbtn <- renderUI({ if(nrow(values$data) > 0){ downloadButton("dl_data", "Download") } }) outp...
/server.R
no_license
okiyuki99/ShinyBayesianAB
R
false
false
9,289
r
shinyServer(function(input, output, session){ print("Initialize Start") values <- reactiveValues() values$data <- tibble() values$AB <- NULL # -------------------------- # UI output$ui_dlbtn <- renderUI({ if(nrow(values$data) > 0){ downloadButton("dl_data", "Download") } }) outp...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{kegg_hsa} \alias{kegg_hsa} \title{Human pathway gene sets from KEGG} \format{A tibble with 25,059 rows and 291 pathways} \source{ \code{kegg.gsets} in \code{gage} package } \usage{ kegg_hsa } \description{ Human pa...
/man/kegg_hsa.Rd
no_license
topherconley/hciR
R
false
true
645
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{kegg_hsa} \alias{kegg_hsa} \title{Human pathway gene sets from KEGG} \format{A tibble with 25,059 rows and 291 pathways} \source{ \code{kegg.gsets} in \code{gage} package } \usage{ kegg_hsa } \description{ Human pa...
#Math433 modeling Ex II library(deSolve) # condomUse.prep is the probability someone on PrEP uses a condom # condomeUse.noprep is the probability someone not on PrEP uses a condom # prop.prep is the proportion of the population on PrEP # prop.noprep is the proportion of the population not on PrEP # length.time is the ...
/Math433ModelingExII.R
no_license
celhai/jail-opioids
R
false
false
3,266
r
#Math433 modeling Ex II library(deSolve) # condomUse.prep is the probability someone on PrEP uses a condom # condomeUse.noprep is the probability someone not on PrEP uses a condom # prop.prep is the proportion of the population on PrEP # prop.noprep is the proportion of the population not on PrEP # length.time is the ...