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
\alias{gtkCellRendererTextSetFixedHeightFromFont} \name{gtkCellRendererTextSetFixedHeightFromFont} \title{gtkCellRendererTextSetFixedHeightFromFont} \description{Sets the height of a renderer to explicitly be determined by the "font" and "y\_pad" property set on it. Further changes in these properties do not affect th...
/man/gtkCellRendererTextSetFixedHeightFromFont.Rd
no_license
cran/RGtk2.10
R
false
false
1,030
rd
\alias{gtkCellRendererTextSetFixedHeightFromFont} \name{gtkCellRendererTextSetFixedHeightFromFont} \title{gtkCellRendererTextSetFixedHeightFromFont} \description{Sets the height of a renderer to explicitly be determined by the "font" and "y\_pad" property set on it. Further changes in these properties do not affect th...
# exercise 8.3.3 rm(list=ls()) source("setup.R") graphics.off() library(nnet) # install.packages('nnet') # Load data library(R.matlab) dat <- readMat(file.path('Data', 'synth1.mat')) X <- dat$X N <- dat$N attributeNames <- as.vector(unlist(dat$attributeNames)) M <- dat$M y <- dat$y C <- dat$C classNames <- as.vector(...
/ex8_3_3.R
no_license
julvi/MachineLearning
R
false
false
1,907
r
# exercise 8.3.3 rm(list=ls()) source("setup.R") graphics.off() library(nnet) # install.packages('nnet') # Load data library(R.matlab) dat <- readMat(file.path('Data', 'synth1.mat')) X <- dat$X N <- dat$N attributeNames <- as.vector(unlist(dat$attributeNames)) M <- dat$M y <- dat$y C <- dat$C classNames <- as.vector(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data_frame.R \name{as.data.frame.TidySet} \alias{as.data.frame.TidySet} \title{Transforms a TidySet to a data.frame} \usage{ \method{as.data.frame}{TidySet}(x, ...) } \arguments{ \item{x}{The \code{TidySet} object.} \item{...}{Other argument...
/man/as.data.frame.TidySet.Rd
permissive
annakrystalli/BaseSet
R
false
true
444
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data_frame.R \name{as.data.frame.TidySet} \alias{as.data.frame.TidySet} \title{Transforms a TidySet to a data.frame} \usage{ \method{as.data.frame}{TidySet}(x, ...) } \arguments{ \item{x}{The \code{TidySet} object.} \item{...}{Other argument...
% Generated by roxygen2 (4.0.2): do not edit by hand \docType{data} \name{metadata} \alias{metadata} \title{The YAML metadata of the current R Markdown document} \format{\preformatted{ list() }} \usage{ metadata } \description{ The object \code{metadata} stores the YAML metadata of the current R Markdown document as a ...
/rmarkdown/man/metadata.Rd
no_license
radfordneal/R-package-mods
R
false
false
542
rd
% Generated by roxygen2 (4.0.2): do not edit by hand \docType{data} \name{metadata} \alias{metadata} \title{The YAML metadata of the current R Markdown document} \format{\preformatted{ list() }} \usage{ metadata } \description{ The object \code{metadata} stores the YAML metadata of the current R Markdown document as a ...
library(tidyverse) library(Hmisc) library(RColorBrewer) # This problem set will test out your ggploting skills using the Big 5 health dataset # that you wrangled in problem set 9 # load in the data ipip <- read_csv('ipip50_sample.csv') # As a reminder, this dataset includes measures of the Big 5 Inventory personal...
/PS10.R
no_license
UofTPsychProg-fall-2019/ps10-hadjisge
R
false
false
6,535
r
library(tidyverse) library(Hmisc) library(RColorBrewer) # This problem set will test out your ggploting skills using the Big 5 health dataset # that you wrangled in problem set 9 # load in the data ipip <- read_csv('ipip50_sample.csv') # As a reminder, this dataset includes measures of the Big 5 Inventory personal...
# Average speed in Marsha Sharp freeway: # H0: mu = 65 # Ha: mu > 65 mu0 = 65 sigma = 6 #sigma is known # Type I Error. We determine it: alpha = 0.05 # But imagine the true mean is different. mu.true = 68 # sample size: n = 30 se = sigma/sqrt(n) # What happened graphically: xbar = seq(62, 72, 0.1...
/Type-I-II-errors.R
no_license
Karagul/RStudio
R
false
false
1,596
r
# Average speed in Marsha Sharp freeway: # H0: mu = 65 # Ha: mu > 65 mu0 = 65 sigma = 6 #sigma is known # Type I Error. We determine it: alpha = 0.05 # But imagine the true mean is different. mu.true = 68 # sample size: n = 30 se = sigma/sqrt(n) # What happened graphically: xbar = seq(62, 72, 0.1...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/BSDA-package.R \docType{data} \name{Abbey} \alias{Abbey} \title{Daily price returns (in pence) of Abbey National shares between 7/31/91 and 10/8/91} \format{ A data frame/tibble with 50 observations on one variable \describe{ \item{price}{da...
/man/Abbey.Rd
no_license
alanarnholt/BSDA
R
false
true
940
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/BSDA-package.R \docType{data} \name{Abbey} \alias{Abbey} \title{Daily price returns (in pence) of Abbey National shares between 7/31/91 and 10/8/91} \format{ A data frame/tibble with 50 observations on one variable \describe{ \item{price}{da...
############################ #### CALIBRATION NATION #### ############################ #CONTAINS #modCalibrator() - visible function - calibrates models based on modelTags #init.calib.master() - master calibration function #init.calib.Pwgen() - initial calibration function (rainfall). Uses obs data to fit mo...
/foreSIGHT/R/calibrationNation.R
no_license
akhikolla/InformationHouse
R
false
false
20,353
r
############################ #### CALIBRATION NATION #### ############################ #CONTAINS #modCalibrator() - visible function - calibrates models based on modelTags #init.calib.master() - master calibration function #init.calib.Pwgen() - initial calibration function (rainfall). Uses obs data to fit mo...
## name: stack_model.r ## date: 08/15/2017 path1="../individual_transplant/" path2="./" for (i in 1:5){ w1=1 w2=1 w=w1+w2 x1=as.matrix(read.delim(paste0(path1,"prediction_ova_phospho_",i,".txt"),check.names=F,row.names=1)) x2=as.matrix(read.delim(paste0(path2,"prediction_oo_phospho_",i,".txt"),...
/prediction/ova/multisite/stack_model.r
no_license
GuanLab/phosphoproteome_prediction
R
false
false
606
r
## name: stack_model.r ## date: 08/15/2017 path1="../individual_transplant/" path2="./" for (i in 1:5){ w1=1 w2=1 w=w1+w2 x1=as.matrix(read.delim(paste0(path1,"prediction_ova_phospho_",i,".txt"),check.names=F,row.names=1)) x2=as.matrix(read.delim(paste0(path2,"prediction_oo_phospho_",i,".txt"),...
library(data.table) library(foreach) UpdateCell <- function(current_entry, new_entry) { if (length(new_entry) > 0 && !is.na(new_entry)) { if (length(new_entry) == 1) { # update if no previous entry if (length(current_entry) <= 0 || is.na(current_entry)) { return(paste0(new_entry, collapse = '...
/Test/TestNewCombineTable.R
permissive
omicsEye/microbial_physiology
R
false
false
10,667
r
library(data.table) library(foreach) UpdateCell <- function(current_entry, new_entry) { if (length(new_entry) > 0 && !is.na(new_entry)) { if (length(new_entry) == 1) { # update if no previous entry if (length(current_entry) <= 0 || is.na(current_entry)) { return(paste0(new_entry, collapse = '...
####********************************************************************** ####********************************************************************** #### #### ---------------------------------------------------------------- #### Written by: #### ---------------------------------------------------------------- #### ...
/R/plot.gg_partial.R
no_license
RmeanyMAN/ggRandomForests
R
false
false
4,442
r
####********************************************************************** ####********************************************************************** #### #### ---------------------------------------------------------------- #### Written by: #### ---------------------------------------------------------------- #### ...
rm(list=ls()) library(akima) compare.time = seq(1,1081) load("results/interp.data.r") time.ticks = seq(min(interp.time[compare.time]),max(interp.time[compare.time]),3600*1*24) obs.value = spc.value[["S10"]][compare.time] case.name = "regular.1" load(paste(case.name,"/statistics/tracer.ensemble.r",sep='')) simu.ens...
/2D_model_initial_setup/mismatch.forward.s10.R
no_license
mrubayet/archived_codes_for_sfa_modeling
R
false
false
4,387
r
rm(list=ls()) library(akima) compare.time = seq(1,1081) load("results/interp.data.r") time.ticks = seq(min(interp.time[compare.time]),max(interp.time[compare.time]),3600*1*24) obs.value = spc.value[["S10"]][compare.time] case.name = "regular.1" load(paste(case.name,"/statistics/tracer.ensemble.r",sep='')) simu.ens...
## Put comments here that give an overall description of what your ## functions do ## The following are written as fullfilment of the R Programming ## Week 3 Assigment (8/17/2018) makeCacheMatrix <- function(x = matrix()) { mirror <- NULL ##set variable to hold inverse of matrix set <- function(y)...
/cachematrix.R
no_license
hmosborne/ProgrammingAssignment2
R
false
false
1,316
r
## Put comments here that give an overall description of what your ## functions do ## The following are written as fullfilment of the R Programming ## Week 3 Assigment (8/17/2018) makeCacheMatrix <- function(x = matrix()) { mirror <- NULL ##set variable to hold inverse of matrix set <- function(y)...
library(overlapptest) ### Name: rotawin ### Title: Rotate Individual Polygons ### Aliases: rotawin ### Keywords: spatial ### ** Examples data(Astragalus) plot(Astragalus) plot(rotawin(Astragalus), add=TRUE, border=2)
/data/genthat_extracted_code/overlapptest/examples/rotawin.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
225
r
library(overlapptest) ### Name: rotawin ### Title: Rotate Individual Polygons ### Aliases: rotawin ### Keywords: spatial ### ** Examples data(Astragalus) plot(Astragalus) plot(rotawin(Astragalus), add=TRUE, border=2)
# provide equilibrium constants for all reactions Kw = 1.00e-14 Ksp = 1.8e-10 K = c(5000, 83, 6.0, 0.50) # provide total concentration for all mass balances # NOTE: the mass balance equation does not include a known concentration # set up master variable pCl= seq(0, 14, 0.01) # calculate concentrations of all specie...
/AgCl.R
no_license
dtharvey/equilibriumTemplates
R
false
false
2,064
r
# provide equilibrium constants for all reactions Kw = 1.00e-14 Ksp = 1.8e-10 K = c(5000, 83, 6.0, 0.50) # provide total concentration for all mass balances # NOTE: the mass balance equation does not include a known concentration # set up master variable pCl= seq(0, 14, 0.01) # calculate concentrations of all specie...
#' Graphical Displays #' #' Graph cumulative distribution function (CDF) graphs, relative change in area #' under CDF curves, heatmaps, and cluster assignment tracking plots. #' #' `graph_cdf` plots the CDF for consensus matrices from different algorithms. #' `graph_delta_area` calculates the relative change in area un...
/R/graphs.R
no_license
jerryji1993/diceR
R
false
false
7,997
r
#' Graphical Displays #' #' Graph cumulative distribution function (CDF) graphs, relative change in area #' under CDF curves, heatmaps, and cluster assignment tracking plots. #' #' `graph_cdf` plots the CDF for consensus matrices from different algorithms. #' `graph_delta_area` calculates the relative change in area un...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vpa.R \name{vpa} \alias{vpa} \title{Virtual Population Analysis} \usage{ vpa(C, M, Fterm, Fages) } \arguments{ \item{C}{catch-at-age matrix.} \item{M}{natural mortality rate, a scalar.} \item{Fterm}{terminal F, either a scalar or a vector o...
/icesIntro/man/vpa.Rd
no_license
ices-eg/tc_tcsai2017
R
false
true
854
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vpa.R \name{vpa} \alias{vpa} \title{Virtual Population Analysis} \usage{ vpa(C, M, Fterm, Fages) } \arguments{ \item{C}{catch-at-age matrix.} \item{M}{natural mortality rate, a scalar.} \item{Fterm}{terminal F, either a scalar or a vector o...
context("Testing base gsim ") # Configure this test to fit your need test_that( "gsim",{ # Test - new dataset df <- gsim(target_rows = 100) testthat::expect_equal(nrow(df),100) # based on mtcars - Expand Dataset df <- gsim(data = mtcars , target_rows = 1000) testthat::expect_equal(nrow(df)...
/tests/testthat/test-gsim.R
permissive
shambhu112/gsim
R
false
false
470
r
context("Testing base gsim ") # Configure this test to fit your need test_that( "gsim",{ # Test - new dataset df <- gsim(target_rows = 100) testthat::expect_equal(nrow(df),100) # based on mtcars - Expand Dataset df <- gsim(data = mtcars , target_rows = 1000) testthat::expect_equal(nrow(df)...
#---- Load required packages if (!require("raster")) install.packages("raster") library("raster") if (!require("rgdal")) install.packages("rgdal") library("rgdal") # if (!require("r2prov")) install.packages("r2prov");library ("r2prov") # -------------------------------------------------------- init_prov() # get data...
/example_scripts/use_case.R
no_license
GeoinformationSystems/R2ProvO
R
false
false
1,784
r
#---- Load required packages if (!require("raster")) install.packages("raster") library("raster") if (!require("rgdal")) install.packages("rgdal") library("rgdal") # if (!require("r2prov")) install.packages("r2prov");library ("r2prov") # -------------------------------------------------------- init_prov() # get data...
testlist <- list(rates = c(NaN, 3.9656346395276e-310, NaN, -3.19744231092046e-14, 1.57277335058454e-314, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), thresholds = c(1.23170580865923e+194, 2.54639250802938e-313, -2.08849643354369e+307, 2.54552169758936e-29, NaN, NaN, -7.291...
/grattan/inst/testfiles/IncomeTax/libFuzzer_IncomeTax/IncomeTax_valgrind_files/1610125758-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
1,242
r
testlist <- list(rates = c(NaN, 3.9656346395276e-310, NaN, -3.19744231092046e-14, 1.57277335058454e-314, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), thresholds = c(1.23170580865923e+194, 2.54639250802938e-313, -2.08849643354369e+307, 2.54552169758936e-29, NaN, NaN, -7.291...
library(tidyverse) library(gridExtra) cook_hat <- function(fit.model){ cook_hat_df <- tibble(cooks = cooks.distance(fit.model), hat_measure = hatvalues(fit.model), index = names(hatvalues(fit.model)) %>% as.numeric()) cut <- sum(cook_hat_df$hat_measure)*2/nrow(cook_h...
/cook_hat.R
no_license
steineinein/trabaioME613
R
false
false
677
r
library(tidyverse) library(gridExtra) cook_hat <- function(fit.model){ cook_hat_df <- tibble(cooks = cooks.distance(fit.model), hat_measure = hatvalues(fit.model), index = names(hatvalues(fit.model)) %>% as.numeric()) cut <- sum(cook_hat_df$hat_measure)*2/nrow(cook_h...
#--------------------------------------------- QUESTION ----------------------------------------- #An IVF Hospital Chain with a nationwide capacity of 1000 patients per month and 100 patients #per center have been instructed to do annual budget planning. As part of the same, they are #analyzing patient footfalls and r...
/IVF_Center_Profit_Projection.R
no_license
deb-podder/IVF_Center_Profit_Projection
R
false
false
7,193
r
#--------------------------------------------- QUESTION ----------------------------------------- #An IVF Hospital Chain with a nationwide capacity of 1000 patients per month and 100 patients #per center have been instructed to do annual budget planning. As part of the same, they are #analyzing patient footfalls and r...
#################################### # emergent dissonance analysis # MS 8/27/19 #################################### library(tidyverse) # Input Data ################################## diss.combined <- read.csv('Pipeline/tonal/cloud-diameter/chew-2-11/master-cloud-diameter-combined.csv') summary <- read.csv('summar...
/R-scripts/emergent-dissonance.R
no_license
mattsetz/Improv-Piano-Coordination
R
false
false
14,098
r
#################################### # emergent dissonance analysis # MS 8/27/19 #################################### library(tidyverse) # Input Data ################################## diss.combined <- read.csv('Pipeline/tonal/cloud-diameter/chew-2-11/master-cloud-diameter-combined.csv') summary <- read.csv('summar...
#' sc.generateDifficultDataset #' #' Cette fonction génère un jeu de donnée 'Difficult' #' @param n taille du jeu de données #' @keywords dataset generation dimensions #' @export #' @examples #' sc.generateDifficultDataset(100) sc.generateDifficultDataset <- function(n) { library(MASS) np <- ceiling(n/2) nn <...
/R/sc.generateDifficultDataset.R
no_license
shamansim/supervisedClassification
R
false
false
552
r
#' sc.generateDifficultDataset #' #' Cette fonction génère un jeu de donnée 'Difficult' #' @param n taille du jeu de données #' @keywords dataset generation dimensions #' @export #' @examples #' sc.generateDifficultDataset(100) sc.generateDifficultDataset <- function(n) { library(MASS) np <- ceiling(n/2) nn <...
# Install the package "stargazer", which provides the command "stargazer" install.packages('stargazer') library(stargazer) # Install the package "lmtest", which provides the command "coeftest" install.packages('lmtest') library(lmtest) # Install the package "car", which provides the command "hccm" install.packages('c...
/Computer lab session/Lab session 4/cls4.R
no_license
EF3450/EF3450_201819SemB
R
false
false
2,082
r
# Install the package "stargazer", which provides the command "stargazer" install.packages('stargazer') library(stargazer) # Install the package "lmtest", which provides the command "coeftest" install.packages('lmtest') library(lmtest) # Install the package "car", which provides the command "hccm" install.packages('c...
## File Name: immer_jml_update_item_Rcpp.R ## File Version: 0.41 immer_jml_update_item_Rcpp <- function( score_items, ItemScore, I, K, b, A, xsi, theta, N, dat_resp, max_incr, maxiter_update, conv_update, b_fixed, shortcut_index, weights ) { iterate <- TRUE iter <- 0 eps <- 1E-20 NX <- l...
/immer/R/immer_jml_update_item_Rcpp.R
no_license
akhikolla/InformationHouse
R
false
false
1,410
r
## File Name: immer_jml_update_item_Rcpp.R ## File Version: 0.41 immer_jml_update_item_Rcpp <- function( score_items, ItemScore, I, K, b, A, xsi, theta, N, dat_resp, max_incr, maxiter_update, conv_update, b_fixed, shortcut_index, weights ) { iterate <- TRUE iter <- 0 eps <- 1E-20 NX <- l...
#' Migrate a Project from Packrat to renv #' #' Migrate a project's infrastructure from Packrat to `renv`. #' The following actions are taken: #' #' - The Packrat lockfile is migrated to `renv.lock`; #' - Packages installed in the Packrat library are migrated to the `renv` library; #' - Relevant Packrat options (e.g. ...
/R/migrate.R
no_license
38438-38438-org/renv
R
false
false
5,419
r
#' Migrate a Project from Packrat to renv #' #' Migrate a project's infrastructure from Packrat to `renv`. #' The following actions are taken: #' #' - The Packrat lockfile is migrated to `renv.lock`; #' - Packages installed in the Packrat library are migrated to the `renv` library; #' - Relevant Packrat options (e.g. ...
# Sources source("R/libraries.R") source("R/variables.R") source("R/helpers.R") source("R/data.table.R") source("R/statistics.R") source("R/visualizations.R") source("R/blocks.R") # 1. Load the sleep files # 2. Have 3 methods for analysis # 3. Get stats on all three methods # Methods ## Method 1 # generate.bout...
/R/old/sleep.tools.R
permissive
bwhsleepamu/sleep.tools
R
false
false
8,661
r
# Sources source("R/libraries.R") source("R/variables.R") source("R/helpers.R") source("R/data.table.R") source("R/statistics.R") source("R/visualizations.R") source("R/blocks.R") # 1. Load the sleep files # 2. Have 3 methods for analysis # 3. Get stats on all three methods # Methods ## Method 1 # generate.bout...
con <- dbConnect(RSQLite::SQLite(), "D:/R/sqldb.db") sub <- ("SELECT ae.mrn, ae.symptom, ae.tpt, ae.result adv, (r.response='Y') phys FROM adverse_breakout ae JOIN ros r on ae.mrn = r.mrn and ae.tpt = r.tpt and ae.symptom = r.symptom ") totag_s <- ("SELECT sub.symptom, sum(sub.phys==sub.adv)*1.0/count...
/Scratch/SQL_Adverse.r
no_license
theis188/r-scripts
R
false
false
2,783
r
con <- dbConnect(RSQLite::SQLite(), "D:/R/sqldb.db") sub <- ("SELECT ae.mrn, ae.symptom, ae.tpt, ae.result adv, (r.response='Y') phys FROM adverse_breakout ae JOIN ros r on ae.mrn = r.mrn and ae.tpt = r.tpt and ae.symptom = r.symptom ") totag_s <- ("SELECT sub.symptom, sum(sub.phys==sub.adv)*1.0/count...
\name{createStateMatrix} \alias{createStateMatrix} \title{Create state matrix (one row per time holding bubble for each mole rat...} \usage{createStateMatrix(x) } \description{Create state matrix (one row per time holding bubble for each mole rat} \value{a multivariate zoo object} \arguments{\item{x}{list of zoo object...
/learn_RStudio/NMRpackage/man/createStateMatrix.Rd
no_license
tedddy/Learn_R
R
false
false
348
rd
\name{createStateMatrix} \alias{createStateMatrix} \title{Create state matrix (one row per time holding bubble for each mole rat...} \usage{createStateMatrix(x) } \description{Create state matrix (one row per time holding bubble for each mole rat} \value{a multivariate zoo object} \arguments{\item{x}{list of zoo object...
# Emily Miller # Stat 218 Middlebury College # Problem Set 2 library(tidyverse) setwd("C:/Users/Emily Miller/Documents/Stat_learning") train <- readr::read_csv("CSVs/train.csv") # #1: Leave one out cross validation # Find length of train t_length = nrow(train) obs = seq(t_length) #initilize empty MSE...
/PS02_Emily_Miller.R
no_license
Middlebury-Statistical-Learning/PS-02
R
false
false
2,382
r
# Emily Miller # Stat 218 Middlebury College # Problem Set 2 library(tidyverse) setwd("C:/Users/Emily Miller/Documents/Stat_learning") train <- readr::read_csv("CSVs/train.csv") # #1: Leave one out cross validation # Find length of train t_length = nrow(train) obs = seq(t_length) #initilize empty MSE...
library(readxl) dataku<- read_excel("C:/Users/HP PC/Downloads/9. NB dan SVM/nb.xlsx", sheet = "Sheet2") View(dataku) str(dataku) dataku$`penutup kulit`=as.factor(dataku$`penutup kulit`) dataku$melahirkan=as.factor(dataku$melahirkan) dataku$kelas=as.factor(dataku$kelas) colnames(dataku)=c("hewan","...
/Klasifikasi/Naive_Bayes.R
no_license
Statistikawan/R-Studio-Tutorial
R
false
false
533
r
library(readxl) dataku<- read_excel("C:/Users/HP PC/Downloads/9. NB dan SVM/nb.xlsx", sheet = "Sheet2") View(dataku) str(dataku) dataku$`penutup kulit`=as.factor(dataku$`penutup kulit`) dataku$melahirkan=as.factor(dataku$melahirkan) dataku$kelas=as.factor(dataku$kelas) colnames(dataku)=c("hewan","...
# House prices Kaggle competition # Start: 12-26-16 # PLS Variations # All factors must be numeric library(caret) train$SalePrice <- log(train$SalePrice + 200) y <- train$SalePrice X_train <- data.matrix(X_train) X_test <- data.matrix(X_test) # set up caret model training parameters # model specific training paramete...
/Models/PLS Variations/model-pls-variations-caret-v1.R
no_license
kevinkr/kaggle-house-prices
R
false
false
2,885
r
# House prices Kaggle competition # Start: 12-26-16 # PLS Variations # All factors must be numeric library(caret) train$SalePrice <- log(train$SalePrice + 200) y <- train$SalePrice X_train <- data.matrix(X_train) X_test <- data.matrix(X_test) # set up caret model training parameters # model specific training paramete...
testlist <- list(x = c(0, 0, 0, 0, 5.09911082268234e+182, 5.77636807742164e-275, NaN, -8.1542028248312e-280, -3.85185988649917e-34, -3.74931033101325e-253, -1.05168902913543e-176, NaN, -5.39965888327551e+146, 3.75225594228181e-101, -1.34765550942268e+28, 1.26707338627333e-279, 7.29111855643999e-304, -1.307361774821...
/blorr/inst/testfiles/blr_pairs_cpp/libFuzzer_blr_pairs_cpp/blr_pairs_cpp_valgrind_files/1609956212-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
1,284
r
testlist <- list(x = c(0, 0, 0, 0, 5.09911082268234e+182, 5.77636807742164e-275, NaN, -8.1542028248312e-280, -3.85185988649917e-34, -3.74931033101325e-253, -1.05168902913543e-176, NaN, -5.39965888327551e+146, 3.75225594228181e-101, -1.34765550942268e+28, 1.26707338627333e-279, 7.29111855643999e-304, -1.307361774821...
#GLOBAL.R #Allocate memory options(java.parameters = "-Xmx10g") ## clear console cat("\014") ## clear global variables rm(list=ls()) ## list of packages required list.of.packages = c("git2r","digest","devtools", "RCurl","RJSONIO","stringr","syuzhet","httr", "rjs...
/TWITTER.R
no_license
vibzsg/twitter-sentimental
R
false
false
22,763
r
#GLOBAL.R #Allocate memory options(java.parameters = "-Xmx10g") ## clear console cat("\014") ## clear global variables rm(list=ls()) ## list of packages required list.of.packages = c("git2r","digest","devtools", "RCurl","RJSONIO","stringr","syuzhet","httr", "rjs...
\name{FTR.makePositionsForVaR} \alias{FTR.makePositionsForVaR} \title{Convert the paths positions to commod curves for VaR calculation.} \description{ } \usage{ FTR.makePositionsForVaR( filepath, ISO.env ) } \arguments{ \item{filepath}{Full path to the file with bids ready to submit to the ISO.} \item{ISO.env}{Yo...
/R Extension/RMG/Utilities/Interfaces/FTR/man/FTR.makePositionsForVaR.Rd
no_license
uhasan1/QLExtension-backup
R
false
false
1,060
rd
\name{FTR.makePositionsForVaR} \alias{FTR.makePositionsForVaR} \title{Convert the paths positions to commod curves for VaR calculation.} \description{ } \usage{ FTR.makePositionsForVaR( filepath, ISO.env ) } \arguments{ \item{filepath}{Full path to the file with bids ready to submit to the ISO.} \item{ISO.env}{Yo...
#Neural networks have been shown to have the ability not only to learn the load series but also #to model an unspecified nonlinear relationship between load and weather variables ''' previous demand observations are used as predictors; • temperature effects are modelled using regression splines; • errors are serially...
/NN.R
no_license
caz2018/FinalProject
R
false
false
1,227
r
#Neural networks have been shown to have the ability not only to learn the load series but also #to model an unspecified nonlinear relationship between load and weather variables ''' previous demand observations are used as predictors; • temperature effects are modelled using regression splines; • errors are serially...
#' @title Doc_Bot #' @description This function sends any document from your computer to your phone. #' This function assumes you have added a bot from Telegram on your phone, noted the Token and added it to the Add_Bot(Token) file. #' You should have received a confirmation sms after doing this successfully. See ?Add_...
/R/Doc_Bot.R
no_license
anhnguyendepocen/Rbot
R
false
false
3,697
r
#' @title Doc_Bot #' @description This function sends any document from your computer to your phone. #' This function assumes you have added a bot from Telegram on your phone, noted the Token and added it to the Add_Bot(Token) file. #' You should have received a confirmation sms after doing this successfully. See ?Add_...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/set.R \name{drill_settings_reset} \alias{drill_settings_reset} \title{Changes (optionally, all) session settings back to system defaults} \usage{ drill_settings_reset(drill_con, ...) } \arguments{ \item{drill_con}{drill server connection obje...
/man/drill_settings_reset.Rd
permissive
trinker/sergeant
R
false
true
1,262
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/set.R \name{drill_settings_reset} \alias{drill_settings_reset} \title{Changes (optionally, all) session settings back to system defaults} \usage{ drill_settings_reset(drill_con, ...) } \arguments{ \item{drill_con}{drill server connection obje...
shinyServer(function(input, output, session) { ## Activate helpers observe_helpers() ## Update datasets updateSelectInput(session, inputId = "dataset", choices = list(`Custom` = list('Upload your own CSV'), `Gapminder` = list('gapmin...
/dataviz/server.R
permissive
FractalySyn/dataviz
R
false
false
15,589
r
shinyServer(function(input, output, session) { ## Activate helpers observe_helpers() ## Update datasets updateSelectInput(session, inputId = "dataset", choices = list(`Custom` = list('Upload your own CSV'), `Gapminder` = list('gapmin...
testlist <- list(Rext = numeric(0), Rs = numeric(0), Z = numeric(0), alpha = numeric(0), atmp = c(1.1988711311556e-153, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
/meteor/inst/testfiles/E_Penman/AFL_E_Penman/E_Penman_valgrind_files/1615918650-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
1,233
r
testlist <- list(Rext = numeric(0), Rs = numeric(0), Z = numeric(0), alpha = numeric(0), atmp = c(1.1988711311556e-153, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
library(dataone) # Login cm <- CertificateManager() downloadCert(cm) getCertExpires(cm) # Select a repository to use for writing the data; these may change, especially for # testing environments, and can be checked by insepcting the node list for each environment #mn_nodeid <- "urn:node:KNB" # MN for PRO...
/dataone-r/dataone-write-pkg.R
no_license
arturochian/opensci_r_esa_2013
R
false
false
2,290
r
library(dataone) # Login cm <- CertificateManager() downloadCert(cm) getCertExpires(cm) # Select a repository to use for writing the data; these may change, especially for # testing environments, and can be checked by insepcting the node list for each environment #mn_nodeid <- "urn:node:KNB" # MN for PRO...
suppressMessages({ library(shiny) library(DT) }) source("helpers.R") #master plot, table data, and group color info masterInfo <- getFacetPlotsAndData() shinyServer(function(input, output){ thePlot <- reactive({masterInfo[[input$plotType]]}) # set detailPlot$data = NULL if the plot changes # only wan...
/TV-Visualization-Shiny/server.R
no_license
eparikh/TV-Show-Scraper
R
false
false
3,425
r
suppressMessages({ library(shiny) library(DT) }) source("helpers.R") #master plot, table data, and group color info masterInfo <- getFacetPlotsAndData() shinyServer(function(input, output){ thePlot <- reactive({masterInfo[[input$plotType]]}) # set detailPlot$data = NULL if the plot changes # only wan...
data.01.01 <- read.csv("data/1jan.csv") data.2012.01.01 <- filter(data.01.01, Year == 2012) data.2013.01.01 <- filter(data.01.01, Year == 2013) data.2014.01.01 <- filter(data.01.01, Year == 2014) data.2015.01.01 <- filter(data.01.01, Year == 2015) data.2015.10.20 <- read.csv("data/2015-10-20.csv")
/fpcc2/a1m3/data_load.R
no_license
danielfireman/phd
R
false
false
301
r
data.01.01 <- read.csv("data/1jan.csv") data.2012.01.01 <- filter(data.01.01, Year == 2012) data.2013.01.01 <- filter(data.01.01, Year == 2013) data.2014.01.01 <- filter(data.01.01, Year == 2014) data.2015.01.01 <- filter(data.01.01, Year == 2015) data.2015.10.20 <- read.csv("data/2015-10-20.csv")
day18 <- function(path = "inst/input/day18/input.txt") { l <- readLines(path) map <- do.call(rbind, unlist(lapply(l, strsplit, ""), recursive = FALSE)) o <- which(map == "@") xo <- col(map)[o] yo <- row(map)[o] getAdjacentNodes <- function(map, x, y) { edge <- fdeque() edge$push(c(x, y, 0)) ...
/R/day18.R
no_license
HomoCodens/adventofcode_2019_r
R
false
false
22,628
r
day18 <- function(path = "inst/input/day18/input.txt") { l <- readLines(path) map <- do.call(rbind, unlist(lapply(l, strsplit, ""), recursive = FALSE)) o <- which(map == "@") xo <- col(map)[o] yo <- row(map)[o] getAdjacentNodes <- function(map, x, y) { edge <- fdeque() edge$push(c(x, y, 0)) ...
###################################################################################################################### # Function: CreateTableStructure. # Argument: Results returned by the CSE function and presentation model. # Description: This function is used to create the tables for each section/subsection ...
/Mediana/R/CreateTableStructure.R
no_license
ingted/R-Examples
R
false
false
11,778
r
###################################################################################################################### # Function: CreateTableStructure. # Argument: Results returned by the CSE function and presentation model. # Description: This function is used to create the tables for each section/subsection ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/annotatr_data_doc.R \name{hg38_knownGenes_introns5UTRs} \alias{hg38_knownGenes_introns5UTRs} \title{hg38_knownGenes_introns5UTRs} \format{A GenomicRanges object.} \usage{ data(hg38_knownGenes_introns5UTRs) } \description{ A GenomicRanges obje...
/man/hg38_knownGenes_introns5UTRs.Rd
no_license
Al3n70rn/annotatr
R
false
true
1,292
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/annotatr_data_doc.R \name{hg38_knownGenes_introns5UTRs} \alias{hg38_knownGenes_introns5UTRs} \title{hg38_knownGenes_introns5UTRs} \format{A GenomicRanges object.} \usage{ data(hg38_knownGenes_introns5UTRs) } \description{ A GenomicRanges obje...
`#' This function clean the files generated from a previous call to buildGitbook(). #' #' #' @param source.dir location containing the source files. #' @param out.dir location of the built book. #' @export cleanGitbook <- function(source.dir=getwd(), out.dir=file.path(getwd(), '_book')) { source.dir <- normalizePath(...
/R/cleanGitbook.R
no_license
altaf-ali/Rgitbook
R
false
false
1,901
r
`#' This function clean the files generated from a previous call to buildGitbook(). #' #' #' @param source.dir location containing the source files. #' @param out.dir location of the built book. #' @export cleanGitbook <- function(source.dir=getwd(), out.dir=file.path(getwd(), '_book')) { source.dir <- normalizePath(...
country_holidays <- function(country = "US", from = as.Date("2000-01-01"), to = as.Date(Sys.Date()), observed = TRUE, output = c("xts","data.table")) { `.` <- holiday <- NULL fpath <- system.file("extdata", "holidays.rds", package = "tsdatasets") .country <- toupper(country[1]) x <- readRDS(fpath) i...
/R/holidays.R
no_license
tsmodels/tsdatasets
R
false
false
1,388
r
country_holidays <- function(country = "US", from = as.Date("2000-01-01"), to = as.Date(Sys.Date()), observed = TRUE, output = c("xts","data.table")) { `.` <- holiday <- NULL fpath <- system.file("extdata", "holidays.rds", package = "tsdatasets") .country <- toupper(country[1]) x <- readRDS(fpath) i...
mcpHill <- function(dataf, fact, align=FALSE, block, boots=5000, udmat=FALSE, usermat, mattype="Dunnett", dunbase=1, qval=seq(-1,3), opt="two.sided") { # require(boot, quietly=TRUE) # require(multcomp, quietly=TRUE) if (!is.data.frame(dataf)) {stop("dataf must be an object of class 'data.frame'.")} if (...
/simboot/R/mcpHill.R
no_license
ingted/R-Examples
R
false
false
4,081
r
mcpHill <- function(dataf, fact, align=FALSE, block, boots=5000, udmat=FALSE, usermat, mattype="Dunnett", dunbase=1, qval=seq(-1,3), opt="two.sided") { # require(boot, quietly=TRUE) # require(multcomp, quietly=TRUE) if (!is.data.frame(dataf)) {stop("dataf must be an object of class 'data.frame'.")} if (...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/StanfordCSgradsPhD.R \name{StanfordCSgradsPhD} \alias{StanfordCSgradsPhD} \title{Returns a database of Stanford CS PhDs with details on career history} \usage{ StanfordCSgradsPhD() } \description{ Returns a database of Stanford CS PhD...
/man/StanfordCSgradsPhD.Rd
no_license
johnjosephhorton/techbios
R
false
false
356
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/StanfordCSgradsPhD.R \name{StanfordCSgradsPhD} \alias{StanfordCSgradsPhD} \title{Returns a database of Stanford CS PhDs with details on career history} \usage{ StanfordCSgradsPhD() } \description{ Returns a database of Stanford CS PhD...
F_to_K <- function(tempF) { #converts Fahrenheit to Kelvin tempK <- (((tempF - 32) * (5/9)) + 273.15) tempK }
/TemperatureConverter/R/Fahrenheit to Kelvin.R
no_license
zjones91/introtoRtake2
R
false
false
119
r
F_to_K <- function(tempF) { #converts Fahrenheit to Kelvin tempK <- (((tempF - 32) * (5/9)) + 273.15) tempK }
library(kappalab) ### Name: Mobius.game-class ### Title: Class "Mobius.game" ### Aliases: Mobius.game-class ### Keywords: classes ### ** Examples ## a game (which is a capacity) mu <- game(c(0,rep(1,15))) ## and its Mobius representation a <- Mobius(mu) # the attributes of object a a@n a@k a@data a@subsets ## a t...
/data/genthat_extracted_code/kappalab/examples/Mobius.game-class.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
521
r
library(kappalab) ### Name: Mobius.game-class ### Title: Class "Mobius.game" ### Aliases: Mobius.game-class ### Keywords: classes ### ** Examples ## a game (which is a capacity) mu <- game(c(0,rep(1,15))) ## and its Mobius representation a <- Mobius(mu) # the attributes of object a a@n a@k a@data a@subsets ## a t...
#' @title Distribution of Email Hours (Fizzy Drink plot) #' #' @description #' Analyze weekly email hours distribution, and returns #' a 'fizzy' scatter plot by default. #' Additional options available to return a table with distribution elements. #' #' @inheritParams create_fizz #' @inherit create_fizz return #' #' @f...
/R/email_fizz.R
permissive
standardgalactic/wpa
R
false
false
885
r
#' @title Distribution of Email Hours (Fizzy Drink plot) #' #' @description #' Analyze weekly email hours distribution, and returns #' a 'fizzy' scatter plot by default. #' Additional options available to return a table with distribution elements. #' #' @inheritParams create_fizz #' @inherit create_fizz return #' #' @f...
#' @keywords internal #' #' @importFrom magrittr %>% #' @importFrom magrittr subtract #' @importFrom knitr kable align_kable <- function(x, significant_figures) { format_args <- list(nsmall = significant_figures, scientific = FALSE) align_arg <- ncol(x) %>% subtract(1) %>% rep("r", .) %...
/R/align_kable.R
permissive
khemlalnirmalkar/HMP16SData
R
false
false
487
r
#' @keywords internal #' #' @importFrom magrittr %>% #' @importFrom magrittr subtract #' @importFrom knitr kable align_kable <- function(x, significant_figures) { format_args <- list(nsmall = significant_figures, scientific = FALSE) align_arg <- ncol(x) %>% subtract(1) %>% rep("r", .) %...
############################################################################### #NO LEVY ITS REGRESSION #DAVID PELL #15/01/19 ############################################################################### #OPEN DATA ############################################################################### if(!exists("WeeklyVolu...
/PostAnnouncement/Volume/NoLevy.R
no_license
MRC-Epid/SDILEvaluation
R
false
false
5,292
r
############################################################################### #NO LEVY ITS REGRESSION #DAVID PELL #15/01/19 ############################################################################### #OPEN DATA ############################################################################### if(!exists("WeeklyVolu...
rankhospital <- function(state, outcome, num = "best") { ##Read outcome data data <- read.csv("outcome-of-care-measures.csv", colClasses = "character") ##Check that state and outcome are valid if (!state %in% unique(data[, 7])) { stop("invalid state") } ...
/rankhospital.R
no_license
mtmitchell13/datasciencecoursera
R
false
false
1,404
r
rankhospital <- function(state, outcome, num = "best") { ##Read outcome data data <- read.csv("outcome-of-care-measures.csv", colClasses = "character") ##Check that state and outcome are valid if (!state %in% unique(data[, 7])) { stop("invalid state") } ...
png(file="plot1.png") # creating png file # Reading in the data data <- read.table("household_power_consumption.txt", sep=";", skip=grep("1/2/2007", readLines("household_power_consumption.txt")), nrows=2879, stringsAsFactors = FALSE) # read in data addrow <- c("1/2/2007", "00:00:00", 0.326, 0.128, 243.150, 1.4...
/plot1.R
no_license
darimchik/ExData_Plotting1
R
false
false
878
r
png(file="plot1.png") # creating png file # Reading in the data data <- read.table("household_power_consumption.txt", sep=";", skip=grep("1/2/2007", readLines("household_power_consumption.txt")), nrows=2879, stringsAsFactors = FALSE) # read in data addrow <- c("1/2/2007", "00:00:00", 0.326, 0.128, 243.150, 1.4...
library(invgamma) library(matlib) library(MASS) library("readxl") library("readr") library(fda) library(coda) library(LearnBayes) library(truncnorm) library(mvtnorm) library(ggplot2) library(ggpubr) library(pracma) ######################################################################### ##########...
/Code/Gibbs sampler_one step Metropolis.R
no_license
PrincipeFederica/Bayesian-Principe-Mattina-Bighignoli
R
false
false
9,199
r
library(invgamma) library(matlib) library(MASS) library("readxl") library("readr") library(fda) library(coda) library(LearnBayes) library(truncnorm) library(mvtnorm) library(ggplot2) library(ggpubr) library(pracma) ######################################################################### ##########...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dns_functions.R \name{eys.list} \alias{eys.list} \title{Enumerate DnsKeys to a ResourceRecordSet collection.} \usage{ eys.list(project, managedZone, digestType = NULL, maxResults = NULL, pageToken = NULL) } \arguments{ \item{project}{Identi...
/googlednsv2beta1.auto/man/eys.list.Rd
permissive
GVersteeg/autoGoogleAPI
R
false
true
1,472
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dns_functions.R \name{eys.list} \alias{eys.list} \title{Enumerate DnsKeys to a ResourceRecordSet collection.} \usage{ eys.list(project, managedZone, digestType = NULL, maxResults = NULL, pageToken = NULL) } \arguments{ \item{project}{Identi...
##Coursera - Cleaning Data - Course Project ##Link for data: https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip ##root-data directory: C:\\Data\\R\\Repo\\cleaningdata\\Cleaningdataproject\\data ##test data directory: C:\\Data\\R\\Repo\\cleaningdata\\Cleaningdataproject\\data\\test #...
/run_analysis.R
no_license
DataAbhi/GettingDataProject
R
false
false
3,991
r
##Coursera - Cleaning Data - Course Project ##Link for data: https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip ##root-data directory: C:\\Data\\R\\Repo\\cleaningdata\\Cleaningdataproject\\data ##test data directory: C:\\Data\\R\\Repo\\cleaningdata\\Cleaningdataproject\\data\\test #...
setwd("~/Coursera/04_Exploratory Data Analysis") #read data data <- read.table("household_power_consumption.txt", header=T, sep=";", dec=".", na.strings = "?") #only data from 2007-02-01 and 2007-02-02 ss <- data[data$Date %in% c("1/2/2007", "2/2/2007"),] png(filename = "plot1.png", width = 480, height = 480) hist(s...
/plot1.R
no_license
PhiMin/ExData_Plotting1
R
false
false
437
r
setwd("~/Coursera/04_Exploratory Data Analysis") #read data data <- read.table("household_power_consumption.txt", header=T, sep=";", dec=".", na.strings = "?") #only data from 2007-02-01 and 2007-02-02 ss <- data[data$Date %in% c("1/2/2007", "2/2/2007"),] png(filename = "plot1.png", width = 480, height = 480) hist(s...
library(AeRobiology) ### Name: iplot_pollen ### Title: Interactive Plotting Pollen Data (one season). ### Aliases: iplot_pollen ### ** Examples data("munich") iplot_pollen(data = munich, year = 2012)
/data/genthat_extracted_code/AeRobiology/examples/iplot_pollen.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
207
r
library(AeRobiology) ### Name: iplot_pollen ### Title: Interactive Plotting Pollen Data (one season). ### Aliases: iplot_pollen ### ** Examples data("munich") iplot_pollen(data = munich, year = 2012)
#' @include NCRNWater_NCRNWaterObj_Class_def.R #' @include getCharInfo.R #' @include getWData.R #' @include waterseries.R #' @importFrom purrr pmap #' @importFrom dplyr filter #' #' @title exceed #' #' @description Determines if water data contains observtions that exceed a upper and/or lower assessment points. #' ...
/R/exceed.R
no_license
NTD-MIDN/NCRNWater
R
false
false
3,149
r
#' @include NCRNWater_NCRNWaterObj_Class_def.R #' @include getCharInfo.R #' @include getWData.R #' @include waterseries.R #' @importFrom purrr pmap #' @importFrom dplyr filter #' #' @title exceed #' #' @description Determines if water data contains observtions that exceed a upper and/or lower assessment points. #' ...
## Creates functons that build a cached matrix object that can ## store a matrix inverse and compute a matrix inverse and ## cache it ## Creates an object that can cache a matrix's inverse ## Code derived from makeVector function given in Assignment ## 2's directions makeCacheMatrix <- function(x = matrix()) { m <...
/cachematrix.R
no_license
jdzeil/ProgrammingAssignment2
R
false
false
1,020
r
## Creates functons that build a cached matrix object that can ## store a matrix inverse and compute a matrix inverse and ## cache it ## Creates an object that can cache a matrix's inverse ## Code derived from makeVector function given in Assignment ## 2's directions makeCacheMatrix <- function(x = matrix()) { m <...
\name{dS2_lin2} \alias{dS2_lin2} %- Also NEED an '\alias' for EACH other topic documented here. \title{ dS2 for AR(1) with intercept } \description{ This function calculates the simplified version of simplicial depth for explosive AR(1) processes, when non partially overlapping residuals with the middle residual fixed...
/man/dS2_lin2.Rd
no_license
SimoneHermann/rexpar
R
false
false
2,451
rd
\name{dS2_lin2} \alias{dS2_lin2} %- Also NEED an '\alias' for EACH other topic documented here. \title{ dS2 for AR(1) with intercept } \description{ This function calculates the simplified version of simplicial depth for explosive AR(1) processes, when non partially overlapping residuals with the middle residual fixed...
## File Name: sirt_summary_print_rsession.R ## File Version: 0.01 sirt_summary_print_rsession <- function() { res <- TAM::tam_rsessinfo() cat(res, "\n\n") }
/R/sirt_summary_print_rsession.R
no_license
rosefu79/sirt
R
false
false
167
r
## File Name: sirt_summary_print_rsession.R ## File Version: 0.01 sirt_summary_print_rsession <- function() { res <- TAM::tam_rsessinfo() cat(res, "\n\n") }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/wykresKolowyZlicz.R \name{wykresKolowyZlicz} \alias{wykresKolowyZlicz} \title{Wykres kołowy ze zliczenia wartości zmiennej} \usage{ wykresKolowyZlicz( dane, etykiety = NULL, tytul = "", rozmiarTekstu = NULL, opcjeWykresu = NULL, r...
/man/wykresKolowyZlicz.Rd
permissive
zozlak/MLAK
R
false
true
1,562
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/wykresKolowyZlicz.R \name{wykresKolowyZlicz} \alias{wykresKolowyZlicz} \title{Wykres kołowy ze zliczenia wartości zmiennej} \usage{ wykresKolowyZlicz( dane, etykiety = NULL, tytul = "", rozmiarTekstu = NULL, opcjeWykresu = NULL, r...
# source('goose_functions_1dice.R') # 1 dice version source('goose_functions.R') # 2 dice version (includes ad-hoc rules for classic game) ############################################### # game specification ############################################### abstract <- list( players = 3, size =...
/code/goose.R
no_license
jpneto/Goose
R
false
false
6,375
r
# source('goose_functions_1dice.R') # 1 dice version source('goose_functions.R') # 2 dice version (includes ad-hoc rules for classic game) ############################################### # game specification ############################################### abstract <- list( players = 3, size =...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/last.r \name{last} \alias{last} \title{Function last} \usage{ last(x, s = 0, factorsAsStrings = T) } \arguments{ \item{x}{A vector or list.} } \description{ Returns the last element of a vector. } \details{ Returns the last element of a vecto...
/man/last.Rd
no_license
AndreasFischer1985/qqBaseX
R
false
true
377
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/last.r \name{last} \alias{last} \title{Function last} \usage{ last(x, s = 0, factorsAsStrings = T) } \arguments{ \item{x}{A vector or list.} } \description{ Returns the last element of a vector. } \details{ Returns the last element of a vecto...
#' @title #' Plot location of sampling data #' #' @description #' \code{Plot_data_and_knots} produces diagnostics plots for the spatial distribution of data and knots #' #' @param Extrapolation_List Output from \code{Prepare_Extrapolation_Data_Fn} #' @param Spatial_List Output from \code{Spatial_Information_Fn} #' @pa...
/R/Plot_data_and_knots.R
no_license
pdolder/geostatistical_delta-GLMM
R
false
false
2,683
r
#' @title #' Plot location of sampling data #' #' @description #' \code{Plot_data_and_knots} produces diagnostics plots for the spatial distribution of data and knots #' #' @param Extrapolation_List Output from \code{Prepare_Extrapolation_Data_Fn} #' @param Spatial_List Output from \code{Spatial_Information_Fn} #' @pa...
library(shiny) ## setwd("c:/r/") # Define server logic required to draw a histogram shinyServer(function(input, output) { #renderPrint(input$startingPrice) output$MainPlotContainer <- renderPlot({ GetPrice <- reactive({ input$startingPrice }) GetDrift <- reactive({ input$driftRate }) GetVola...
/MCS/ShinyApplication/server.R
no_license
BusyStas/R-ShinyApps
R
false
false
2,128
r
library(shiny) ## setwd("c:/r/") # Define server logic required to draw a histogram shinyServer(function(input, output) { #renderPrint(input$startingPrice) output$MainPlotContainer <- renderPlot({ GetPrice <- reactive({ input$startingPrice }) GetDrift <- reactive({ input$driftRate }) GetVola...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/burndown.R \name{as.burndown} \alias{as.burndown} \title{Create a \code{burndown} object} \usage{ as.burndown(start, deadline, tasks, progress, progressInPercent = FALSE) } \arguments{ \item{start}{Start date} \item{deadline}{Deadline (end d...
/man/as.burndown.Rd
no_license
farcego/plan
R
false
true
2,780
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/burndown.R \name{as.burndown} \alias{as.burndown} \title{Create a \code{burndown} object} \usage{ as.burndown(start, deadline, tasks, progress, progressInPercent = FALSE) } \arguments{ \item{start}{Start date} \item{deadline}{Deadline (end d...
doDownloadAttachment <- function(entity, file, dest) { warning(sprintf("not yet implemented. file: %s entity: %s dest: %s", file, entity, dest)) }
/R/doDownloadAttachment.R
no_license
cbare/rSynapseClient
R
false
false
148
r
doDownloadAttachment <- function(entity, file, dest) { warning(sprintf("not yet implemented. file: %s entity: %s dest: %s", file, entity, dest)) }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/colourPickerGadget.R \name{colourPicker} \alias{colourPicker} \title{Colour picker gadget} \usage{ colourPicker(numCols = 1) } \arguments{ \item{numCols}{The number of colours to select when the gadget launches (you can add and remove more co...
/man/colourPicker.Rd
permissive
honestypugh/shinyjs
R
false
true
840
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/colourPickerGadget.R \name{colourPicker} \alias{colourPicker} \title{Colour picker gadget} \usage{ colourPicker(numCols = 1) } \arguments{ \item{numCols}{The number of colours to select when the gadget launches (you can add and remove more co...
# Title : Model # Objective : Contains all relevant code for the training model # Created by: Tristan Miller (tem83) # Created on: 4/3/2020 GenerateModel <- function( hiddenUnits, data.x, epochs ) { #setup the model model <- keras_model_sequential() %>% layer_flatten( input_shape = ncol( data....
/Project4/Model.R
no_license
deltarod/NAU-CS499
R
false
false
1,236
r
# Title : Model # Objective : Contains all relevant code for the training model # Created by: Tristan Miller (tem83) # Created on: 4/3/2020 GenerateModel <- function( hiddenUnits, data.x, epochs ) { #setup the model model <- keras_model_sequential() %>% layer_flatten( input_shape = ncol( data....
movie <- readline(prompt = "Enter movie name : ") movie <- baahubali url <- 'https://www.imdb.com/find?ref_=nv_sr_fn&q='+movie print(url) new_url <- 'https://www.imdb.com/find?ref_=nv_sr_fn&q=baahubali' webpage <- read_html(new_url) data %>% html_node('.result_text') # fetch href from data variable hr...
/WebCrawling_online.R
no_license
anoopdk/RProgramming
R
false
false
436
r
movie <- readline(prompt = "Enter movie name : ") movie <- baahubali url <- 'https://www.imdb.com/find?ref_=nv_sr_fn&q='+movie print(url) new_url <- 'https://www.imdb.com/find?ref_=nv_sr_fn&q=baahubali' webpage <- read_html(new_url) data %>% html_node('.result_text') # fetch href from data variable hr...
\alias{gdkDrawSegments} \name{gdkDrawSegments} \title{gdkDrawSegments} \description{Draws a number of unconnected lines.} \usage{gdkDrawSegments(object, gc, segs)} \arguments{ \item{\verb{object}}{a \code{\link{GdkDrawable}} (a \code{\link{GdkWindow}} or a \code{\link{GdkPixmap}}).} \item{\verb{gc}}{a \code{\link{GdkGC...
/RGtk2/man/gdkDrawSegments.Rd
no_license
lawremi/RGtk2
R
false
false
526
rd
\alias{gdkDrawSegments} \name{gdkDrawSegments} \title{gdkDrawSegments} \description{Draws a number of unconnected lines.} \usage{gdkDrawSegments(object, gc, segs)} \arguments{ \item{\verb{object}}{a \code{\link{GdkDrawable}} (a \code{\link{GdkWindow}} or a \code{\link{GdkPixmap}}).} \item{\verb{gc}}{a \code{\link{GdkGC...
library(rplos) ### Name: plostitle ### Title: Search PLoS Journals titles. ### Aliases: plostitle ### ** Examples ## Not run: ##D plostitle(q='drosophila', fl='title', limit=99) ##D plostitle(q='drosophila', fl=c('title','journal'), limit=10) ##D plostitle(q='drosophila', limit = 5) ## End(Not run)
/data/genthat_extracted_code/rplos/examples/plostitle.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
309
r
library(rplos) ### Name: plostitle ### Title: Search PLoS Journals titles. ### Aliases: plostitle ### ** Examples ## Not run: ##D plostitle(q='drosophila', fl='title', limit=99) ##D plostitle(q='drosophila', fl=c('title','journal'), limit=10) ##D plostitle(q='drosophila', limit = 5) ## End(Not run)
# -------- Packages and Options ------- pacman::p_load(data.table, magrittr, ncdf4, lubridate, optparse) pacman::p_load_gh('jdossgollin/JamesR') # get command line options, if help option encountered print help and exit, # otherwise if options not found on command line then set defaults, option_list <- list( make_o...
/scripts/GetNAO.R
no_license
jdossgollin/2016-moisture-flux-orb
R
false
false
1,670
r
# -------- Packages and Options ------- pacman::p_load(data.table, magrittr, ncdf4, lubridate, optparse) pacman::p_load_gh('jdossgollin/JamesR') # get command line options, if help option encountered print help and exit, # otherwise if options not found on command line then set defaults, option_list <- list( make_o...
# Bring in final 2020IR stations table and limit to just citmon and non agency sites BRRO <- read_csv('data/final2020data/RegionalResultsRiverine_BRROCitMonNonAgencyFINAL.csv') %>% bind_rows(read_csv('data/final2020data/lakeStations2020_BRRO_citmonNonAgency.csv')) %>% filter(STATION_TYPE_1 %in% c( "CMON", "NONA", ...
/1.preprocessData/preprocessingModules/addBRROIR2020citmondata.R
no_license
EmmaVJones/IR2022
R
false
false
1,173
r
# Bring in final 2020IR stations table and limit to just citmon and non agency sites BRRO <- read_csv('data/final2020data/RegionalResultsRiverine_BRROCitMonNonAgencyFINAL.csv') %>% bind_rows(read_csv('data/final2020data/lakeStations2020_BRRO_citmonNonAgency.csv')) %>% filter(STATION_TYPE_1 %in% c( "CMON", "NONA", ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get1DCutoff.R \name{get1DCutoff} \alias{get1DCutoff} \title{get1DCutoff} \usage{ get1DCutoff( sce, model = NULL, posterior_cutoff = 0.75, subsets_mito_percent = "subsets_mito_percent" ) } \arguments{ \item{sce}{(SingleCellExperiment) ...
/man/get1DCutoff.Rd
permissive
greenelab/miQC
R
false
true
1,802
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get1DCutoff.R \name{get1DCutoff} \alias{get1DCutoff} \title{get1DCutoff} \usage{ get1DCutoff( sce, model = NULL, posterior_cutoff = 0.75, subsets_mito_percent = "subsets_mito_percent" ) } \arguments{ \item{sce}{(SingleCellExperiment) ...
test_that("consistency of algorithms within platform", { skip_on_cran() skip_if(skip_consistency) ## These will work across platforms b/c they compare within ## each. Running the same chains repeatedly to make sure the ## same answer each time. ## Check consistency given same init and seeds inits...
/tests/testthat/test-consistency.R
no_license
Ovec8hkin/adnuts
R
false
false
4,804
r
test_that("consistency of algorithms within platform", { skip_on_cran() skip_if(skip_consistency) ## These will work across platforms b/c they compare within ## each. Running the same chains repeatedly to make sure the ## same answer each time. ## Check consistency given same init and seeds inits...
\name{import} \alias{import} \title{Universal import method (wrapper) for phyloseq-package} \usage{ import(pipelineName, ...) } \arguments{ \item{pipelineName}{(Required). Character string. The name of the analysis tool / pipeline / package that created the OTU-cluster data or other data that you now want to ...
/man/import.Rd
no_license
eclarke/phyloseq
R
false
false
2,290
rd
\name{import} \alias{import} \title{Universal import method (wrapper) for phyloseq-package} \usage{ import(pipelineName, ...) } \arguments{ \item{pipelineName}{(Required). Character string. The name of the analysis tool / pipeline / package that created the OTU-cluster data or other data that you now want to ...
############################################## # XGBoost ############################################## ## -------------------------------------------------------------------------------------------------------------------------------------------------- library(tidyverse) setwd(dirname(rstudioapi::getActiveDocument...
/scripts/13_xgboost.R
no_license
loremarchi/hands-on-machine-learning-R-module-2
R
false
false
4,619
r
############################################## # XGBoost ############################################## ## -------------------------------------------------------------------------------------------------------------------------------------------------- library(tidyverse) setwd(dirname(rstudioapi::getActiveDocument...
PM_students <- read.csv('/Users/yimanzhang/Desktop/intern/FSG/FSG_research/Q5.csv',stringsAsFactors = F) head(PM_students) library('lubridate') int1 <- interval(ymd("2015-09-07"), ymd("2015-11-02")) int2 <- interval(ymd("2015-11-03"), ymd("2016-01-19")) int3 <- interval(ymd("2016-01-20"), ymd("2016-03-21")) int4 <- int...
/FSGResearch/Q5/Q5 .R
no_license
ymzhang2/FSGProject
R
false
false
992
r
PM_students <- read.csv('/Users/yimanzhang/Desktop/intern/FSG/FSG_research/Q5.csv',stringsAsFactors = F) head(PM_students) library('lubridate') int1 <- interval(ymd("2015-09-07"), ymd("2015-11-02")) int2 <- interval(ymd("2015-11-03"), ymd("2016-01-19")) int3 <- interval(ymd("2016-01-20"), ymd("2016-03-21")) int4 <- int...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/STdata_processing.R \name{createDataMatrix} \alias{createDataMatrix} \title{Create a Data Matrix} \usage{ createDataMatrix(STdata = NULL, obs = STdata$obs$obs, date = STdata$obs$date, ID = STdata$obs$ID, subset = NULL) } \arguments...
/man/createDataMatrix.Rd
no_license
cran/SpatioTemporal
R
false
true
2,669
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/STdata_processing.R \name{createDataMatrix} \alias{createDataMatrix} \title{Create a Data Matrix} \usage{ createDataMatrix(STdata = NULL, obs = STdata$obs$obs, date = STdata$obs$date, ID = STdata$obs$ID, subset = NULL) } \arguments...
library(rwunderground) ### Name: set_location ### Title: Specifies location of request ### Aliases: set_location ### ** Examples set_location(zip_code = "90210") set_location(territory = "Hawaii", city = "Honolulu") set_location(territory = "Kenya", city = "Mombasa") set_location(airport_code = "SEA") set_location(...
/data/genthat_extracted_code/rwunderground/examples/set_location.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
445
r
library(rwunderground) ### Name: set_location ### Title: Specifies location of request ### Aliases: set_location ### ** Examples set_location(zip_code = "90210") set_location(territory = "Hawaii", city = "Honolulu") set_location(territory = "Kenya", city = "Mombasa") set_location(airport_code = "SEA") set_location(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/modelEstimation.R \name{setUpEstimation} \alias{setUpEstimation} \title{setUpEstimation} \usage{ setUpEstimation( eList, windowY = 7, windowQ = 2, windowS = 0.5, minNumObs = 100, minNumUncen = 50, edgeAdjust = TRUE, verbose = ...
/man/setUpEstimation.Rd
permissive
megamanrogue/EGRET
R
false
true
1,681
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/modelEstimation.R \name{setUpEstimation} \alias{setUpEstimation} \title{setUpEstimation} \usage{ setUpEstimation( eList, windowY = 7, windowQ = 2, windowS = 0.5, minNumObs = 100, minNumUncen = 50, edgeAdjust = TRUE, verbose = ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.R \name{codestarconnections} \alias{codestarconnections} \title{AWS CodeStar connections} \usage{ codestarconnections( config = list(), credentials = list(), endpoint = NULL, region = NULL ) } \arguments{ \item{config}{Optional c...
/cran/paws/man/codestarconnections.Rd
permissive
paws-r/paws
R
false
true
7,897
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.R \name{codestarconnections} \alias{codestarconnections} \title{AWS CodeStar connections} \usage{ codestarconnections( config = list(), credentials = list(), endpoint = NULL, region = NULL ) } \arguments{ \item{config}{Optional c...
context("test-update-matrices.R") library(Matrix) define_simple_qp <- function(){ P <- Matrix(c(11., 0., 0., 0.00001), 2, 2, sparse = TRUE) q <- c(3., 4.) A <- Matrix(c(-1., 0., -1., 2., 3., 0., -1., -3., 5., 4.) , 5, 2, sparse = TRUE) u <- c(0., 0...
/tests/testthat/test-update-matrices.R
permissive
bnaras/osqp-r
R
false
false
1,137
r
context("test-update-matrices.R") library(Matrix) define_simple_qp <- function(){ P <- Matrix(c(11., 0., 0., 0.00001), 2, 2, sparse = TRUE) q <- c(3., 4.) A <- Matrix(c(-1., 0., -1., 2., 3., 0., -1., -3., 5., 4.) , 5, 2, sparse = TRUE) u <- c(0., 0...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/core-premodern.R \name{d} \alias{d} \title{A wrapper to calculates euclidean distances between two points} \usage{ d(x, id1, id2) } \arguments{ \item{x}{a Ldk (typically), an Out or a matrix} \item{id1}{id of the 1st row} \item{id2}{id of t...
/man/d.Rd
no_license
stas-malavin/Momocs
R
false
true
728
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/core-premodern.R \name{d} \alias{d} \title{A wrapper to calculates euclidean distances between two points} \usage{ d(x, id1, id2) } \arguments{ \item{x}{a Ldk (typically), an Out or a matrix} \item{id1}{id of the 1st row} \item{id2}{id of t...
# # This test file has been generated by kwb.test::create_test_files() # test_that("hsQuaStr() works", { kwb.datetime:::hsQuaStr(tstamp = as.POSIXct("2018-06-03 23:50:00")) expect_error( kwb.datetime:::hsQuaStr(tstamp = 1) # invalid 'trim' argument ) })
/tests/testthat/test-function-hsQuaStr.R
permissive
KWB-R/kwb.datetime
R
false
false
273
r
# # This test file has been generated by kwb.test::create_test_files() # test_that("hsQuaStr() works", { kwb.datetime:::hsQuaStr(tstamp = as.POSIXct("2018-06-03 23:50:00")) expect_error( kwb.datetime:::hsQuaStr(tstamp = 1) # invalid 'trim' argument ) })
#' Function to read a single MassBank record #' Inspeired from MassBank parser from RMassBank #' https://github.com/sneumann/RMassBank/blob/master/R/parseMassBank.R #' #' @param pathToMBFile File path to a single MassBank Record #' #' @examples #' readMassBankFile() #' #' @author Michael Witting, \email{michael.witting...
/R/MS2_LibraryReader.R
no_license
RuiNascimento/masstrixR
R
false
false
4,788
r
#' Function to read a single MassBank record #' Inspeired from MassBank parser from RMassBank #' https://github.com/sneumann/RMassBank/blob/master/R/parseMassBank.R #' #' @param pathToMBFile File path to a single MassBank Record #' #' @examples #' readMassBankFile() #' #' @author Michael Witting, \email{michael.witting...
## Caching the Inverse of a Matrix: ## The two functions below provide the ability to cache the inverse ## of a matrix. This avoids repeated computation effort. ## Create a special "matrix" object that can cache the matrix inverse. makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- functio...
/cachematrix.R
no_license
sriram2602/ProgrammingAssignment2
R
false
false
984
r
## Caching the Inverse of a Matrix: ## The two functions below provide the ability to cache the inverse ## of a matrix. This avoids repeated computation effort. ## Create a special "matrix" object that can cache the matrix inverse. makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- functio...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/set_global_graph_attr.R \name{set_global_graph_attr} \alias{set_global_graph_attr} \title{Set global graph attributes} \usage{ set_global_graph_attr(graph, type, attr_for_type, value) } \arguments{ \item{graph}{a graph object of class \code{d...
/man/set_global_graph_attr.Rd
no_license
strategist922/DiagrammeR
R
false
true
1,456
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/set_global_graph_attr.R \name{set_global_graph_attr} \alias{set_global_graph_attr} \title{Set global graph attributes} \usage{ set_global_graph_attr(graph, type, attr_for_type, value) } \arguments{ \item{graph}{a graph object of class \code{d...
# 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_care/json/code/r/totPOP__poverty__diab_foot__.r
permissive
HHS-AHRQ/MEPS-summary-tables
R
false
false
2,105
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...
library.dynam("Rlibstree", package="Rlibstree", lib.loc=NULL)
/R/zzz.R
no_license
pombredanne/Rlibstree
R
false
false
61
r
library.dynam("Rlibstree", package="Rlibstree", lib.loc=NULL)
setwd("F:\\Data Science\\My Codes and Assignments\\Coursera\\Exploratory Data Analysis\\Data") data <- read.table("household_power_consumption.txt",stringsAsFactors = FALSE,sep = ";",header = TRUE) #Select only the two dates exploratoryData <- subset(data,Date=="2/2/2007"|data$Date=="1/2/2007") exploratoryData$Da...
/plot1.r
no_license
dipeshwalte/ExData_Plotting1
R
false
false
933
r
setwd("F:\\Data Science\\My Codes and Assignments\\Coursera\\Exploratory Data Analysis\\Data") data <- read.table("household_power_consumption.txt",stringsAsFactors = FALSE,sep = ";",header = TRUE) #Select only the two dates exploratoryData <- subset(data,Date=="2/2/2007"|data$Date=="1/2/2007") exploratoryData$Da...
#' powerPF #' #' solve standard power flow with Newton Raphson method #' #' @param method "newton" for standard Newton Raphson method #' @param tolerance set minimum accuracy for the power flow run #' @param iterLimit set maximum iteration for each run #' #' @examples #' \donttest{ #' powerPF() #' } powerPF <- fun...
/R/powerPF.R
no_license
Jingfan-Sun/powerr
R
false
false
4,172
r
#' powerPF #' #' solve standard power flow with Newton Raphson method #' #' @param method "newton" for standard Newton Raphson method #' @param tolerance set minimum accuracy for the power flow run #' @param iterLimit set maximum iteration for each run #' #' @examples #' \donttest{ #' powerPF() #' } powerPF <- fun...