content
large_stringlengths
0
6.46M
path
large_stringlengths
3
331
license_type
large_stringclasses
2 values
repo_name
large_stringlengths
5
125
language
large_stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.46M
extension
large_stringclasses
75 values
text
stringlengths
0
6.46M
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/realm_data.R \name{realm_test_files} \alias{realm_test_files} \title{Test files for realm} \usage{ realm_test_files() } \value{ data frame } \description{ Test files for realm } \examples{ # realm_test_files() }
/man/realm_test_files.Rd
no_license
hypertidy/realm
R
false
true
291
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/realm_data.R \name{realm_test_files} \alias{realm_test_files} \title{Test files for realm} \usage{ realm_test_files() } \value{ data frame } \description{ Test files for realm } \examples{ # realm_test_files() }
library(testthat) library(arcstats) test_check("arcstats")
/tests/testthat.R
no_license
martakarass/arcstats
R
false
false
60
r
library(testthat) library(arcstats) test_check("arcstats")
library(phylosim) ### Name: summary.F84 ### Title: Summarize the properties of an object ### Aliases: summary.F84 F84.summary summary,F84-method ### ** Examples # create an object a<-F84(rate.params=list("Kappa"=3)) # get a summary summary(a)
/data/genthat_extracted_code/phylosim/examples/summary.F84.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
275
r
library(phylosim) ### Name: summary.F84 ### Title: Summarize the properties of an object ### Aliases: summary.F84 F84.summary summary,F84-method ### ** Examples # create an object a<-F84(rate.params=list("Kappa"=3)) # get a summary summary(a)
makeCacheMatrix <- function(x = matrix()) { # holds the cached value or NULL if nothing is cached # initially nothing is cached so set it to NULL cache <- NULL # store a matrix setMatrix <- function(newValue) { x <<- newValue # since the matrix is assigned a new value, flush the cache cache <<-...
/cachematrix.R
no_license
samarthkhatry/ProgrammingAssignment2
R
false
false
1,201
r
makeCacheMatrix <- function(x = matrix()) { # holds the cached value or NULL if nothing is cached # initially nothing is cached so set it to NULL cache <- NULL # store a matrix setMatrix <- function(newValue) { x <<- newValue # since the matrix is assigned a new value, flush the cache cache <<-...
shinyUI(bootstrapPage( titlePanel("Igor's Shiny App"), p("This app reads data from Michelson Speed of Light Data(source: https://stat.ethz.ch/R-manual/R-patched/library/datasets/html/morley.html) and creates a histogram of the speed of light data. User is able to select number of bins after which the hist...
/ui.R
no_license
IgorStojanov/RShinyApp
R
false
false
1,316
r
shinyUI(bootstrapPage( titlePanel("Igor's Shiny App"), p("This app reads data from Michelson Speed of Light Data(source: https://stat.ethz.ch/R-manual/R-patched/library/datasets/html/morley.html) and creates a histogram of the speed of light data. User is able to select number of bins after which the hist...
comment = " 1. 구글 트렌드를 이용하여 Seasonal variations이 있는 데이터 찾기 https://www.google.com/trends/?hl=ko (1) 다음 방법들을 적용하고 예측력 비교해 보세요 (최소 10시점 이후 예측할 것) - Dummy variable, trigonometric models, Additive Holt-Winters, Multiplicative Holt-Winters. (2) Additive Holt-Winters와 Multiplicative Holt-Winters 방법의 Weighting parameter ...
/TimeSeriesAnalysisCase2/TutorialCode02.R
no_license
ds-academy/R-usages
R
false
false
14,945
r
comment = " 1. 구글 트렌드를 이용하여 Seasonal variations이 있는 데이터 찾기 https://www.google.com/trends/?hl=ko (1) 다음 방법들을 적용하고 예측력 비교해 보세요 (최소 10시점 이후 예측할 것) - Dummy variable, trigonometric models, Additive Holt-Winters, Multiplicative Holt-Winters. (2) Additive Holt-Winters와 Multiplicative Holt-Winters 방법의 Weighting parameter ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/all_diagnostics.R \name{densityplot.angmcmc} \alias{densityplot.angmcmc} \title{Density plots for angmcmc objects} \usage{ \method{densityplot}{angmcmc}( x, fn = mean, type = "point-est", log.density = FALSE, xpoints = seq(0, 2 * pi...
/issuestests/BAMBI/man/densityplot.angmcmc.Rd
no_license
akhikolla/RcppDeepStateTest
R
false
true
4,041
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/all_diagnostics.R \name{densityplot.angmcmc} \alias{densityplot.angmcmc} \title{Density plots for angmcmc objects} \usage{ \method{densityplot}{angmcmc}( x, fn = mean, type = "point-est", log.density = FALSE, xpoints = seq(0, 2 * pi...
phi_con_str_est <- function(x_i,y_i,w_i,beta,corstr,family){ if(family=="binomial"){ mu_i=exp(x_i%*%beta)/(1+exp(x_i%*%beta)) cons_cov=c(mu_i*(1-mu_i)) } else if (family=="gaussian") { mu_i=x_i%*%beta cons_cov=rep(1,length(mu_i)) } else { mu_i=exp(x_i%*%beta) cons_cov=c(mu_i) } a...
/R/phi_con_str_est.R
no_license
cran/wgeesel
R
false
false
436
r
phi_con_str_est <- function(x_i,y_i,w_i,beta,corstr,family){ if(family=="binomial"){ mu_i=exp(x_i%*%beta)/(1+exp(x_i%*%beta)) cons_cov=c(mu_i*(1-mu_i)) } else if (family=="gaussian") { mu_i=x_i%*%beta cons_cov=rep(1,length(mu_i)) } else { mu_i=exp(x_i%*%beta) cons_cov=c(mu_i) } a...
cool_summary = function(data, categorical, numeric) { ddply(data, .(get(categorical)), summarize, mean = round(mean(get(numeric)), 2), sd = round(sd(get(numeric)), 2)) }
/R/cool_summary.R
no_license
awu089/WuHu
R
false
false
188
r
cool_summary = function(data, categorical, numeric) { ddply(data, .(get(categorical)), summarize, mean = round(mean(get(numeric)), 2), sd = round(sd(get(numeric)), 2)) }
concrete <- read.csv('concrete.csv') str(concrete) normalize <- function(x) { return ((x - min(x)) / (max(x) - min(x))) } concrete_norm <- as.data.frame(lapply(concrete, normalize)) concrete_train <- concrete_norm[1:773, ] concrete_test <- concrete_norm[774:1030, ] require(neuralnet) concrete_model <- neuralnet(s...
/MLwR/concrete.R
permissive
glu99331/R-lang
R
false
false
1,041
r
concrete <- read.csv('concrete.csv') str(concrete) normalize <- function(x) { return ((x - min(x)) / (max(x) - min(x))) } concrete_norm <- as.data.frame(lapply(concrete, normalize)) concrete_train <- concrete_norm[1:773, ] concrete_test <- concrete_norm[774:1030, ] require(neuralnet) concrete_model <- neuralnet(s...
#' Weather observations at Ames - Jan. 2014 #' #' A dataset containing hourly weather observations at Ames, Iowa (US) for #' the month of January 2014. Data obtained from Weather Undergound's API, #' using the \code{rwunderground} package. #' #' @format A data frame with 983 rows and 19 variables: #' \describe{ #' \i...
/R/wx_ames.R
no_license
ijlyttle/shinypod
R
false
false
1,430
r
#' Weather observations at Ames - Jan. 2014 #' #' A dataset containing hourly weather observations at Ames, Iowa (US) for #' the month of January 2014. Data obtained from Weather Undergound's API, #' using the \code{rwunderground} package. #' #' @format A data frame with 983 rows and 19 variables: #' \describe{ #' \i...
#---- Scatter plot example--------------------- x <- c(12,23,40,35,13,34,25,15,17,32,23,36,33,31) y <- c(10,13,35,35,23,34,35,15,17,32,23,32,37,32) df <- cbind(x,y) df plot(df, main="Scatterplot Example", xlab="X labels ", ylab="Y labels", pch =16) plot(df, main="Scatterplot Example", xlab="X labels ", ylab="Y labels"...
/Session 2/visualizations R.R
no_license
ShijieNi/METCS688
R
false
false
10,191
r
#---- Scatter plot example--------------------- x <- c(12,23,40,35,13,34,25,15,17,32,23,36,33,31) y <- c(10,13,35,35,23,34,35,15,17,32,23,32,37,32) df <- cbind(x,y) df plot(df, main="Scatterplot Example", xlab="X labels ", ylab="Y labels", pch =16) plot(df, main="Scatterplot Example", xlab="X labels ", ylab="Y labels"...
setwd("/Volumes/Data Science/Google Drive/data_science_competition/kaggle/Santander_Customer_Satisfaction/") rm(list = ls()); gc(); require(data.table) require(purrr) require(caret) require(xgboost) require(Matrix) require(Ckmeans.1d.dp) require(Metrics) require(ggplot2) require(combinat) source("utilities/preprocess.R...
/script/11_singleModel_xgb_poisson_oof.R
no_license
noahhhhhh/Santander_Customer_Satisfaction
R
false
false
3,995
r
setwd("/Volumes/Data Science/Google Drive/data_science_competition/kaggle/Santander_Customer_Satisfaction/") rm(list = ls()); gc(); require(data.table) require(purrr) require(caret) require(xgboost) require(Matrix) require(Ckmeans.1d.dp) require(Metrics) require(ggplot2) require(combinat) source("utilities/preprocess.R...
library(ilc) ### Name: fle.plot ### Title: Miscellaneous plotting functions for 'lca' and 'lca.rh' type ### regression objects. Plot of forecasted life expectancy based on a ### fitted Lee-Carter model object ### Aliases: fle.plot ### Keywords: method ### ** Examples mod6 <- lca.rh(dd.cmi.pens, mod='lc', interp...
/data/genthat_extracted_code/ilc/examples/fle.plot.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
373
r
library(ilc) ### Name: fle.plot ### Title: Miscellaneous plotting functions for 'lca' and 'lca.rh' type ### regression objects. Plot of forecasted life expectancy based on a ### fitted Lee-Carter model object ### Aliases: fle.plot ### Keywords: method ### ** Examples mod6 <- lca.rh(dd.cmi.pens, mod='lc', interp...
#Truncate Function(Space Avail/Build Size/ Price) #This function takes in synthesized data and eliminates data outside the first and third quartile ranges of the real-world data. truncate<- function(matrix,size_min,size_max,n){ for (i in 1:n) {if (matrix[i]<size_min) matrix[i]=NaN else if (m...
/dataGeneration/Truncate.R
no_license
bStrangerman/ie332group11
R
false
false
422
r
#Truncate Function(Space Avail/Build Size/ Price) #This function takes in synthesized data and eliminates data outside the first and third quartile ranges of the real-world data. truncate<- function(matrix,size_min,size_max,n){ for (i in 1:n) {if (matrix[i]<size_min) matrix[i]=NaN else if (m...
# use recent data from usafacts and limit to cases but include multiple counties str(US_7cases) US_7casest <- as.data.frame(t(US_7cases)) colnames(US_7casest) <- c("CO", "MI", "MN", "NE", "PA", "SD", "TX") dim(US_7casest) # truncate to remove days prior to reporting (first case occurs on row 45) US_7cum <- US_7casest[...
/Code/State level/USstates_VAR.R
permissive
Reinalynn/Forecasting-COVID-19-Cases-and-Deaths-Using-Time-Series-in-R
R
false
false
10,565
r
# use recent data from usafacts and limit to cases but include multiple counties str(US_7cases) US_7casest <- as.data.frame(t(US_7cases)) colnames(US_7casest) <- c("CO", "MI", "MN", "NE", "PA", "SD", "TX") dim(US_7casest) # truncate to remove days prior to reporting (first case occurs on row 45) US_7cum <- US_7casest[...
#################################################################################### #### SaemixModel class - definition #### #################################################################################### setClass( Class="SaemixModel", representation=representation( model="function", # name of mod...
/FastSAEM - Main/fSAEM_Code/fsaem_ref/Dir/SaemixModel.R
no_license
BelhalK/AccelerationTrainingAlgorithms
R
false
false
28,445
r
#################################################################################### #### SaemixModel class - definition #### #################################################################################### setClass( Class="SaemixModel", representation=representation( model="function", # name of mod...
#' @name cfbd_coaches #' @aliases coaches cfbd_coaches #' @title #' **CFBD Coaches Endpoint Overview** #' @description #' **Coach information search** #' A coach search function which provides coaching records and school history for a given coach #' ``` #' cfbd_coaches(first = "Nick", last = "Saban", team = "alabama"...
/R/cfbd_coaches.R
no_license
saiemgilani/jamstackingup
R
false
false
5,032
r
#' @name cfbd_coaches #' @aliases coaches cfbd_coaches #' @title #' **CFBD Coaches Endpoint Overview** #' @description #' **Coach information search** #' A coach search function which provides coaching records and school history for a given coach #' ``` #' cfbd_coaches(first = "Nick", last = "Saban", team = "alabama"...
# Exploratory Data Analysis orangeec dataset str(orangeec) summary(orangeec) platzi_time <- c(25,5,10,15,10) reading_time <- c(30,10,5,10,15) learning_time <- platzi_time + reading_time learning_time learning_days <- c("Monday", "Tuesday", "Wednesday", "Thursday", "Friday") learning_days days_more_than_20min <- c(...
/3. R/EDA_orangeec.R
no_license
juliopovedacs/datascience
R
false
false
1,373
r
# Exploratory Data Analysis orangeec dataset str(orangeec) summary(orangeec) platzi_time <- c(25,5,10,15,10) reading_time <- c(30,10,5,10,15) learning_time <- platzi_time + reading_time learning_time learning_days <- c("Monday", "Tuesday", "Wednesday", "Thursday", "Friday") learning_days days_more_than_20min <- c(...
# Exploratory Data Analysis -- Coursera # Course Project 1 ### FOR REPRODUCABILITY ### # Dataset source: https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip dat_loc <- "household_power_consumption.txt" # Measurements of electric power consumption in one household with a one-minute s...
/plot4.R
no_license
fuzionq/ExData_Plotting1
R
false
false
2,289
r
# Exploratory Data Analysis -- Coursera # Course Project 1 ### FOR REPRODUCABILITY ### # Dataset source: https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip dat_loc <- "household_power_consumption.txt" # Measurements of electric power consumption in one household with a one-minute s...
mypath <- "../class_data" read_csv(paste0(mypath,"/constituents.csv")) -> constituents read_csv("../class_data/indexes.csv") -> indexes constituents$Symbol[constituents$Symbol == "BRK.B"] <- "BRK-B" constituents$Symbol[constituents$Symbol == "BF.B"] <- "BF-B" list.files(paste0(mypath, "/stock_dfs/")) -> all_files files...
/HW9/Solutions/1.R
no_license
Mahbodmajid/DataAnalysis
R
false
false
11,243
r
mypath <- "../class_data" read_csv(paste0(mypath,"/constituents.csv")) -> constituents read_csv("../class_data/indexes.csv") -> indexes constituents$Symbol[constituents$Symbol == "BRK.B"] <- "BRK-B" constituents$Symbol[constituents$Symbol == "BF.B"] <- "BF-B" list.files(paste0(mypath, "/stock_dfs/")) -> all_files files...
# Loading the data data <- read.table("household_power_consumption.txt", header= TRUE, sep=";", stringsAsFactors=FALSE, dec=".") summary(data) # Subset the data subsetdata <- data[data$Date %in% c("1/2/2007","2/2/2007"),] globalActivePower <- as.numeric(subsetdata$Global_active_power) globalReactivePower <- as.numeri...
/plot3.R
no_license
Jeffersonhalim/Data-Plotting
R
false
false
878
r
# Loading the data data <- read.table("household_power_consumption.txt", header= TRUE, sep=";", stringsAsFactors=FALSE, dec=".") summary(data) # Subset the data subsetdata <- data[data$Date %in% c("1/2/2007","2/2/2007"),] globalActivePower <- as.numeric(subsetdata$Global_active_power) globalReactivePower <- as.numeri...
#' Analysis #' numbers of sensors
/evaluation/scripts/do.R
permissive
das-labor/luftdaten-r
R
false
false
36
r
#' Analysis #' numbers of sensors
library(RColorBrewer) spplot(NY8, c("eigen_24", "eigen_223"), col.regions=grey.colors(6, 0.95, 0.55, 2.2), cuts=5)
/docs/book/lat2-062.R
permissive
r-spatial/asdar-book.org
R
false
false
117
r
library(RColorBrewer) spplot(NY8, c("eigen_24", "eigen_223"), col.regions=grey.colors(6, 0.95, 0.55, 2.2), cuts=5)
################################################################################ # summary method for objects of class "din" # ################################################################################ summary.din <- function(object, top.n.skill.classes = 6, overwrite = ...
/R/summary.din.R
no_license
parksejin/CDM
R
false
false
4,498
r
################################################################################ # summary method for objects of class "din" # ################################################################################ summary.din <- function(object, top.n.skill.classes = 6, overwrite = ...
## Code to accompany VectorBiTE 2019 ## Intro to Time Series lecture ## Leah R Johnson, Stats, VT ## slide 4 weather <- read.csv("weather.csv") ## pdf("weather.pdf", width=7, height=4) plot(weather$temp, xlab="day", ylab="temp", type="l", col=2, lwd=2) ## dev.off() ## slide 5 beer <- read.csv("beer.csv") ## pdf("...
/code/VB_TS.R
no_license
Amixp/VBiTraining2
R
false
false
3,831
r
## Code to accompany VectorBiTE 2019 ## Intro to Time Series lecture ## Leah R Johnson, Stats, VT ## slide 4 weather <- read.csv("weather.csv") ## pdf("weather.pdf", width=7, height=4) plot(weather$temp, xlab="day", ylab="temp", type="l", col=2, lwd=2) ## dev.off() ## slide 5 beer <- read.csv("beer.csv") ## pdf("...
if(!require(pacman)){ install.packages("pacman")} pacman::p_load(DBI, tidyverse, keyring) class(RPostgres::Postgres()) key_list() con <- dbConnect(drv = RPostgres::Postgres(), user=key_get("pg_user"), password=key_get("pg_pwd"), dbname="chinook") class(con) #con <- dbConnect(drv = RPostgres::Postgres(), # ...
/Working with dbplyr.r
no_license
john-mwangi/Interfacing-with-Databases
R
false
false
5,412
r
if(!require(pacman)){ install.packages("pacman")} pacman::p_load(DBI, tidyverse, keyring) class(RPostgres::Postgres()) key_list() con <- dbConnect(drv = RPostgres::Postgres(), user=key_get("pg_user"), password=key_get("pg_pwd"), dbname="chinook") class(con) #con <- dbConnect(drv = RPostgres::Postgres(), # ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rmd_lists.R \name{rmd_list} \alias{rmd_list} \alias{rmd_list_unordered} \alias{rmd_list_numbered} \alias{rmd_list_lettered} \alias{rmd_master_list} \title{Format as R Markdown list} \usage{ rmd_list(type = "unordered", level = 1) rmd_list_un...
/man/rmd_list.Rd
permissive
nemochina2008/spAddins
R
false
true
1,152
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rmd_lists.R \name{rmd_list} \alias{rmd_list} \alias{rmd_list_unordered} \alias{rmd_list_numbered} \alias{rmd_list_lettered} \alias{rmd_master_list} \title{Format as R Markdown list} \usage{ rmd_list(type = "unordered", level = 1) rmd_list_un...
# TITLE: Run Poisson Model # Setup ---------------------------------------------------------------------------------------------------------------- tic() .competition_id <- "sco_prem" wd <- load_wd() set_inital_training <- read_rds(glue("{wd$dev_result_sco_prem_processed_data}set_inital_training.rds")) set_m...
/development/result_sco_prem/scripts/03a_run_poisson_model.R
no_license
Sol-Won-1100/panenkar
R
false
false
1,272
r
# TITLE: Run Poisson Model # Setup ---------------------------------------------------------------------------------------------------------------- tic() .competition_id <- "sco_prem" wd <- load_wd() set_inital_training <- read_rds(glue("{wd$dev_result_sco_prem_processed_data}set_inital_training.rds")) set_m...
#' @title Medical Decision Making #' #' #' #' @importFrom R6 R6Class #' @import jmvcore #' decisionClass <- if (requireNamespace("jmvcore")) R6::R6Class("decisionClass", inherit = decisionBase, private = list(.run = function() { # # Error Message ---- # # if (nrow(self$data) == 0) stop("D...
/R/decision.b.R
no_license
sbalci/ClinicoPath
R
false
false
6,196
r
#' @title Medical Decision Making #' #' #' #' @importFrom R6 R6Class #' @import jmvcore #' decisionClass <- if (requireNamespace("jmvcore")) R6::R6Class("decisionClass", inherit = decisionBase, private = list(.run = function() { # # Error Message ---- # # if (nrow(self$data) == 0) stop("D...
rm(list = ls()) require(rjags) library(coda) set.seed(432104) N <-100 sigma <- 16 kappa <- 0.02 mu_0 <- 20; r <- 0.4; K <- 40; tau <- sqrt(sigma^2*kappa) x <- rnorm(1 ,mu_0, tau) y <- rnorm(1, 9*x, sigma) for(i in 2:N){ x[i] <- rnorm(1, x[i-1] + r*x[i-1]*(1-x[i-1]/40) , tau) y[i] <- rnorm(1, 9*x[i], sigma)...
/jags_teste/dlm_jags_02.R
no_license
RafaelOliv3veira/teste
R
false
false
1,019
r
rm(list = ls()) require(rjags) library(coda) set.seed(432104) N <-100 sigma <- 16 kappa <- 0.02 mu_0 <- 20; r <- 0.4; K <- 40; tau <- sqrt(sigma^2*kappa) x <- rnorm(1 ,mu_0, tau) y <- rnorm(1, 9*x, sigma) for(i in 2:N){ x[i] <- rnorm(1, x[i-1] + r*x[i-1]*(1-x[i-1]/40) , tau) y[i] <- rnorm(1, 9*x[i], sigma)...
# This Question is cited from the book # Dennis E. Shasha, "Puzzles for Programmers and Pros", 2007, Wrox library(purrr) library(rBayesianOptimization) secretary_problem <- function (item_size, pass_list) { nums <- sample(seq(1, item_size, 1)) pivot <- max(nums[1:pass_list[1]]) selected_nums <- c()...
/secretaryProblem.R
permissive
zettsu-t/cPlusPlusFriend
R
false
false
3,271
r
# This Question is cited from the book # Dennis E. Shasha, "Puzzles for Programmers and Pros", 2007, Wrox library(purrr) library(rBayesianOptimization) secretary_problem <- function (item_size, pass_list) { nums <- sample(seq(1, item_size, 1)) pivot <- max(nums[1:pass_list[1]]) selected_nums <- c()...
#' OOS : Linear Projection #' #' The simplest way of out-of-sample extension might be linear regression even though the original embedding #' is not the linear type by solving #' \deqn{\textrm{min}_{\beta} \|X_{old} \beta - Y_{old}\|_2^2} and use the estimate \eqn{\hat{beta}} to acquire #' \deqn{Y_{new} = X_{new} \hat{...
/R/oos_LINPROJ.R
no_license
rcannood/Rdimtools
R
false
false
4,029
r
#' OOS : Linear Projection #' #' The simplest way of out-of-sample extension might be linear regression even though the original embedding #' is not the linear type by solving #' \deqn{\textrm{min}_{\beta} \|X_{old} \beta - Y_{old}\|_2^2} and use the estimate \eqn{\hat{beta}} to acquire #' \deqn{Y_{new} = X_{new} \hat{...
source(file.path("programs/models.r")) source(file.path("programs/EE.r")) source(file.path("programs/read_data.r")) hh=log(R.fn(tt+0.01)) beta=sbeta gamma=sgamma iter=0 hh[hh<0]=min(hh[hh>0]) repeat{ iter=iter+1 ht[1]=nleqslv(x=hh[1],ee_ht1.fn)$x for(k in 2:...
/application/programs/main_pgm.R
no_license
godofpdog/trcurrent_cure_trans_ee
R
false
false
944
r
source(file.path("programs/models.r")) source(file.path("programs/EE.r")) source(file.path("programs/read_data.r")) hh=log(R.fn(tt+0.01)) beta=sbeta gamma=sgamma iter=0 hh[hh<0]=min(hh[hh>0]) repeat{ iter=iter+1 ht[1]=nleqslv(x=hh[1],ee_ht1.fn)$x for(k in 2:...
context("dyEvent") test_that("event creation", { d <- dygraph(presidents, main = "Presidential Approval") %>% dyEvent(date = "1950-6-30", "Korea", labelLoc = "bottom") %>% dyEvent(date = "1965-2-09", "Vietnam", labelLoc = "bottom") expect_equal(length(d$x$events), 2) expect_identical(d$x$ev...
/tests/testthat/test-event.R
no_license
ma0511/dygraphs
R
false
false
402
r
context("dyEvent") test_that("event creation", { d <- dygraph(presidents, main = "Presidential Approval") %>% dyEvent(date = "1950-6-30", "Korea", labelLoc = "bottom") %>% dyEvent(date = "1965-2-09", "Vietnam", labelLoc = "bottom") expect_equal(length(d$x$events), 2) expect_identical(d$x$ev...
\name{createCorpus} \alias{createCorpus} %- Also NEED an '\alias' for EACH other topic documented here. \title{ create corpus } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ createCorpus(data) } %- maybe also 'usage' for other objects documented here. \arguments{ \item...
/man/createCorpus.Rd
no_license
aidanoneill/textmining
R
false
false
1,415
rd
\name{createCorpus} \alias{createCorpus} %- Also NEED an '\alias' for EACH other topic documented here. \title{ create corpus } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ createCorpus(data) } %- maybe also 'usage' for other objects documented here. \arguments{ \item...
today <-Sys.Date() rnorm require(quantmod) # Download data spy = getSymbols("SPY",from="1900-01-01",auto.assign=F) https://www.coursera.org/learn/data-scientists-tools/exam/hDNPL/week-1-quiz # Confirm the SMA situation first spy.sma = runMean(Cl(spy), 200) mm = merge(Cl(spy), spy.sma, all=F) ind = mm[,1] >= mm[,2] pri...
/HelloWorld.md.R
no_license
richardisland/datasciencecoursera
R
false
false
4,689
r
today <-Sys.Date() rnorm require(quantmod) # Download data spy = getSymbols("SPY",from="1900-01-01",auto.assign=F) https://www.coursera.org/learn/data-scientists-tools/exam/hDNPL/week-1-quiz # Confirm the SMA situation first spy.sma = runMean(Cl(spy), 200) mm = merge(Cl(spy), spy.sma, all=F) ind = mm[,1] >= mm[,2] pri...
## functions needed in order to run LogicNEM #' Create a random graph #' @description Returns a model graph with randomly sampled edges. #' Every possible edge has a probability to exist in the graph. #' @param pathwayGenes vector of genes in the pathway #' @param edgeProb probability of random edge #' @export #' @exa...
/R/finalFunctions.R
no_license
MartinFXP/epiNEM
R
false
false
19,990
r
## functions needed in order to run LogicNEM #' Create a random graph #' @description Returns a model graph with randomly sampled edges. #' Every possible edge has a probability to exist in the graph. #' @param pathwayGenes vector of genes in the pathway #' @param edgeProb probability of random edge #' @export #' @exa...
library(sf) library(dplyr) library(ggplot2) pluto = st_read("/data/nyc_parking/pluto_manhattan/", stringsAsFactors = FALSE, quiet = TRUE) plot(st_geometry(st_centroid(pluto)), pch=16, cex=0.1, col=adjustcolor("black", alpha.f = 0.1)) pluto_df = pluto %>% st_centroid() %>% st_coordinates() %>% cbind(data.fra...
/ex_03_27.R
no_license
Sta323-Sp17/exercises
R
false
false
879
r
library(sf) library(dplyr) library(ggplot2) pluto = st_read("/data/nyc_parking/pluto_manhattan/", stringsAsFactors = FALSE, quiet = TRUE) plot(st_geometry(st_centroid(pluto)), pch=16, cex=0.1, col=adjustcolor("black", alpha.f = 0.1)) pluto_df = pluto %>% st_centroid() %>% st_coordinates() %>% cbind(data.fra...
###################### ##Instal the package## ###################### devtools::install_github("brittanyblouin/ANCRTAdjust") library(ANCRTAdjust) ################## ##Load test data## ################## data("ancrt") ##################### ##name_var function## ##################### # The following code will ensure tha...
/test/test.R
permissive
ellessenne/ANCRTAdjust
R
false
false
5,055
r
###################### ##Instal the package## ###################### devtools::install_github("brittanyblouin/ANCRTAdjust") library(ANCRTAdjust) ################## ##Load test data## ################## data("ancrt") ##################### ##name_var function## ##################### # The following code will ensure tha...
library(dplyr) library(caret) library(plyr) library(randomForest) dados.train <- read.delim("~/Documents/recogme/recogme-R-antonio/train.subset.psv") dados.teste <- read.delim("~/Documents/recogme/recogme-R-antonio/test.subset.psv") df <- rbind(dados.train, dados.teste) df <- df %>% filter(email != "talitabac@gmail.c...
/R-code/antonio/clustering.R
no_license
analytics-ufcg/recogme
R
false
false
2,317
r
library(dplyr) library(caret) library(plyr) library(randomForest) dados.train <- read.delim("~/Documents/recogme/recogme-R-antonio/train.subset.psv") dados.teste <- read.delim("~/Documents/recogme/recogme-R-antonio/test.subset.psv") df <- rbind(dados.train, dados.teste) df <- df %>% filter(email != "talitabac@gmail.c...
#' Load maps from map source #' #' @description This function is to load maps from #' \code{mapSourcePath} and save them to \code{mapPath}. #' For TSA and BEC, the maps are direct from bcmaps package. #' #' @param mapPath character, The path to save all the maps. #' Note that al...
/R/checkMaps.R
permissive
bcgov/FAIBCompiler
R
false
false
3,609
r
#' Load maps from map source #' #' @description This function is to load maps from #' \code{mapSourcePath} and save them to \code{mapPath}. #' For TSA and BEC, the maps are direct from bcmaps package. #' #' @param mapPath character, The path to save all the maps. #' Note that al...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ps_package.r \name{rtutor.app.skel} \alias{rtutor.app.skel} \title{Generate a skeleton for a shinyapps.io app of a problem set} \usage{ rtutor.app.skel(ps.name, app.name = ps.name, app.dir, rps.app = !is.null(rps.dir), pkg.name = NULL, rps....
/man/rtutor.app.skel.Rd
no_license
AlexRieber/RTutor
R
false
true
1,130
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ps_package.r \name{rtutor.app.skel} \alias{rtutor.app.skel} \title{Generate a skeleton for a shinyapps.io app of a problem set} \usage{ rtutor.app.skel(ps.name, app.name = ps.name, app.dir, rps.app = !is.null(rps.dir), pkg.name = NULL, rps....
library(rgdal) library(raster) # for raster files, go to # http://viewfinderpanoramas.org/Coverage%20map%20viewfinderpanoramas_org3.htm elevation <- raster("G44/N27E083.hgt") image(elevation) plot(elevation, col=rgb(1:100/100, 1:30/30, 0)) elevation0 <- raster("H44/N30E080.hgt") elevation1 <- raster("H44/N30E081.hg...
/create_custom_raster.R
no_license
andriesd/viz_risk_2019
R
false
false
3,350
r
library(rgdal) library(raster) # for raster files, go to # http://viewfinderpanoramas.org/Coverage%20map%20viewfinderpanoramas_org3.htm elevation <- raster("G44/N27E083.hgt") image(elevation) plot(elevation, col=rgb(1:100/100, 1:30/30, 0)) elevation0 <- raster("H44/N30E080.hgt") elevation1 <- raster("H44/N30E081.hg...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pt.cmexrtn.R \name{pt.cmexrtn} \alias{pt.cmexrtn} \title{Cumulative excess return} \usage{ pt.cmexrtn(ar,br) } \arguments{ \item{ar}{:a vector of risky asset returns} \item{br}{:a vector of benchmark returns} } \description{ Cumulative retur...
/man/pt.cmexrtn.Rd
no_license
cran/YRmisc
R
false
true
578
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pt.cmexrtn.R \name{pt.cmexrtn} \alias{pt.cmexrtn} \title{Cumulative excess return} \usage{ pt.cmexrtn(ar,br) } \arguments{ \item{ar}{:a vector of risky asset returns} \item{br}{:a vector of benchmark returns} } \description{ Cumulative retur...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/aiplatform_objects.R \name{GoogleCloudAiplatformV1SchemaTrainingjobDefinitionTftForecastingInputsGranularity} \alias{GoogleCloudAiplatformV1SchemaTrainingjobDefinitionTftForecastingInputsGranularity} \title{GoogleCloudAiplatformV1SchemaTraini...
/googleaiplatformv1.auto/man/GoogleCloudAiplatformV1SchemaTrainingjobDefinitionTftForecastingInputsGranularity.Rd
no_license
justinjm/autoGoogleAPI
R
false
true
1,109
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/aiplatform_objects.R \name{GoogleCloudAiplatformV1SchemaTrainingjobDefinitionTftForecastingInputsGranularity} \alias{GoogleCloudAiplatformV1SchemaTrainingjobDefinitionTftForecastingInputsGranularity} \title{GoogleCloudAiplatformV1SchemaTraini...
library(psych) library(Lahman) require(plyr) library(dplyr) library(MASS) library(effsize) library(reshape2) library(ggplot2) library(Rmisc) digPrec<-4 ###### ### For charts for Initial Run ### Operations ### Maintenance Effort ### Utilization resultPath <- "output/" data <-read.csv("input/CatalogNumber.csv", sep=";"...
/Study-Catalog-NFRTemplates/InitialSim-OpMEUtilValue.R
no_license
NFRsAtPUT/DataAnalysis
R
false
false
19,682
r
library(psych) library(Lahman) require(plyr) library(dplyr) library(MASS) library(effsize) library(reshape2) library(ggplot2) library(Rmisc) digPrec<-4 ###### ### For charts for Initial Run ### Operations ### Maintenance Effort ### Utilization resultPath <- "output/" data <-read.csv("input/CatalogNumber.csv", sep=";"...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/feature_columns.R \name{column_categorical_weighted} \alias{column_categorical_weighted} \title{Construct a Weighted Categorical Column} \usage{ column_categorical_weighted( categorical_column, weight_feature_key, dtype = tf$float32 ) }...
/man/column_categorical_weighted.Rd
no_license
cran/tfestimators
R
false
true
1,570
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/feature_columns.R \name{column_categorical_weighted} \alias{column_categorical_weighted} \title{Construct a Weighted Categorical Column} \usage{ column_categorical_weighted( categorical_column, weight_feature_key, dtype = tf$float32 ) }...
#' @title Plot regression models #' @name plot_model #' #' @description #' \code{plot_model()} creates plots from regression models, either #' estimates (as so-called forest or dot whisker plots) or marginal effects. #' #' @param model A regression model object. Depending on the \code{type}, many #' kinds of mode...
/R/plot_model.R
no_license
onesandzeroes/sjPlot
R
false
false
38,726
r
#' @title Plot regression models #' @name plot_model #' #' @description #' \code{plot_model()} creates plots from regression models, either #' estimates (as so-called forest or dot whisker plots) or marginal effects. #' #' @param model A regression model object. Depending on the \code{type}, many #' kinds of mode...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/func_gen_c_vec.R \name{gen_c_vec} \alias{gen_c_vec} \title{Symmetric boundaries for \eqn{W(T)/(T)^{1/2}}} \usage{ gen_c_vec(t_vec, option, alphalevel = 0.05, phivalue = 1) } \arguments{ \item{t_vec}{Timing vector of interim looks and final an...
/man/gen_c_vec.Rd
permissive
fzhang8/gsdbias
R
false
true
1,417
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/func_gen_c_vec.R \name{gen_c_vec} \alias{gen_c_vec} \title{Symmetric boundaries for \eqn{W(T)/(T)^{1/2}}} \usage{ gen_c_vec(t_vec, option, alphalevel = 0.05, phivalue = 1) } \arguments{ \item{t_vec}{Timing vector of interim looks and final an...
library(knitr) library(mlbench) library(mlr) library(OpenML) library(ggplot2) library(viridis) library(gridExtra) library(ggrepel) library(repr) library(data.table) library(BBmisc) library(party) library(rpart) library(rpart.plot) library(randomForest) library(rattle) library(smoof) library(ka...
/slides/forests/rsrc/fig-cart_forest_fimp_1.R
permissive
11813147ak/lecture_i2ml
R
false
false
989
r
library(knitr) library(mlbench) library(mlr) library(OpenML) library(ggplot2) library(viridis) library(gridExtra) library(ggrepel) library(repr) library(data.table) library(BBmisc) library(party) library(rpart) library(rpart.plot) library(randomForest) library(rattle) library(smoof) library(ka...
TwoDays <- subset(fread("household_power_consumption.txt", sep=";", header=TRUE,na.strings="?"), Date=="1/2/2007"|Date=="2/2/2007") datetime<-strptime(paste(TwoDays$Date, TwoDays$Time), format="%d/%m/%Y %H:%M:%S") png(file="plot4.png",width=480,height=480) pa...
/Assignment/plot4.R
no_license
avacaustin/ExData_Plotting1
R
false
false
934
r
TwoDays <- subset(fread("household_power_consumption.txt", sep=";", header=TRUE,na.strings="?"), Date=="1/2/2007"|Date=="2/2/2007") datetime<-strptime(paste(TwoDays$Date, TwoDays$Time), format="%d/%m/%Y %H:%M:%S") png(file="plot4.png",width=480,height=480) pa...
"cmlmomco" <- function(f,para) { if(! are.par.valid(para)) return() Qlo <- par2qua(0,para,paracheck=FALSE) Mu <- vector(mode="numeric", length=length(f)) for(i in 1:length(f)) { if(f[i] == 1) { Mu[i] <- par2qua(1,para,paracheck=FALSE); next } tmp <- NULL "afunc" <- function(p) { ...
/R/cmlmomco.R
no_license
wasquith/lmomco
R
false
false
505
r
"cmlmomco" <- function(f,para) { if(! are.par.valid(para)) return() Qlo <- par2qua(0,para,paracheck=FALSE) Mu <- vector(mode="numeric", length=length(f)) for(i in 1:length(f)) { if(f[i] == 1) { Mu[i] <- par2qua(1,para,paracheck=FALSE); next } tmp <- NULL "afunc" <- function(p) { ...
# Intrinio API # # Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://i...
/R/ChaikinMoneyFlowTechnicalValue.r
no_license
federico-700/r-sdk
R
false
false
3,674
r
# Intrinio API # # Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://i...
library("readr") library("ggplot2") library("dplyr") library("data.table") import_qtl_perm_res <- function(file_path, p_fdr_thresh = 0.01){ col_types = "cciiccddddd" table <- readr::read_tsv(file_path, col_types = col_types) %>% dplyr::filter(!is.na(p_beta)) %>% dplyr::mutate(txrev_event_type = gsub(pa...
/manuscript_update/txrev_diff/txrev_qtl_diff.R
no_license
eQTL-Catalogue/eQTL-Catalogue-resources
R
false
false
5,146
r
library("readr") library("ggplot2") library("dplyr") library("data.table") import_qtl_perm_res <- function(file_path, p_fdr_thresh = 0.01){ col_types = "cciiccddddd" table <- readr::read_tsv(file_path, col_types = col_types) %>% dplyr::filter(!is.na(p_beta)) %>% dplyr::mutate(txrev_event_type = gsub(pa...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{remove_column_prefix} \alias{remove_column_prefix} \title{Removes a repeating prefix from the column names of a data frame} \usage{ remove_column_prefix(df, remove_prefix) } \arguments{ \item{df}{A data frame with column names t...
/man/remove_column_prefix.Rd
permissive
houseofcommonslibrary/clcommittees
R
false
true
512
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{remove_column_prefix} \alias{remove_column_prefix} \title{Removes a repeating prefix from the column names of a data frame} \usage{ remove_column_prefix(df, remove_prefix) } \arguments{ \item{df}{A data frame with column names t...
library(keras) GLOVE_DIR <- 'glove.6B' TEXT_DATA_DIR <- '20_newsgroup' MAX_SEQUENCE_LENGTH <- 1000 MAX_NUM_WORDS <- 20000 EMBEDDING_DIM <- 100 VALIDATION_SPLIT <- 0.2 embeddings_index <- new.env(parent = emptyenv()) lines <- readLines(file.path("Data", "glove.6B.300d.txt")) for (line in lines) { values <- strsplit...
/R/Model.R
no_license
pooya1991/CFSentiment
R
false
false
1,567
r
library(keras) GLOVE_DIR <- 'glove.6B' TEXT_DATA_DIR <- '20_newsgroup' MAX_SEQUENCE_LENGTH <- 1000 MAX_NUM_WORDS <- 20000 EMBEDDING_DIM <- 100 VALIDATION_SPLIT <- 0.2 embeddings_index <- new.env(parent = emptyenv()) lines <- readLines(file.path("Data", "glove.6B.300d.txt")) for (line in lines) { values <- strsplit...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/prepare_forestplot.R \name{prepare_labels} \alias{prepare_labels} \title{Create the labels for the forest plots} \usage{ prepare_labels(meta_obj = NULL, labels, sort, increasing) } \arguments{ \item{meta_obj}{A fitted meta-analytical model ob...
/man/prepare_labels.Rd
no_license
radchukv/adRes
R
false
true
1,999
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/prepare_forestplot.R \name{prepare_labels} \alias{prepare_labels} \title{Create the labels for the forest plots} \usage{ prepare_labels(meta_obj = NULL, labels, sort, increasing) } \arguments{ \item{meta_obj}{A fitted meta-analytical model ob...
library(cowplot) shinyServer(function (input,output){ main_dat <- callModule(domain_server, "domain", dat = tar_dat) callModule(main_select_server, "main_menu", dat = main_dat) #het_ind <- callModule(het_server, "het_select") uncer_ind <- callModule(uncer_server, "uncer_select") main_char_str <-...
/server.R
no_license
georgedisney/GiorgiLT
R
false
false
2,161
r
library(cowplot) shinyServer(function (input,output){ main_dat <- callModule(domain_server, "domain", dat = tar_dat) callModule(main_select_server, "main_menu", dat = main_dat) #het_ind <- callModule(het_server, "het_select") uncer_ind <- callModule(uncer_server, "uncer_select") main_char_str <-...
Buff_Tail<-c(10,1,3,5,12) Garden_bee<-c(8,3,9,6,4) Red_tail<-c(18,9,12,4,5) Carder_bee<-c(8,27,6,32,23) Honey_bee<-c(12,13,16,9,10) bee_matrix<-matrix(c(10,1,3,5,12,8,3,9,6,4,18,9,12,4,5,8,27,6,32,23,12,13,16,9,10),nrow=5,ncol = 5) bee_matrix plants<-list("Thistle","Vipers","Golden Rain","Yellowalfala","blackber...
/3a.r
no_license
bhuvanaLS/DSR
R
false
false
355
r
Buff_Tail<-c(10,1,3,5,12) Garden_bee<-c(8,3,9,6,4) Red_tail<-c(18,9,12,4,5) Carder_bee<-c(8,27,6,32,23) Honey_bee<-c(12,13,16,9,10) bee_matrix<-matrix(c(10,1,3,5,12,8,3,9,6,4,18,9,12,4,5,8,27,6,32,23,12,13,16,9,10),nrow=5,ncol = 5) bee_matrix plants<-list("Thistle","Vipers","Golden Rain","Yellowalfala","blackber...
#' Plot scatterplots of genetic distance vs landscape distance #' #' @description The function enables to plot scatterplots to visualize the #' relationship between genetic distance (or differentiation) and landscape #' distance (Euclidean distance, cost-distance, etc.)between populations or #' sample sites. #' ...
/R/scatter_dist.R
no_license
jamilleveiga/graph4lg
R
false
false
5,896
r
#' Plot scatterplots of genetic distance vs landscape distance #' #' @description The function enables to plot scatterplots to visualize the #' relationship between genetic distance (or differentiation) and landscape #' distance (Euclidean distance, cost-distance, etc.)between populations or #' sample sites. #' ...
\name{myplot} \alias{myplot} \alias{transcript.plot} \title{Plot 1-D scan of LOD and/or means} \description{ Profiles of one or more phenotypes. If only one phenotype, in addition profile the means by genotype. } \usage{ transcript.plot(cross.name, ...) myplot(traitnames, chr = c(1:19, "X"), add = TRUE, title, col = c...
/man/myplot.Rd
no_license
kbroman/qtlview
R
false
false
3,043
rd
\name{myplot} \alias{myplot} \alias{transcript.plot} \title{Plot 1-D scan of LOD and/or means} \description{ Profiles of one or more phenotypes. If only one phenotype, in addition profile the means by genotype. } \usage{ transcript.plot(cross.name, ...) myplot(traitnames, chr = c(1:19, "X"), add = TRUE, title, col = c...
library(ape) testtree <- read.tree("8651_3.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="8651_3_unrooted.txt")
/codeml_files/newick_trees_processed/8651_3/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("8651_3.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="8651_3_unrooted.txt")
# Install and load packages package_names <- c("survey","dplyr","foreign","devtools") lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x)) lapply(package_names, require, character.only=T) install_github("e-mitchell/meps_r_pkg/MEPS") library(MEPS) options(survey.lonely.ps...
/mepstrends/hc_pmed/json/code/r/totPOP__TC1name__ind__.r
permissive
HHS-AHRQ/MEPS-summary-tables
R
false
false
1,353
r
# Install and load packages package_names <- c("survey","dplyr","foreign","devtools") lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x)) lapply(package_names, require, character.only=T) install_github("e-mitchell/meps_r_pkg/MEPS") library(MEPS) options(survey.lonely.ps...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotMCMC_Diagnostics.R \name{plotMCMC_Diagnostics} \alias{plotMCMC_Diagnostics} \title{Make diagnostic plots for a parameter in an \href{https://mc-stan.org/}{rstan} mcmc simulation} \usage{ plotMCMC_Diagnostics(mcmc, var, label = var) } \arg...
/man/plotMCMC_Diagnostics.Rd
permissive
wStockhausen/wtsPlots
R
false
true
1,578
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotMCMC_Diagnostics.R \name{plotMCMC_Diagnostics} \alias{plotMCMC_Diagnostics} \title{Make diagnostic plots for a parameter in an \href{https://mc-stan.org/}{rstan} mcmc simulation} \usage{ plotMCMC_Diagnostics(mcmc, var, label = var) } \arg...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Table1_functions.R \name{dist_check} \alias{dist_check} \title{A function to describe the distribution of a variable Tabulates and displays mean, geometric mean, median, proportion missing, histogram and histogram of the log outcome} \usage...
/man/dist_check.Rd
no_license
palmercl/Table1
R
false
true
674
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Table1_functions.R \name{dist_check} \alias{dist_check} \title{A function to describe the distribution of a variable Tabulates and displays mean, geometric mean, median, proportion missing, histogram and histogram of the log outcome} \usage...
AforeData <- read.csv("AforeData.csv") AgeBrackets <- c(36, 45, 59, 65) Savings <- function(age,afore) { if (age<AgeBrackets[1]) { (1+AforeData[afore,2])^(AgeBrackets[1]-age)+(1+AforeData[afore,3])^(AgeBrackets[2]-AgeBrackets[1]) +(1+AforeData[afore,4])^(AgeBrackets[3]-AgeBrackets[2])+(1+Afore...
/server.R
no_license
torteya/devdataprod-010
R
false
false
1,095
r
AforeData <- read.csv("AforeData.csv") AgeBrackets <- c(36, 45, 59, 65) Savings <- function(age,afore) { if (age<AgeBrackets[1]) { (1+AforeData[afore,2])^(AgeBrackets[1]-age)+(1+AforeData[afore,3])^(AgeBrackets[2]-AgeBrackets[1]) +(1+AforeData[afore,4])^(AgeBrackets[3]-AgeBrackets[2])+(1+Afore...
\name{mixtruncGaussEM} \alias{mixtruncGaussEM} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Model based clustering for mass cytometry data. } \description{ Parameter estimation for zero-inflated Gaussian mixture model. } \usage{ mixtruncGaussEM(Y, X, L, muini, betaini, Sigmaini, wini, tau, nu,...
/man/mixtruncGaussEM.Rd
no_license
abikoushi/LAMBDA
R
false
false
1,999
rd
\name{mixtruncGaussEM} \alias{mixtruncGaussEM} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Model based clustering for mass cytometry data. } \description{ Parameter estimation for zero-inflated Gaussian mixture model. } \usage{ mixtruncGaussEM(Y, X, L, muini, betaini, Sigmaini, wini, tau, nu,...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sciences.R \name{compareSeq} \alias{compareSeq} \title{Compare Sequences} \usage{ compareSeq(ref, seq) } \arguments{ \item{ref}{Reference} \item{seq}{Sequence to compare} } \value{ 3 column tibble of Position, Ref, and ALT } \description{ Pr...
/man/compareSeq.Rd
permissive
TheZetner/utilitarian
R
false
true
392
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sciences.R \name{compareSeq} \alias{compareSeq} \title{Compare Sequences} \usage{ compareSeq(ref, seq) } \arguments{ \item{ref}{Reference} \item{seq}{Sequence to compare} } \value{ 3 column tibble of Position, Ref, and ALT } \description{ Pr...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ec2_operations.R \name{ec2_describe_instance_types} \alias{ec2_describe_instance_types} \title{Describes the details of the instance types that are offered in a location} \usage{ ec2_describe_instance_types(DryRun, InstanceTypes, Filters, Max...
/cran/paws.compute/man/ec2_describe_instance_types.Rd
permissive
jcheng5/paws
R
false
true
9,949
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ec2_operations.R \name{ec2_describe_instance_types} \alias{ec2_describe_instance_types} \title{Describes the details of the instance types that are offered in a location} \usage{ ec2_describe_instance_types(DryRun, InstanceTypes, Filters, Max...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/measurement.error.R \name{measurement.error} \alias{measurement.error} \title{Two-stage (non-linear) measurement error} \usage{ measurement.error( model1, formula, data = parent.frame(), predictfun = function(mu, var, data, ...) mu[, ...
/man/measurement.error.Rd
no_license
cran/lava
R
false
true
1,610
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/measurement.error.R \name{measurement.error} \alias{measurement.error} \title{Two-stage (non-linear) measurement error} \usage{ measurement.error( model1, formula, data = parent.frame(), predictfun = function(mu, var, data, ...) mu[, ...
unzip('exdata-data-household_power_consumption.zip') # Load the data data <- read.table('household_power_consumption.txt', header=TRUE, sep=';', na.strings='?', colClasses = c('character', 'character', rep('numeric', 7))) data$DateTime <- ...
/plot2.R
no_license
soofaloofa-zz/ExData_Plotting1
R
false
false
733
r
unzip('exdata-data-household_power_consumption.zip') # Load the data data <- read.table('household_power_consumption.txt', header=TRUE, sep=';', na.strings='?', colClasses = c('character', 'character', rep('numeric', 7))) data$DateTime <- ...
# last inn pakke devtools::load_all() transactions <- c("- Consumption", "= DISPOSABLE INCOME", "= SAVING") # hent data df <- hent_tabell( tabell = "11020", Tid = all(), Sektor = "Households", Transaksjoner = transactions, ContentsCode = "Revenue and expenditure. Unad...
/script/analyse_sparing_og_forbruk.R
no_license
olaoritsland/ssb
R
false
false
802
r
# last inn pakke devtools::load_all() transactions <- c("- Consumption", "= DISPOSABLE INCOME", "= SAVING") # hent data df <- hent_tabell( tabell = "11020", Tid = all(), Sektor = "Households", Transaksjoner = transactions, ContentsCode = "Revenue and expenditure. Unad...
\name{CHFLS} \alias{CHFLS} \docType{data} \title{ Chinese Health and Family Life Survey } \description{ The Chinese Health and Family Life Survey sampled $60$ villages and urban neighborhoods chosen in such a way as to represent the full geographical and socioeconomic range of contemporary China. } \usage{dat...
/man/CHFLS.Rd
no_license
cran/HSAUR3
R
false
false
7,484
rd
\name{CHFLS} \alias{CHFLS} \docType{data} \title{ Chinese Health and Family Life Survey } \description{ The Chinese Health and Family Life Survey sampled $60$ villages and urban neighborhoods chosen in such a way as to represent the full geographical and socioeconomic range of contemporary China. } \usage{dat...
#NOTE: the standards file was transformed into "long" since that's how the data is provided by Heflin # (less error prone for users wanting to add in new references in the future) # From this long file, we further modify with the following steps: #----- remove homozygous values of alleles since we do not want that aff...
/data-raw/str_standards_data_prep.R
permissive
U-BDS/GbmPdxSTR
R
false
false
1,555
r
#NOTE: the standards file was transformed into "long" since that's how the data is provided by Heflin # (less error prone for users wanting to add in new references in the future) # From this long file, we further modify with the following steps: #----- remove homozygous values of alleles since we do not want that aff...
#' A class for GWA from a GBLUP object. #' @title Estimation of SNP effects and their variances #' @param gblup An object of class gblup #' @param x A matrix of standardized genotypes with animals in columns and markers in rows #' @return an object of the class GWAS: a list with two vectors #' \itemize{ #' ...
/R/GWAS.R
no_license
steibelj/gwaR
R
false
false
1,573
r
#' A class for GWA from a GBLUP object. #' @title Estimation of SNP effects and their variances #' @param gblup An object of class gblup #' @param x A matrix of standardized genotypes with animals in columns and markers in rows #' @return an object of the class GWAS: a list with two vectors #' \itemize{ #' ...
## code to prepare `defecttype` dataset goes here defecttype <- tribble( ~id, ~x1, ~x2, ~y, 1, 0.09, 5.02, 1, 2, 0.1, 5.01, 1, 3, 0.12, 4.94, 1, 4, 0.12, 5.12, 1, 5, 0.12, 5.03, 1, 6, 0.12, 4.94, 2, 7, 0.1, 5.13, 2, 8, 0.1, 4.87, 1, 9, 0.1, 5.13, 2, 10, 0.11, 4.94, 3, 11, 0.11, 4.93, 3, 12, 0...
/data-raw/defecttype.R
no_license
youngroklee-ml/dmtr
R
false
false
553
r
## code to prepare `defecttype` dataset goes here defecttype <- tribble( ~id, ~x1, ~x2, ~y, 1, 0.09, 5.02, 1, 2, 0.1, 5.01, 1, 3, 0.12, 4.94, 1, 4, 0.12, 5.12, 1, 5, 0.12, 5.03, 1, 6, 0.12, 4.94, 2, 7, 0.1, 5.13, 2, 8, 0.1, 4.87, 1, 9, 0.1, 5.13, 2, 10, 0.11, 4.94, 3, 11, 0.11, 4.93, 3, 12, 0...
library(manipulate) # Plot a distribution plotdist <- function(xseq, xdens, col, xlim, type, lty, lwd, segments=NULL, qlty, qcol, polyfill=NULL) { if (type == "plot") { plot(xseq, xdens, type="l", lwd=0, col=col, frame=FALSE, xlim=xlim, lty=lty, ylab='', xlab='') } if (!is.null(polyfill)) { polygon(po...
/t_power.R
no_license
aditya-utama-wijaya/business_analytics_using_statistical_modeling
R
false
false
2,427
r
library(manipulate) # Plot a distribution plotdist <- function(xseq, xdens, col, xlim, type, lty, lwd, segments=NULL, qlty, qcol, polyfill=NULL) { if (type == "plot") { plot(xseq, xdens, type="l", lwd=0, col=col, frame=FALSE, xlim=xlim, lty=lty, ylab='', xlab='') } if (!is.null(polyfill)) { polygon(po...
#'Test drift hypothesis #' #'Given a set of covariance matrices and means for terminals, test the hypothesis #'that obseved divergency is larger/smaller than expected by drift alone using a regression of #' the between-group varicances on the within-group eigenvalues. #' #'@param means list or array of species means be...
/evolqg/R/DriftTest.R
no_license
ingted/R-Examples
R
false
false
6,668
r
#'Test drift hypothesis #' #'Given a set of covariance matrices and means for terminals, test the hypothesis #'that obseved divergency is larger/smaller than expected by drift alone using a regression of #' the between-group varicances on the within-group eigenvalues. #' #'@param means list or array of species means be...
#plotting treemap require(treemap) require(countrycode) #read data my.data <- read.csv("./data/baseData.csv",header=T,sep=",") co.doc <- aggregate(as.numeric(Dokumente) ~ Land, data=my.data, sum) co.rep <- as.data.frame(table(unlist(my.data$Land))) data.tree <- merge(co.doc,co.rep,by.x="Land",by.y="Var1") #massage...
/treeMapBASE.R
no_license
Spencerx/baseVIZ
R
false
false
1,382
r
#plotting treemap require(treemap) require(countrycode) #read data my.data <- read.csv("./data/baseData.csv",header=T,sep=",") co.doc <- aggregate(as.numeric(Dokumente) ~ Land, data=my.data, sum) co.rep <- as.data.frame(table(unlist(my.data$Land))) data.tree <- merge(co.doc,co.rep,by.x="Land",by.y="Var1") #massage...
## Caching the Inverse of a Matric: Programming Assignment 2 ## R Programming Course, Coursera ## makeCacheMatrix creates a special "matrix" object that ## can cache its inverse makeCacheMatrix <- function(x = matrix()) { i <- NULL set <- function(y) { x <<- y i <<- NULL } get <- function() x setin...
/cachematrix.R
no_license
kthom222/ProgrammingAssignment2
R
false
false
880
r
## Caching the Inverse of a Matric: Programming Assignment 2 ## R Programming Course, Coursera ## makeCacheMatrix creates a special "matrix" object that ## can cache its inverse makeCacheMatrix <- function(x = matrix()) { i <- NULL set <- function(y) { x <<- y i <<- NULL } get <- function() x setin...
# library imports ---------------------------------------------------------- sapply( c("magrittr","dplyr","readr","reshape2","skimr","ggplot2","gghighlight","jsonlite","deSolve","XML","EpiEstim"), function(x){ if(!x %in% rownames(installed.packages())){ install.packages(x) ...
/model_TN.R
no_license
ashleyx/modelling_covid
R
false
false
4,880
r
# library imports ---------------------------------------------------------- sapply( c("magrittr","dplyr","readr","reshape2","skimr","ggplot2","gghighlight","jsonlite","deSolve","XML","EpiEstim"), function(x){ if(!x %in% rownames(installed.packages())){ install.packages(x) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AllClasses.r, R/ShrinkNet-methods.r \docType{class} \name{ShrinkNet-class} \alias{ShrinkNet-class} \alias{adjacency} \alias{adjacency,ShrinkNet-method} \alias{coef} \alias{coef,ShrinkNet-method} \alias{listEdges} \alias{listEdges,ShrinkNet-me...
/man/ShrinkNet-class.Rd
no_license
gleday/ShrinkNet
R
false
true
3,007
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AllClasses.r, R/ShrinkNet-methods.r \docType{class} \name{ShrinkNet-class} \alias{ShrinkNet-class} \alias{adjacency} \alias{adjacency,ShrinkNet-method} \alias{coef} \alias{coef,ShrinkNet-method} \alias{listEdges} \alias{listEdges,ShrinkNet-me...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(3.22057487319299e-232, 1.97274569258757e-154, 5.49464572566663e+109, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(CNull:::communities_individual_based_sampling_beta...
/CNull/inst/testfiles/communities_individual_based_sampling_beta_interleaved_matrices/AFL_communities_individual_based_sampling_beta_interleaved_matrices/communities_individual_based_sampling_beta_interleaved_matrices_valgrind_files/1615838014-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
363
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(3.22057487319299e-232, 1.97274569258757e-154, 5.49464572566663e+109, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(CNull:::communities_individual_based_sampling_beta...
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554...
/DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615837726-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
2,047
r
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554...
kikan <- "2000-01-01::" func <- function(x){ if(is.na(x)){return(NA)} if(x > 0.1){return("a")} if(x > 0){return("b")} if(x > -0.1){return("c")} if(x < -0.1){return("d")} } delta <- append(as.vector(diff(cli_xts$oecd)[kikan]),rep(NA,length(index(tmp.predict)) - length(diff(cli_xts$oecd)[kikan]))) # [kikan] #...
/index/experiment/monthmean_cli_resi_ggplot.r
no_license
onomoto/R2
R
false
false
3,272
r
kikan <- "2000-01-01::" func <- function(x){ if(is.na(x)){return(NA)} if(x > 0.1){return("a")} if(x > 0){return("b")} if(x > -0.1){return("c")} if(x < -0.1){return("d")} } delta <- append(as.vector(diff(cli_xts$oecd)[kikan]),rep(NA,length(index(tmp.predict)) - length(diff(cli_xts$oecd)[kikan]))) # [kikan] #...
# função para ler o tabela no site anbima carregar_debentures = function(dt){ # validação dos parâmetros da função stopifnot(is(dt,"Date"), length(dt) == 1) # formando o link de forma dinâmica para fazer o download da data escolhida url = format(dt, "https://www.anbima.com.br/informacoes/merc-sec-debentu...
/debentures_anbima/script_debentures_anbima.R
no_license
david-abreu/web-scraping
R
false
false
1,174
r
# função para ler o tabela no site anbima carregar_debentures = function(dt){ # validação dos parâmetros da função stopifnot(is(dt,"Date"), length(dt) == 1) # formando o link de forma dinâmica para fazer o download da data escolhida url = format(dt, "https://www.anbima.com.br/informacoes/merc-sec-debentu...
coeff <- read.csv('coefficient-plot-LDPE-A-is-6.csv') library(lattice) bitmap('coefficient-plot-LDPE-A-is-6.png', type="png256", width=10, height=5, res=300, pointsize=14) par(mar=c(4.5, 4.5, 0.5, 0.5)) # (bottom, left, top, right); defaults are par(mar=c(5, 4, 4, 2) + 0.1) barchart(as.matrix(coeff$Value), ylab=lis...
/pls/coefficient-plot-LDPE.R
no_license
kgdunn/figures
R
false
false
493
r
coeff <- read.csv('coefficient-plot-LDPE-A-is-6.csv') library(lattice) bitmap('coefficient-plot-LDPE-A-is-6.png', type="png256", width=10, height=5, res=300, pointsize=14) par(mar=c(4.5, 4.5, 0.5, 0.5)) # (bottom, left, top, right); defaults are par(mar=c(5, 4, 4, 2) + 0.1) barchart(as.matrix(coeff$Value), ylab=lis...
library(tidyverse) library(glmnet) theme_set(theme_classic()) # power loss calc_power_loss <- function(b, s, n) { xs <- seq(-50, 50, length.out = 1000) f_x <- dnorm(xs, b, s) / sum(dnorm(xs, b, s)) as.numeric(f_x %*% (abs(xs) ^ n)) } # log loss calc_log_loss <- function(b, s, c = 1) { ...
/utilities.R
permissive
adambear91/loss_functions_bias_variance
R
false
false
8,875
r
library(tidyverse) library(glmnet) theme_set(theme_classic()) # power loss calc_power_loss <- function(b, s, n) { xs <- seq(-50, 50, length.out = 1000) f_x <- dnorm(xs, b, s) / sum(dnorm(xs, b, s)) as.numeric(f_x %*% (abs(xs) ^ n)) } # log loss calc_log_loss <- function(b, s, c = 1) { ...
# install some packages (if needed) #install.packages("actel") #install.packages("gWidgets2") #install.packages("gWidgets2RGtk2") #install.packages("RGtk2") #install.packages("remotes") #remotes::install_github("YuriNiella/RSP", build_opts = c("--no-resave-data", "--no-manual"), build_vignettes = T) browseVignettes("R...
/RSP/Script_RSP.R
no_license
KevinSee/ETN_workshop_Jan2021
R
false
false
16,272
r
# install some packages (if needed) #install.packages("actel") #install.packages("gWidgets2") #install.packages("gWidgets2RGtk2") #install.packages("RGtk2") #install.packages("remotes") #remotes::install_github("YuriNiella/RSP", build_opts = c("--no-resave-data", "--no-manual"), build_vignettes = T) browseVignettes("R...
generate_cluster_phenos <- function(K_true, P) { alpha <- rep(0.5, P) mat <- DirichletReg::rdirichlet(2 * K_true, alpha) comp <- matrix(vapply(mat, function(v) ifelse(v > 1.6/P, 2L, 1L), integer(1)), nrow = 2 * K_true) comp <- choose_unique_phenos(comp, K_true - 1) comp <- rbind(rep(1L,P) , comp) retu...
/sim_utils.R
no_license
matei-ionita/simulated_data_flow
R
false
false
1,790
r
generate_cluster_phenos <- function(K_true, P) { alpha <- rep(0.5, P) mat <- DirichletReg::rdirichlet(2 * K_true, alpha) comp <- matrix(vapply(mat, function(v) ifelse(v > 1.6/P, 2L, 1L), integer(1)), nrow = 2 * K_true) comp <- choose_unique_phenos(comp, K_true - 1) comp <- rbind(rep(1L,P) , comp) retu...
# R code for Figure 3 in Graphical Comparison of High Dimensional Distributions. # To appear in International Statistical Review. # Display of F=G using the distribution of IPDs library(mvtnorm) #library(pbivnorm) library(MASS) rm(list = ls()) #clear workspace set.seed(61415926) nx=50 ny=50 ...
/Figure 3-IPD Correlations.R
no_license
rezamodarres/Visual-IPD
R
false
false
2,286
r
# R code for Figure 3 in Graphical Comparison of High Dimensional Distributions. # To appear in International Statistical Review. # Display of F=G using the distribution of IPDs library(mvtnorm) #library(pbivnorm) library(MASS) rm(list = ls()) #clear workspace set.seed(61415926) nx=50 ny=50 ...
#' Migrate a Project from Packrat to renv #' #' Migrate a project's infrastructure from Packrat to `renv`. #' #' @section Migration: #' #' When migrating Packrat projects to `renv`, the set of components migrated #' can be customized using the `packrat` argument. The set of components that #' can be migrated are as fo...
/R/migrate.R
permissive
mstackhouse/renv
R
false
false
9,382
r
#' Migrate a Project from Packrat to renv #' #' Migrate a project's infrastructure from Packrat to `renv`. #' #' @section Migration: #' #' When migrating Packrat projects to `renv`, the set of components migrated #' can be customized using the `packrat` argument. The set of components that #' can be migrated are as fo...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/funs0.R \name{temploglik} \alias{temploglik} \title{Tempered log likelihood function} \usage{ temploglik(par, y = y, G = G, temp, cnew, snew) } \arguments{ \item{par}{vector of parameters including background, mass and signal strength} \item...
/man/temploglik.Rd
no_license
sgolchi/BPD
R
false
true
729
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/funs0.R \name{temploglik} \alias{temploglik} \title{Tempered log likelihood function} \usage{ temploglik(par, y = y, G = G, temp, cnew, snew) } \arguments{ \item{par}{vector of parameters including background, mass and signal strength} \item...
\name{tarExtract} \alias{tarExtract} \title{Extract the contents of entries in a gzipped tar file} \description{ The initial version of this function provides a mechanism to extract entries in a gzipped tar file directly into R. By default, this returns the contents of each specified entry as a \code{raw} vect...
/man/tarExtract.Rd
permissive
omegahat/Rcompression
R
false
false
7,154
rd
\name{tarExtract} \alias{tarExtract} \title{Extract the contents of entries in a gzipped tar file} \description{ The initial version of this function provides a mechanism to extract entries in a gzipped tar file directly into R. By default, this returns the contents of each specified entry as a \code{raw} vect...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/waterfall.R \name{waterfall} \alias{waterfall} \title{Construct a waterfall plot} \usage{ waterfall(x, clinData = NULL, clinLegCol = 1, clinVarCol = NULL, clinVarOrder = NULL, clinLayer = NULL, mutBurden = NULL, mainRecurCutoff = 0, mainG...
/man/waterfall.Rd
permissive
JesseRop/GenVisR-1
R
false
true
6,766
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/waterfall.R \name{waterfall} \alias{waterfall} \title{Construct a waterfall plot} \usage{ waterfall(x, clinData = NULL, clinLegCol = 1, clinVarCol = NULL, clinVarOrder = NULL, clinLayer = NULL, mutBurden = NULL, mainRecurCutoff = 0, mainG...
##' Print function for univariate tables ##' ##' This function is simply calling \code{summary.univariateTable} ##' @title Printing univariate tables ##' @param x An object obtained with \code{univariateTable} ##' @param ... Passed to summary.univariateTable ##' @return The result of \code{summary.univariateTable(x)} #...
/R/print.univariateTable.R
no_license
tagteam/Publish
R
false
false
512
r
##' Print function for univariate tables ##' ##' This function is simply calling \code{summary.univariateTable} ##' @title Printing univariate tables ##' @param x An object obtained with \code{univariateTable} ##' @param ... Passed to summary.univariateTable ##' @return The result of \code{summary.univariateTable(x)} #...
library(tidyverse) setwd("~/Documents/Gottingen/ML/ML-Applications-CVS/LDA_consumer_analysis/src/") NN_100_topics_test_acc = as.data.frame(read.csv("/Users/charlvanschoor/Documents/Gottingen/ML/ML-Applications-CVS/LDA_consumer_analysis/src/runs/run_dataFor100_run_1l_128__do_03__batch_24__val_01__epochs_30__activation...
/LDA_consumer_analysis/src/6_NN_Graphs.R
no_license
charlVSchoor/ML-Applications-CVS
R
false
false
5,715
r
library(tidyverse) setwd("~/Documents/Gottingen/ML/ML-Applications-CVS/LDA_consumer_analysis/src/") NN_100_topics_test_acc = as.data.frame(read.csv("/Users/charlvanschoor/Documents/Gottingen/ML/ML-Applications-CVS/LDA_consumer_analysis/src/runs/run_dataFor100_run_1l_128__do_03__batch_24__val_01__epochs_30__activation...
# plot2.R library(readr) library(lubridate) library(dplyr) hh.power.consumption.file <- "household_power_consumption.txt" # need only date, time, and global active power, third column hh.power.con.types <- "ccn------" hh.power.con.df <- read_delim(file=hh.power.consumption.file,delim=";",na="?", ...
/plot2.R
no_license
wehopkins/ExData_Plotting1
R
false
false
906
r
# plot2.R library(readr) library(lubridate) library(dplyr) hh.power.consumption.file <- "household_power_consumption.txt" # need only date, time, and global active power, third column hh.power.con.types <- "ccn------" hh.power.con.df <- read_delim(file=hh.power.consumption.file,delim=";",na="?", ...
########################################### ##Code: 01_fred_api.R ##Project: FRED Data ##Description: Pulls data from FRED website ##Author: Susannah Derr ##Date: March 1, 2018 ############################################ ##PLEASE SAVE A COPY OF THIS FILE IN YOUR OWN DIRECTORY## rm(list=ls()) getwd() library(FredR) ...
/FRED/01_fred_api.R
no_license
susannahd/2018
R
false
false
1,377
r
########################################### ##Code: 01_fred_api.R ##Project: FRED Data ##Description: Pulls data from FRED website ##Author: Susannah Derr ##Date: March 1, 2018 ############################################ ##PLEASE SAVE A COPY OF THIS FILE IN YOUR OWN DIRECTORY## rm(list=ls()) getwd() library(FredR) ...