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
####################################### ########## Cumby-Huizinga ############# ####################################### #Cumby-Huizinga autocorrelation test #Based on: Cumby, R. and Huizinga J., (1992) Econometrica; #ivactest Baum; Schaffer CBtest<-function(x,s,data){ require(ibdreg) model <- plm:::des...
/CBtest.R
no_license
Saint-Jimon/Cumby-Huizinga-test
R
false
false
2,883
r
####################################### ########## Cumby-Huizinga ############# ####################################### #Cumby-Huizinga autocorrelation test #Based on: Cumby, R. and Huizinga J., (1992) Econometrica; #ivactest Baum; Schaffer CBtest<-function(x,s,data){ require(ibdreg) model <- plm:::des...
## TODO refactor to a list of 0.2, 0.8 library(Matrix) library(MASS) library(purrr) library(ggplot2) library(dplyr) library(tidyr) library(pheatmap) source("code/func.r") source("code/assets.r") figdir <- file.path("results", "figs", "zonation-tests") dir.create(figdir, showWarnings = FALSE) {cat("reading...") coun...
/code/252-glm-simulations.r
no_license
anders-biostat/hepatocytes-zonation
R
false
false
8,146
r
## TODO refactor to a list of 0.2, 0.8 library(Matrix) library(MASS) library(purrr) library(ggplot2) library(dplyr) library(tidyr) library(pheatmap) source("code/func.r") source("code/assets.r") figdir <- file.path("results", "figs", "zonation-tests") dir.create(figdir, showWarnings = FALSE) {cat("reading...") coun...
require(shiny) MAX_PREDECESSORS <- 2 # parametrize to eventually add 4grams shstop <- function(m, rv = 99) { print("exiting app") print(m) if (shiny::isRunning()) stopApp(rv) stop(m) } br <- "<br/>"
/04_shiny_prediction/shiny_globals.R
no_license
enrico200165/Data_Science_JHU_10_Natural-Language-Processing_R
R
false
false
214
r
require(shiny) MAX_PREDECESSORS <- 2 # parametrize to eventually add 4grams shstop <- function(m, rv = 99) { print("exiting app") print(m) if (shiny::isRunning()) stopApp(rv) stop(m) } br <- "<br/>"
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/wm.test.R \name{wm.test} \alias{wm.test} \title{Wallis and Moore Phase-Frequency Test} \usage{ wm.test(x) } \arguments{ \item{x}{a vector or a time series object of class "ts"} } \value{ An object of class "htest" \item{method}{ a charact...
/man/wm.test.Rd
no_license
cran/trend
R
false
true
2,239
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/wm.test.R \name{wm.test} \alias{wm.test} \title{Wallis and Moore Phase-Frequency Test} \usage{ wm.test(x) } \arguments{ \item{x}{a vector or a time series object of class "ts"} } \value{ An object of class "htest" \item{method}{ a charact...
## makeCacheMatrix: This function creates a "matrix" object that can cache its inverse. cacheSolve: ## This function computes the inverse of the "matrix" returned by makeCacheMatrix above. makeCacheMatrix <- function(x = matrix()) { i <- NULL set <- function(y) { x <<- y i <<- NULL } get <- ...
/assignment3.R
no_license
hemantwani/hemant_assi2
R
false
false
1,216
r
## makeCacheMatrix: This function creates a "matrix" object that can cache its inverse. cacheSolve: ## This function computes the inverse of the "matrix" returned by makeCacheMatrix above. makeCacheMatrix <- function(x = matrix()) { i <- NULL set <- function(y) { x <<- y i <<- NULL } get <- ...
library(shiny) library(rCharts) shinyServer(function(input, output) { # Making the data set reactive with the inputs from UI. User selects, # which points to include on the map by StationID range. stationData <- reactive({ input$btn_upd isolate({ dataset <- subset(dat ...
/server.R
no_license
Paritosh-Tiwari/city_bike_app
R
false
false
6,503
r
library(shiny) library(rCharts) shinyServer(function(input, output) { # Making the data set reactive with the inputs from UI. User selects, # which points to include on the map by StationID range. stationData <- reactive({ input$btn_upd isolate({ dataset <- subset(dat ...
# # This is a Plumber API. You can run the API by clicking # the 'Run API' button above. # # Find out more about building APIs with Plumber here: # # https://www.rplumber.io/ # library(plumber) library(ggplot2) library(magrittr) DEBUG <- TRUE #* @apiTitle hourlyCost API #* Echo back the input #* @param msg The m...
/api-R/plumber.R
no_license
ax42/k8s-axDemo
R
false
false
2,088
r
# # This is a Plumber API. You can run the API by clicking # the 'Run API' button above. # # Find out more about building APIs with Plumber here: # # https://www.rplumber.io/ # library(plumber) library(ggplot2) library(magrittr) DEBUG <- TRUE #* @apiTitle hourlyCost API #* Echo back the input #* @param msg The m...
library("ggplot2") mpath <- "" setwd(mpath) ###### Add modern data ########## fname <- paste("modern.gwsig", sep="") f <- read.table(paste(fname, sep="")) giant <- data.frame() nealelab <- data.frame() for (i in c(1:nrow(f))){ giant <- rbind(giant, f[i,1:4]) nealelab <- rbind(nealelab, f[i,c("V1", "V5", "V6",...
/Fig1_Figsupplement2/fig1_figsupp2b.r
permissive
msohail88/polygenic_selection
R
false
false
3,444
r
library("ggplot2") mpath <- "" setwd(mpath) ###### Add modern data ########## fname <- paste("modern.gwsig", sep="") f <- read.table(paste(fname, sep="")) giant <- data.frame() nealelab <- data.frame() for (i in c(1:nrow(f))){ giant <- rbind(giant, f[i,1:4]) nealelab <- rbind(nealelab, f[i,c("V1", "V5", "V6",...
library(antitrust) ### Name: aids ### Title: (Nested) AIDS Calibration and Merger Simulation ### Aliases: aids pcaids pcaids.nests ### ** Examples ## Simulate a merger between two single-product firms A and B in a ## three-firm market (A, B, C). This example assumes that the merger is between ## the firms A and B ...
/data/genthat_extracted_code/antitrust/examples/aids.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
3,783
r
library(antitrust) ### Name: aids ### Title: (Nested) AIDS Calibration and Merger Simulation ### Aliases: aids pcaids pcaids.nests ### ** Examples ## Simulate a merger between two single-product firms A and B in a ## three-firm market (A, B, C). This example assumes that the merger is between ## the firms A and B ...
#' A Cat Function #' #' This function allows you to express your love of cats. #' @param love Do you love cats? Defaults to TRUE. #' @param return_cats Return a cat. Defaults to TRUE. #' @keywords cats #' @export #' @examples #' cat_function() cat_function <- function(love = TRUE, return_cats = TRUE) { if (love == T...
/R/functioncats.R
no_license
rilphumie/Cats-Package
R
false
false
459
r
#' A Cat Function #' #' This function allows you to express your love of cats. #' @param love Do you love cats? Defaults to TRUE. #' @param return_cats Return a cat. Defaults to TRUE. #' @keywords cats #' @export #' @examples #' cat_function() cat_function <- function(love = TRUE, return_cats = TRUE) { if (love == T...
#' Computes run time definition according to the time specifications #' #' This is a sub-routine of \code{\link{loadECOMS}}. Its output is passed to the loading functions #' (the \code{makeSubset\\.*} and \code{derive*} interfaces). #' #' @param dataset Target hindcast dataset (see \code{\link{loadECOMS}}) #' @param ...
/R/getRunTimeDomain.R
no_license
Predictia/ecomsUDG.Raccess
R
false
false
4,994
r
#' Computes run time definition according to the time specifications #' #' This is a sub-routine of \code{\link{loadECOMS}}. Its output is passed to the loading functions #' (the \code{makeSubset\\.*} and \code{derive*} interfaces). #' #' @param dataset Target hindcast dataset (see \code{\link{loadECOMS}}) #' @param ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/catboost.R \name{catboost.get_feature_importance} \alias{catboost.get_feature_importance} \title{Calculate the feature importances} \usage{ catboost.get_feature_importance(model, pool = NULL, fstr_type = "FeatureImportance", thread_count = ...
/catboost/R-package/man/catboost.get_feature_importance.Rd
permissive
avant1/catboost
R
false
true
1,726
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/catboost.R \name{catboost.get_feature_importance} \alias{catboost.get_feature_importance} \title{Calculate the feature importances} \usage{ catboost.get_feature_importance(model, pool = NULL, fstr_type = "FeatureImportance", thread_count = ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/scales.R \name{scale_x_ggtree} \alias{scale_x_ggtree} \title{scale_x_ggtree} \usage{ scale_x_ggtree(breaks = waiver(), labels = waiver()) } \arguments{ \item{breaks}{set breaks for tree} \item{labels}{lables for corresponding breaks} } \valu...
/man/scale_x_ggtree.Rd
no_license
xiangpin/ggtree
R
false
true
817
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/scales.R \name{scale_x_ggtree} \alias{scale_x_ggtree} \title{scale_x_ggtree} \usage{ scale_x_ggtree(breaks = waiver(), labels = waiver()) } \arguments{ \item{breaks}{set breaks for tree} \item{labels}{lables for corresponding breaks} } \valu...
# install the package to read the sav file into the R library(foreign) library(dplyr)# we need to load the package everytime before we use the #function ## The main aim of this file is help you know the data and know the question # we will use. Therefore, just play with the data here. ## household information df<...
/mics2 preprocess.R
no_license
fyGuo/Pooled-cross-sectional-data-DRC
R
false
false
2,696
r
# install the package to read the sav file into the R library(foreign) library(dplyr)# we need to load the package everytime before we use the #function ## The main aim of this file is help you know the data and know the question # we will use. Therefore, just play with the data here. ## household information df<...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/BiCopCDF.R \name{BiCopCDF} \alias{BiCopCDF} \title{Distribution Function of a Bivariate Copula} \usage{ BiCopCDF(u1, u2, family, par, par2 = 0, obj = NULL, check.pars = TRUE) } \arguments{ \item{u1, u2}{numeric vectors of equal length with ...
/man/BiCopCDF.Rd
no_license
tvatter/VineCopula
R
false
true
4,230
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/BiCopCDF.R \name{BiCopCDF} \alias{BiCopCDF} \title{Distribution Function of a Bivariate Copula} \usage{ BiCopCDF(u1, u2, family, par, par2 = 0, obj = NULL, check.pars = TRUE) } \arguments{ \item{u1, u2}{numeric vectors of equal length with ...
# Title : maximum expected gain model # Objective : Interface with stan model # Created by: adkinsty # Updated on: 3/11/21 library(tidyverse) setwd("/Users/adkinsty/Box/LeeLab/Experiments/Exp_files/reach/") train <- read_csv("data/clean/exp2/train_data.csv") %>% filter(x > -2 & x < 2 & y > -2 & y < 2) data <-...
/modeling/exp2/get_aims/aim_MEG.R
no_license
adkinsty/reach
R
false
false
994
r
# Title : maximum expected gain model # Objective : Interface with stan model # Created by: adkinsty # Updated on: 3/11/21 library(tidyverse) setwd("/Users/adkinsty/Box/LeeLab/Experiments/Exp_files/reach/") train <- read_csv("data/clean/exp2/train_data.csv") %>% filter(x > -2 & x < 2 & y > -2 & y < 2) data <-...
#Bai 01 a = rnorm(35, 10, 5) alpha = 0.05 epsilon = qnorm(1 - alpha / 2) * 5 / sqrt(35) cat(10 - epsilon) cat(10 + epsilon) #Bai 02 data = read.csv("Data/data31.csv") ci.mean = function(x, alpha) { trung_binh = mean(x) do_lech_chuan = sd(x) so_luong = length(x) dung_sai = qnorm(1 - alpha / 2) * do_lech...
/Source Codes/Tuan07.R
no_license
qcuong98/Lab-of-Probability-and-Statistics
R
false
false
1,874
r
#Bai 01 a = rnorm(35, 10, 5) alpha = 0.05 epsilon = qnorm(1 - alpha / 2) * 5 / sqrt(35) cat(10 - epsilon) cat(10 + epsilon) #Bai 02 data = read.csv("Data/data31.csv") ci.mean = function(x, alpha) { trung_binh = mean(x) do_lech_chuan = sd(x) so_luong = length(x) dung_sai = qnorm(1 - alpha / 2) * do_lech...
#' @export #' @importFrom S4Vectors mcols<- metadata #' @importFrom ShortRead FastqStreamer yield #' @importFrom BiocParallel bpmapply SerialParam bpstart bpstop bpisup extractSubseq <- function(aligned, subseq1, subseq2, number=1e5, BPPARAM=SerialParam()) # Extracts arbitrary subsequences from the first and second ad...
/R/extractSubseq.R
no_license
MarioniLab/sarlacc
R
false
false
4,241
r
#' @export #' @importFrom S4Vectors mcols<- metadata #' @importFrom ShortRead FastqStreamer yield #' @importFrom BiocParallel bpmapply SerialParam bpstart bpstop bpisup extractSubseq <- function(aligned, subseq1, subseq2, number=1e5, BPPARAM=SerialParam()) # Extracts arbitrary subsequences from the first and second ad...
trellis.par.set(theme=col.mosaic()) # back to the mosaic theme trellis.par.set(fontsize=list(text=9)) # and back to a 9 point font
/inst/snippets/themes.R
no_license
stacyderuiter/Lock5withR
R
false
false
141
r
trellis.par.set(theme=col.mosaic()) # back to the mosaic theme trellis.par.set(fontsize=list(text=9)) # and back to a 9 point font
#' CpG covergae in each chromosome #' #'Provides Coverage metrics for each sample by the chromosome #'@param bs bsseq object #'@return matrix of chromsome covergae with #'column and rows indicating the samples and the chromosome respectively #'@examples #'directory <- system.file("extdata/bismark_data",package='scmeth'...
/R/chromosomeCoverage.R
no_license
aryeelab/scmeth
R
false
false
784
r
#' CpG covergae in each chromosome #' #'Provides Coverage metrics for each sample by the chromosome #'@param bs bsseq object #'@return matrix of chromsome covergae with #'column and rows indicating the samples and the chromosome respectively #'@examples #'directory <- system.file("extdata/bismark_data",package='scmeth'...
library(cliapp) ### Name: cli_div ### Title: Generic CLI container ### Aliases: cli_div ### ** Examples ## div with custom theme d <- cli_div(theme = list(h1 = list(color = "blue", "font-weight" = "bold"))) cli_h1("Custom title") cli_end(d) ## Close automatically div <- function...
/data/genthat_extracted_code/cliapp/examples/cli_div.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
475
r
library(cliapp) ### Name: cli_div ### Title: Generic CLI container ### Aliases: cli_div ### ** Examples ## div with custom theme d <- cli_div(theme = list(h1 = list(color = "blue", "font-weight" = "bold"))) cli_h1("Custom title") cli_end(d) ## Close automatically div <- function...
## dealing with empty rows and columns library(tidyverse) library(janitor) ## (minimal) reproducible example dd <- tibble(x=c(LETTERS[1:5],NA,rep("",2)), y=c(1:5,rep(NA,3)), z=rep(NA,8)) ## BAD (suboptimal) dd[-(6:7),-3] dd[1:5,1:2] ## ## the old way dd %>% mutate_if(is.character, ...
/docs/code/Visualization_live.R
no_license
mac-theobio/QMEE
R
false
false
2,159
r
## dealing with empty rows and columns library(tidyverse) library(janitor) ## (minimal) reproducible example dd <- tibble(x=c(LETTERS[1:5],NA,rep("",2)), y=c(1:5,rep(NA,3)), z=rep(NA,8)) ## BAD (suboptimal) dd[-(6:7),-3] dd[1:5,1:2] ## ## the old way dd %>% mutate_if(is.character, ...
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/1615836110-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
2,048
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...
# # Author: JonathanRosenblatt ############################################################################### n<- 100 alpha<- 0.05 pvals<- runif(n) ^ 3 hyp.names<- paste('hyp', 1:n, sep='') #---- Bonferonni (dummy) mutoss class object --------# name<-'Bonferoni' bonf.adjusted<- pmin( pvals * n, 1) attr(bonf.adjus...
/build/DummyBigObjects.R
no_license
kornl/mutoss
R
false
false
4,449
r
# # Author: JonathanRosenblatt ############################################################################### n<- 100 alpha<- 0.05 pvals<- runif(n) ^ 3 hyp.names<- paste('hyp', 1:n, sep='') #---- Bonferonni (dummy) mutoss class object --------# name<-'Bonferoni' bonf.adjusted<- pmin( pvals * n, 1) attr(bonf.adjus...
# Text analysis using tidytext and dplyr in R using Jeopardy Data # install folowing packages and load the libraries # tidytext # dplyr # ggplot2 # Read the Jeopardy data, making sure to uncheck StringsAsFactors # This dataset contains the question description which we will mine # store the dat...
/Rscript1_msingara.R
no_license
msingara/R
R
false
false
1,332
r
# Text analysis using tidytext and dplyr in R using Jeopardy Data # install folowing packages and load the libraries # tidytext # dplyr # ggplot2 # Read the Jeopardy data, making sure to uncheck StringsAsFactors # This dataset contains the question description which we will mine # store the dat...
profvis::profvis({ for(i in 1:5000) test <- fastCI(rnorm(100), rnorm(100)) }, interval = 0.005)
/inst/extscripts/misc_profiling.R
no_license
bhklab/fastCI
R
false
false
102
r
profvis::profvis({ for(i in 1:5000) test <- fastCI(rnorm(100), rnorm(100)) }, interval = 0.005)
# Exercise 1 library(readstata13) mydata <-read.dta13("D:/professionnel/PPE_M1_EKAP_TD/Tutorial_3/baseCDiD_H.dta") library("tableone") # looking at evolution of training rates among workers aged 45-49 # in firms employing 50 workers or more stats_4549<-CreateTableOne(vars=c("formation98","formation99") ...
/Semestre 2/Eval Eco Public/nsw_R_correction_tutorial_3_02042021.R
no_license
Kyllien/M1-EKAP
R
false
false
9,799
r
# Exercise 1 library(readstata13) mydata <-read.dta13("D:/professionnel/PPE_M1_EKAP_TD/Tutorial_3/baseCDiD_H.dta") library("tableone") # looking at evolution of training rates among workers aged 45-49 # in firms employing 50 workers or more stats_4549<-CreateTableOne(vars=c("formation98","formation99") ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/non-standard-t-distribution.R \name{NonStandardT} \alias{NonStandardT} \alias{dnst} \alias{pnst} \alias{qnst} \alias{rnst} \title{Non-standard t-distribution} \usage{ dnst(x, df, mu = 0, sigma = 1, log = FALSE) pnst(q, df, mu = 0, sigma = 1,...
/man/NonStandardT.Rd
no_license
mnel/extraDistr
R
false
true
1,692
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/non-standard-t-distribution.R \name{NonStandardT} \alias{NonStandardT} \alias{dnst} \alias{pnst} \alias{qnst} \alias{rnst} \title{Non-standard t-distribution} \usage{ dnst(x, df, mu = 0, sigma = 1, log = FALSE) pnst(q, df, mu = 0, sigma = 1,...
UseMixin <- function() { object <- list(used=c()) class(object) <- "UseMixin" return(object) } AddUse <- function(use.mixin, use) { if (HasUse(use.mixin, use)) { stop(paste("Duplicate Use:", use$name)) } use.mixin$used <- AppendToList(use.mixin$used, use) return(use.mixin) } HasUse <- function(use.m...
/packages/pegasus-dax-r/Pegasus/Workflow/R/use_mixin.R
permissive
pegasus-isi/pegasus
R
false
false
2,239
r
UseMixin <- function() { object <- list(used=c()) class(object) <- "UseMixin" return(object) } AddUse <- function(use.mixin, use) { if (HasUse(use.mixin, use)) { stop(paste("Duplicate Use:", use$name)) } use.mixin$used <- AppendToList(use.mixin$used, use) return(use.mixin) } HasUse <- function(use.m...
% Generated by roxygen2 (4.0.2): do not edit by hand \name{read.xts} \alias{read.xts} \title{Read \code{\link{xts}} object from file} \usage{ read.xts(filename, date.fn = paste, index.class = "Date", ...) } \arguments{ \item{filename}{file name} \item{date.fn}{function to preprocess string dates, \strong{defaults to \...
/man/read.xts.Rd
no_license
SathishN/griffun
R
false
false
731
rd
% Generated by roxygen2 (4.0.2): do not edit by hand \name{read.xts} \alias{read.xts} \title{Read \code{\link{xts}} object from file} \usage{ read.xts(filename, date.fn = paste, index.class = "Date", ...) } \arguments{ \item{filename}{file name} \item{date.fn}{function to preprocess string dates, \strong{defaults to \...
# PCA # Importing the dataset dataset = read.csv('Wine.csv') # Splitting the dataset into the Training set and Test set # install.packages('caTools') library(caTools) set.seed(123) split = sample.split(dataset$Customer_Segment, SplitRatio = 0.8) training_set = subset(dataset, split == TRUE) test_set = subset(dataset,...
/Part 9 - Dimensionality Reduction/Section 46 - Principal Component Analysis (PCA)/pca.R
no_license
agrawalsajal02/udemy-machine_learning
R
false
false
2,579
r
# PCA # Importing the dataset dataset = read.csv('Wine.csv') # Splitting the dataset into the Training set and Test set # install.packages('caTools') library(caTools) set.seed(123) split = sample.split(dataset$Customer_Segment, SplitRatio = 0.8) training_set = subset(dataset, split == TRUE) test_set = subset(dataset,...
library(ape) testtree <- read.tree("3991_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="3991_0_unrooted.txt")
/codeml_files/newick_trees_processed/3991_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("3991_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="3991_0_unrooted.txt")
baapcode<-function(){ library(DBI) library(RMySQL) options(java.parameters = "-Xmx1048m") library(RODBC) library(rJava) library(RJDBC) library(proto) library(gsubfn) library(RSQLite) library(sqldf) library(ParamHelpers) library(mlr) library(xgboost) library(caTools) ##Outlie...
/predictioncodeGA.R
no_license
vgvinayak/Sales_Prediction
R
false
false
14,706
r
baapcode<-function(){ library(DBI) library(RMySQL) options(java.parameters = "-Xmx1048m") library(RODBC) library(rJava) library(RJDBC) library(proto) library(gsubfn) library(RSQLite) library(sqldf) library(ParamHelpers) library(mlr) library(xgboost) library(caTools) ##Outlie...
#' Bartlett test #' #' Test if k samples are from populations with equal variances. #' #' @param data A \code{data.frame} or \code{tibble}. #' @param ... Columns in \code{data}. #' @param group_var Grouping variable. #' #' @details #' Bartlett's test is used to test if variances across samples is equal. #' It...
/R/ols-bartlett-test.R
no_license
cran/olsrr
R
false
false
3,637
r
#' Bartlett test #' #' Test if k samples are from populations with equal variances. #' #' @param data A \code{data.frame} or \code{tibble}. #' @param ... Columns in \code{data}. #' @param group_var Grouping variable. #' #' @details #' Bartlett's test is used to test if variances across samples is equal. #' It...
## Creates a cached matrix and cached solved matrix to save calculation time ## makeCacheMatrix stores a matrix and its inverse and allows it to be altered makeCacheMatrix <- function(x = matrix()) { inv.mat<-NULL set<-function(y=matrix()){ x<<-y inv.mat<<-NULL } get<-function() x set.inv<-function(...
/cachematrix.R
no_license
codywp/ProgrammingAssignment2
R
false
false
743
r
## Creates a cached matrix and cached solved matrix to save calculation time ## makeCacheMatrix stores a matrix and its inverse and allows it to be altered makeCacheMatrix <- function(x = matrix()) { inv.mat<-NULL set<-function(y=matrix()){ x<<-y inv.mat<<-NULL } get<-function() x set.inv<-function(...
# Bayesian sample size for single arm single stage binomial trial bayes_binom_one_postprob_onestage=function(p0,p1,eta,zeta,prior.a=0,prior.b=0,round=TRUE){ n=3 success=1 failure=max(success-1,0) a=0;b=0 while(a<eta | b<zeta){ n=n+1 a=1-pbeta(p0,prior.a+success,prior.b+n-success) whil...
/EurosarcBayes/R/bayes_binom_one_postprob_onestage_v1.0.R
no_license
ingted/R-Examples
R
false
false
928
r
# Bayesian sample size for single arm single stage binomial trial bayes_binom_one_postprob_onestage=function(p0,p1,eta,zeta,prior.a=0,prior.b=0,round=TRUE){ n=3 success=1 failure=max(success-1,0) a=0;b=0 while(a<eta | b<zeta){ n=n+1 a=1-pbeta(p0,prior.a+success,prior.b+n-success) whil...
# Assign variables and plot the data baltcitymary.emissions<-summarise(group_by(filter(NEI, fips == "24510"), year), Emissions=sum(Emissions)) clrs <- c("blue", "red", "yellow", "purple") plot2 <- barplot(height=baltcitymary.emissions$Emissions/1000, names.arg=baltcitymary.emissions$year, xlab="y...
/plot2.R
no_license
juancarlozamora/Exploratory-Data-Project-2
R
false
false
880
r
# Assign variables and plot the data baltcitymary.emissions<-summarise(group_by(filter(NEI, fips == "24510"), year), Emissions=sum(Emissions)) clrs <- c("blue", "red", "yellow", "purple") plot2 <- barplot(height=baltcitymary.emissions$Emissions/1000, names.arg=baltcitymary.emissions$year, xlab="y...
\name{acc-methods} \docType{methods} \alias{acc-methods} \alias{acc,graph-method} \alias{acc,clusterGraph-method} \alias{acc} \alias{acc,graph,character-method} \alias{acc,clusterGraph,character-method} \title{Methods for Accessibility Lists} \description{ This generic function takes an object that inherits from the ...
/man/acc-methods.Rd
no_license
Bioconductor/graph
R
false
false
1,657
rd
\name{acc-methods} \docType{methods} \alias{acc-methods} \alias{acc,graph-method} \alias{acc,clusterGraph-method} \alias{acc} \alias{acc,graph,character-method} \alias{acc,clusterGraph,character-method} \title{Methods for Accessibility Lists} \description{ This generic function takes an object that inherits from the ...
interval_estimate2<-function(x, y, sigma=c(-1,-1),var.equal=FALSE, alpha=0.05){ n1<-length(x); n2<-length(y) xb<-mean(x); yb<-mean(y) if (all(sigma>=0)){ tmp<-qnorm(1-alpha/2)*sqrt(sigma[1]^2/n1+sigma[2]^2/n2) df<-n1+n2 } else{ if (var.equal == TRUE){ Sw<-((n1-1...
/R/interval_estimate2.R
no_license
cran/OneTwoSamples
R
false
false
702
r
interval_estimate2<-function(x, y, sigma=c(-1,-1),var.equal=FALSE, alpha=0.05){ n1<-length(x); n2<-length(y) xb<-mean(x); yb<-mean(y) if (all(sigma>=0)){ tmp<-qnorm(1-alpha/2)*sqrt(sigma[1]^2/n1+sigma[2]^2/n2) df<-n1+n2 } else{ if (var.equal == TRUE){ Sw<-((n1-1...
#tab3# # Source the code printing functions to improve readibility source("check_valid.R", local=TRUE) source("code_printing.R", local = TRUE) datasetInput <- reactive({ switch(input$dataset, "rock" = rock, "pressure" = pressure, "cars" = cars, "mock" = mock) }) # Dy...
/houseprice/tab3.R
no_license
JackyKao/JProject
R
false
false
2,120
r
#tab3# # Source the code printing functions to improve readibility source("check_valid.R", local=TRUE) source("code_printing.R", local = TRUE) datasetInput <- reactive({ switch(input$dataset, "rock" = rock, "pressure" = pressure, "cars" = cars, "mock" = mock) }) # Dy...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_dropbox_history.R \name{get_dropbox_history} \alias{get_dropbox_history} \title{Get history from Dropbox API} \usage{ get_dropbox_history(path = NULL, dtoken = NULL, rev_limit = 1000) } \arguments{ \item{path}{relative to ~/Dropbox} \ite...
/man/get_dropbox_history.Rd
no_license
BAAQMD/droptools
R
false
true
477
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_dropbox_history.R \name{get_dropbox_history} \alias{get_dropbox_history} \title{Get history from Dropbox API} \usage{ get_dropbox_history(path = NULL, dtoken = NULL, rev_limit = 1000) } \arguments{ \item{path}{relative to ~/Dropbox} \ite...
library(ape) testtree <- read.tree("5657_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="5657_0_unrooted.txt")
/codeml_files/newick_trees_processed/5657_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("5657_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="5657_0_unrooted.txt")
asc <- function(x) { raw = charToRaw(x) return (strtoi(raw, 16L)) } charToBinary <- function(ch) { asci = asc(ch) bin = as.integer(intToBits(asci)) return (bin[8:1]) } strToBinary <- function(str) { outputBin = c() for (i in 1:(nchar(str))) { ch = substr(str,i,i) outputBin = c(outputBin, charToBin...
/132Project1.R
no_license
fantaandcrackers/R_Covert_Com
R
false
false
2,220
r
asc <- function(x) { raw = charToRaw(x) return (strtoi(raw, 16L)) } charToBinary <- function(ch) { asci = asc(ch) bin = as.integer(intToBits(asci)) return (bin[8:1]) } strToBinary <- function(str) { outputBin = c() for (i in 1:(nchar(str))) { ch = substr(str,i,i) outputBin = c(outputBin, charToBin...
#!/usr/bin/env Rscript library(argparse) parser <- ArgumentParser(description='Process counts into normalized mean and geometric means') parser$add_argument('--idxstats', help='bam files of samples for calculating coverage') parser$add_argument('--counts', help='count file with counts in region') argv <- parser$pa...
/scripts/chip/scripts/compute_domain.R
no_license
vansteensellab/Promoters_in_LADs
R
false
false
1,216
r
#!/usr/bin/env Rscript library(argparse) parser <- ArgumentParser(description='Process counts into normalized mean and geometric means') parser$add_argument('--idxstats', help='bam files of samples for calculating coverage') parser$add_argument('--counts', help='count file with counts in region') argv <- parser$pa...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot.codgroup.r \name{plot.codgroup} \alias{plot.codgroup} \title{Plot diagnostic for a codgroup object} \usage{ \method{plot}{codgroup}(x, which, ...) } \arguments{ \item{x}{codgroup object resulting from a call to the codgroup func...
/man/plot.codgroup.Rd
no_license
cran/MortHump
R
false
true
1,251
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot.codgroup.r \name{plot.codgroup} \alias{plot.codgroup} \title{Plot diagnostic for a codgroup object} \usage{ \method{plot}{codgroup}(x, which, ...) } \arguments{ \item{x}{codgroup object resulting from a call to the codgroup func...
#' @name sprinkle_fixed_header #' @title Assign a Fixed Header to an HTML Table #' #' @description Long tables to be displayed on-screen may benefit by keeping #' the header fixed in position while scrolling through the body of the #' table. This allows the user to maintain visual contact between the #' co...
/R/sprinkle_fixed_header.R
no_license
mllg/pixiedust
R
false
false
17,646
r
#' @name sprinkle_fixed_header #' @title Assign a Fixed Header to an HTML Table #' #' @description Long tables to be displayed on-screen may benefit by keeping #' the header fixed in position while scrolling through the body of the #' table. This allows the user to maintain visual contact between the #' co...
#' @import shiny #' @importFrom graphics hist #' @importFrom stats rnorm #' app_server <- function(input, output, session) { # if ( app_prod() ){message("prod mode")}else{message("dev mode")} # output$distPlot <- renderPlot({ # x <- rnorm(1000) # bins <- seq(min(x), max(x), length.out = input$bins + 1) ...
/R/app_server.R
no_license
mustafaascha/inndxrs
R
false
false
3,447
r
#' @import shiny #' @importFrom graphics hist #' @importFrom stats rnorm #' app_server <- function(input, output, session) { # if ( app_prod() ){message("prod mode")}else{message("dev mode")} # output$distPlot <- renderPlot({ # x <- rnorm(1000) # bins <- seq(min(x), max(x), length.out = input$bins + 1) ...
# --------------------------------------------------- # # Script to parameterize the southern hemisphere land # # planet so that total global land area is similar # # to the modern # # --- # # T Kukla (ColoState Univ.) ...
/Geography/generate_geography/idealized_geography/Midlat_geographyMAKE.R
permissive
tykukla/CH2O-CHOO-TRAIN
R
false
false
3,532
r
# --------------------------------------------------- # # Script to parameterize the southern hemisphere land # # planet so that total global land area is similar # # to the modern # # --- # # T Kukla (ColoState Univ.) ...
# The script is an example to show how to the lable the branch with the interesting species library(ape) library(treeio) library(stringr) # for the batch process # read tre input <- "/home/luhongzhong/ortholog_subset/unroot_tree_unify/" output <- "/home/luhongzhong/ortholog_subset/tree_label_hyphy/" allfile <- list.f...
/evolution_analysis/code/tree_build/others/Lable_tree_hyphy.R
permissive
BoWangXJTU/Multi_scale_evolution
R
false
false
2,909
r
# The script is an example to show how to the lable the branch with the interesting species library(ape) library(treeio) library(stringr) # for the batch process # read tre input <- "/home/luhongzhong/ortholog_subset/unroot_tree_unify/" output <- "/home/luhongzhong/ortholog_subset/tree_label_hyphy/" allfile <- list.f...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/deviance_mixture.R \name{deviance_mixture} \alias{deviance_mixture} \title{Deviance of multinomial mixture distributions} \usage{ deviance_mixture(x, M, N, s, n, nbmel) } \arguments{ \item{x}{value to which the deviance is to be eval...
/man/deviance_mixture.Rd
no_license
cran/R2ucare
R
false
true
1,054
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/deviance_mixture.R \name{deviance_mixture} \alias{deviance_mixture} \title{Deviance of multinomial mixture distributions} \usage{ deviance_mixture(x, M, N, s, n, nbmel) } \arguments{ \item{x}{value to which the deviance is to be eval...
## Unit tests for adding files to entities ## ## Author: Matthew D. Furia <matt.furia@sagebase.org> ############################################################################### unitTestOverwriteFile <- function() { file <- tempfile() d <- diag(nrow=10, ncol=10) save(d, file=file) path <- "/foo/bar/" che...
/inst/unitTests/test_FileCacheAddFile.R
no_license
kdaily/rSynapseClient
R
false
false
10,931
r
## Unit tests for adding files to entities ## ## Author: Matthew D. Furia <matt.furia@sagebase.org> ############################################################################### unitTestOverwriteFile <- function() { file <- tempfile() d <- diag(nrow=10, ncol=10) save(d, file=file) path <- "/foo/bar/" che...
ll.speedglm <- function(family,aic.model,nvar){ switch(family, binomial = -(aic.model-2 * nvar)/2, Gamma = -((aic.model-2 * nvar)-2)/2, gaussian = -((aic.model-2 * nvar)-2)/2, poisson = -(aic.model- 2 * nvar)/2, inverse.gaussian = -((aic.model-2 * nvar)-2)/2, quas...
/R/uncommented.R
no_license
cran/tensorregress
R
false
false
2,135
r
ll.speedglm <- function(family,aic.model,nvar){ switch(family, binomial = -(aic.model-2 * nvar)/2, Gamma = -((aic.model-2 * nvar)-2)/2, gaussian = -((aic.model-2 * nvar)-2)/2, poisson = -(aic.model- 2 * nvar)/2, inverse.gaussian = -((aic.model-2 * nvar)-2)/2, quas...
#' @title Convert a crosstabulation into a data frame of cases. #' #' @author Nick Barrowman, based on the \code{countsToCases} function at \url{http://www.cookbook-r.com/Manipulating_data/Converting_between_data_frames_and_contingency_tables/#countstocases-function} #' #' @description #' Convert a table of crosst...
/R/crosstabToCases.R
no_license
cran/vtree
R
false
false
1,142
r
#' @title Convert a crosstabulation into a data frame of cases. #' #' @author Nick Barrowman, based on the \code{countsToCases} function at \url{http://www.cookbook-r.com/Manipulating_data/Converting_between_data_frames_and_contingency_tables/#countstocases-function} #' #' @description #' Convert a table of crosst...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spatial_interaction_visuals.R \name{plotRankSpatvsExpr} \alias{plotRankSpatvsExpr} \title{plotRankSpatvsExpr} \usage{ plotRankSpatvsExpr( gobject, combCC, expr_rnk_column = "LR_expr_rnk", spat_rnk_column = "LR_spat_rnk", midpoint = ...
/man/plotRankSpatvsExpr.Rd
permissive
RubD/Giotto
R
false
true
1,538
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spatial_interaction_visuals.R \name{plotRankSpatvsExpr} \alias{plotRankSpatvsExpr} \title{plotRankSpatvsExpr} \usage{ plotRankSpatvsExpr( gobject, combCC, expr_rnk_column = "LR_expr_rnk", spat_rnk_column = "LR_spat_rnk", midpoint = ...
# TO define vector : *vector* <- c(**,**,**) : <- like this myvect1<- c(12, 34, 2, 686) # c stands for COMBINE is.double(myvect1) myvect2<- c(12L, 45L, 48L, 32L) is.integer(myvect2) myvect3<- c("Any", "Thing like", "69", "or something else") is.character(myvect3) # VECTOR indexing in R starts with "1" instead o...
/Practice/Section 3/Vector.R
no_license
souviksamanta95/R_Personal
R
false
false
2,117
r
# TO define vector : *vector* <- c(**,**,**) : <- like this myvect1<- c(12, 34, 2, 686) # c stands for COMBINE is.double(myvect1) myvect2<- c(12L, 45L, 48L, 32L) is.integer(myvect2) myvect3<- c("Any", "Thing like", "69", "or something else") is.character(myvect3) # VECTOR indexing in R starts with "1" instead o...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.99939408264402e-241, 1.97310986448929e-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/1615839889-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
363
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.99939408264402e-241, 1.97310986448929e-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...
#'Print Sum Total Children Enrolled #' #'Print the total number of school children in a state for the 2013-2014 school year. #' #'@name tot_pop #' #'@param x State Abbreviation #' #'@return Numeric Vector #' #'@import dplyr #' #' #' #'@examples #'tot_pop("KS") #' #'tot_pop("NY") #' #'tot_pop("CA") #' #'@export #' load...
/Final Project Submission/R/tot_pop.R
permissive
thedownlohd/CDRCr
R
false
false
683
r
#'Print Sum Total Children Enrolled #' #'Print the total number of school children in a state for the 2013-2014 school year. #' #'@name tot_pop #' #'@param x State Abbreviation #' #'@return Numeric Vector #' #'@import dplyr #' #' #' #'@examples #'tot_pop("KS") #' #'tot_pop("NY") #' #'tot_pop("CA") #' #'@export #' load...
#' Geom for network visualization within the ggplot2 framework #' #' @inheritParams ggplot2::stat_identity #' @param stat character string of the network stat corresponding to geom_net. #' @param alpha numeric value of alpha blending of vertices. #' @param ealpha numeric value of alpha blending of edges. #' @param na....
/R/geom-net.r
no_license
fanatichuman/geomnet
R
false
false
15,297
r
#' Geom for network visualization within the ggplot2 framework #' #' @inheritParams ggplot2::stat_identity #' @param stat character string of the network stat corresponding to geom_net. #' @param alpha numeric value of alpha blending of vertices. #' @param ealpha numeric value of alpha blending of edges. #' @param na....
#simrep.R #Runs the holoSimCell model for Ash using an ENM to define habitat suitability #Set the "node" you're simulating 1-500 possible #Set the number of replicates to simulate #Add the refuge location (grid cell ID) #Add the user's initials to keep this file separate from others... #Usage: Rscript simrep.R 1 10 5 ...
/inst/extdata/scripts/phtest.R
no_license
stranda/holoSimCell
R
false
false
3,499
r
#simrep.R #Runs the holoSimCell model for Ash using an ENM to define habitat suitability #Set the "node" you're simulating 1-500 possible #Set the number of replicates to simulate #Add the refuge location (grid cell ID) #Add the user's initials to keep this file separate from others... #Usage: Rscript simrep.R 1 10 5 ...
PREFIX abo: <http://artemisBookstore.com/ontology#> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX dcterms: <http://purl.org/dc/terms/> SELECT ?title WHERE { ?subject abo:author ?auth . ?auth foaf:firstName "Paul" . ?auth foaf:lastName "Auster" . ?subject dcterms:title ?title . }
/TP3/src/test1.rd
no_license
tiretfa/WebSemantique
R
false
false
301
rd
PREFIX abo: <http://artemisBookstore.com/ontology#> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX dcterms: <http://purl.org/dc/terms/> SELECT ?title WHERE { ?subject abo:author ?auth . ?auth foaf:firstName "Paul" . ?auth foaf:lastName "Auster" . ?subject dcterms:title ?title . }
library(recipes) ### Name: step_nnmf ### Title: NNMF Signal Extraction ### Aliases: step_nnmf tidy.step_nnmf ### Keywords: datagen ### ** Examples ## No test: data(biomass) if (require(dimRed) & require(NMF)) { rec <- recipe(HHV ~ ., data = biomass) %>% update_role(sample, new_role = "id var") %>% updat...
/data/genthat_extracted_code/recipes/examples/step_nnmf.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
617
r
library(recipes) ### Name: step_nnmf ### Title: NNMF Signal Extraction ### Aliases: step_nnmf tidy.step_nnmf ### Keywords: datagen ### ** Examples ## No test: data(biomass) if (require(dimRed) & require(NMF)) { rec <- recipe(HHV ~ ., data = biomass) %>% update_role(sample, new_role = "id var") %>% updat...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rclustnet.R \name{rclustnet} \alias{rclustnet} \title{Generate a random graph with desired size, clustering coefficient, and degree distribution} \usage{ rclustnet(n, CC, rdegdist = "pois", ...) } \arguments{ \item{n}{Integer size of random g...
/man/rclustnet.Rd
permissive
emvolz/rclustnet
R
false
true
754
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rclustnet.R \name{rclustnet} \alias{rclustnet} \title{Generate a random graph with desired size, clustering coefficient, and degree distribution} \usage{ rclustnet(n, CC, rdegdist = "pois", ...) } \arguments{ \item{n}{Integer size of random g...
# Box Office Mojo --------------------------------------------------------- get_financials = function(film, year, actor) { require(dplyr) require(rvest) require(stringr) require(xml2) v = tryCatch({ film = str_replace_all(film," ", "+") search_url = sprintf("http://www.imdb.com/find?q=%s&s=e...
/utils/variants/get_financials_imdb.R
no_license
TMBish/Stratton
R
false
false
2,828
r
# Box Office Mojo --------------------------------------------------------- get_financials = function(film, year, actor) { require(dplyr) require(rvest) require(stringr) require(xml2) v = tryCatch({ film = str_replace_all(film," ", "+") search_url = sprintf("http://www.imdb.com/find?q=%s&s=e...
\name{Binmat-class} \docType{class} \alias{class:Binmat} \alias{Binmat} \alias{Binmat-class} \alias{[,Binmat-method} \alias{[,Binmat,ANY,ANY,ANY-method} \alias{[,Binmat,ANY,ANY,NULL-method} \alias{dim,Binmat-method} \alias{dim<-,Binmat-method} \alias{dimnames,Binmat-method} \alias{dimnames<-,Binmat-method} \alias{dim...
/man/Binmat-class.Rd
no_license
DanGuo1223/Cardinal
R
false
false
4,610
rd
\name{Binmat-class} \docType{class} \alias{class:Binmat} \alias{Binmat} \alias{Binmat-class} \alias{[,Binmat-method} \alias{[,Binmat,ANY,ANY,ANY-method} \alias{[,Binmat,ANY,ANY,NULL-method} \alias{dim,Binmat-method} \alias{dim<-,Binmat-method} \alias{dimnames,Binmat-method} \alias{dimnames<-,Binmat-method} \alias{dim...
setwd('/Users/gregwalsh/Github/DataScience /DSSA-5101-DATA-EXPLORATION/Project5') library(tidyverse) library(ggplot2) require(scales) library(dplyr) acprint_merge <- function(source_csv, demographic_csv) { # Source source_df <- read_csv( source_csv, col_types = cols( Date = col_date("%m/%d/%Y") #...
/DSSA-5101-DATA-EXPLORATION/Project5/PrinterData.R
no_license
walshg3/DataScience
R
false
false
2,750
r
setwd('/Users/gregwalsh/Github/DataScience /DSSA-5101-DATA-EXPLORATION/Project5') library(tidyverse) library(ggplot2) require(scales) library(dplyr) acprint_merge <- function(source_csv, demographic_csv) { # Source source_df <- read_csv( source_csv, col_types = cols( Date = col_date("%m/%d/%Y") #...
testHomework <- function() { ## Set the working directory setwd("~/projects/coursera_r_class/github_repos/ProgrammingAssignment2-master/") ## Make sure the homework file is loaded in the memory source("cacheMatrix.R") ## Create a simple test case of a 2 (column) by 2 (row) matrix testMatrix <- ma...
/testHomework.R
no_license
jconnelly/ProgrammingAssignment2
R
false
false
592
r
testHomework <- function() { ## Set the working directory setwd("~/projects/coursera_r_class/github_repos/ProgrammingAssignment2-master/") ## Make sure the homework file is loaded in the memory source("cacheMatrix.R") ## Create a simple test case of a 2 (column) by 2 (row) matrix testMatrix <- ma...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/callbacks.R \name{callbacks} \alias{callbacks} \alias{e_on} \alias{e_off} \title{Callbacks} \usage{ e_on(e, query, handler, event = "click") e_off(e, query, handler, event = "click") } \arguments{ \item{e}{An \code{echarts4r} object as retur...
/man/callbacks.Rd
permissive
JohnCoene/echarts4r
R
false
true
881
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/callbacks.R \name{callbacks} \alias{callbacks} \alias{e_on} \alias{e_off} \title{Callbacks} \usage{ e_on(e, query, handler, event = "click") e_off(e, query, handler, event = "click") } \arguments{ \item{e}{An \code{echarts4r} object as retur...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/file.R \name{read_apsimx} \alias{read_apsimx} \title{Read APSIMX file} \usage{ read_apsimx(path) } \arguments{ \item{path}{The file path or URL to apsimx file} } \value{ A list object of apsimx file } \description{ Read APSIMX file } \example...
/man/read_apsimx.Rd
no_license
Chuang2016/rapsimng
R
false
true
406
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/file.R \name{read_apsimx} \alias{read_apsimx} \title{Read APSIMX file} \usage{ read_apsimx(path) } \arguments{ \item{path}{The file path or URL to apsimx file} } \value{ A list object of apsimx file } \description{ Read APSIMX file } \example...
library(here) library(pROC) library(ggplot2) library(pscl) library(lmtest) library(MASS) source(here::here("functions.R")) dfall <- readRDS(here::here("mosdf.rds")) ##### Split the datset into train and test datasets ##### exactdate <- as.Date(dfall[nrow(dfall)*0.75,"date"]) weekstart <- seq(as.Date(dfal...
/paper_code.R
permissive
chathuHet/RiskPredictionSystem_Dengue
R
false
false
17,301
r
library(here) library(pROC) library(ggplot2) library(pscl) library(lmtest) library(MASS) source(here::here("functions.R")) dfall <- readRDS(here::here("mosdf.rds")) ##### Split the datset into train and test datasets ##### exactdate <- as.Date(dfall[nrow(dfall)*0.75,"date"]) weekstart <- seq(as.Date(dfal...
#' @exportClass GeoSituation #' @name GeoSituation #' @rdname GeoSituation #' @aliases GeoSituation-class #' @title The GeoSituation class #' #' @description #' This class is part of the \pkg{HNUORTools}. It can be understood as a scenario-placeholder in an #' \dfn{Operations-Research (OR)}-context. #' #' @details...
/R/03Geosituation.r
permissive
felixlindemann/HNUORTools
R
false
false
49,743
r
#' @exportClass GeoSituation #' @name GeoSituation #' @rdname GeoSituation #' @aliases GeoSituation-class #' @title The GeoSituation class #' #' @description #' This class is part of the \pkg{HNUORTools}. It can be understood as a scenario-placeholder in an #' \dfn{Operations-Research (OR)}-context. #' #' @details...
library(ExpDes.pt) ### Name: snk ### Title: Comparacao multipla: SNK ### Aliases: snk ### ** Examples data(ex1) attach(ex1) dic(trat, ig, quali = TRUE, mcomp='snk', sigT = 0.05)
/data/genthat_extracted_code/ExpDes.pt/examples/snk.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
185
r
library(ExpDes.pt) ### Name: snk ### Title: Comparacao multipla: SNK ### Aliases: snk ### ** Examples data(ex1) attach(ex1) dic(trat, ig, quali = TRUE, mcomp='snk', sigT = 0.05)
itemData.default <- function(thresholds, item.type = "deltas",...) { if(item.type == "thresholds") thresholds <- make.thresholds(thresholds,...) return(thresholds) }
/R/itemData.default.R
permissive
david-ti/wrightmap
R
false
false
170
r
itemData.default <- function(thresholds, item.type = "deltas",...) { if(item.type == "thresholds") thresholds <- make.thresholds(thresholds,...) return(thresholds) }
#清除缓存 rm(list = ls(all=T)) gc() library(dplyr) library(stringr) library(raster) library(RMySQL) library(reshape2) local_file<-gsub("\\/bat|\\/main.*","",tryCatch(dirname(rstudioapi::getActiveDocumentContext()$path),error=function(e){getwd()})) source(paste0(local_file,"\\config\\config_fun\\fun_mysql_config_up.R"),echo...
/main/main_detail/che58.R
no_license
gitwutb/yck_wash_car_model
R
false
false
27,440
r
#清除缓存 rm(list = ls(all=T)) gc() library(dplyr) library(stringr) library(raster) library(RMySQL) library(reshape2) local_file<-gsub("\\/bat|\\/main.*","",tryCatch(dirname(rstudioapi::getActiveDocumentContext()$path),error=function(e){getwd()})) source(paste0(local_file,"\\config\\config_fun\\fun_mysql_config_up.R"),echo...
library(ODEsensitivity) ### Name: plot.ODEsobol ### Title: Plot of the Results of Sobol' Sensitivity Analysis for Objects ### of Class 'ODEsobol' ### Aliases: plot.ODEsobol ### ** Examples ##### Lotka-Volterra equations ##### LVmod <- function(Time, State, Pars) { with(as.list(c(State, Pars)), { Ingestion ...
/data/genthat_extracted_code/ODEsensitivity/examples/plot.ODEsobol.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
2,990
r
library(ODEsensitivity) ### Name: plot.ODEsobol ### Title: Plot of the Results of Sobol' Sensitivity Analysis for Objects ### of Class 'ODEsobol' ### Aliases: plot.ODEsobol ### ** Examples ##### Lotka-Volterra equations ##### LVmod <- function(Time, State, Pars) { with(as.list(c(State, Pars)), { Ingestion ...
setwd("F:/AcadGild/workings") lib=c("bigmemory", "readr", "Hmisc", "dplyr", "MASS", "ggplot2", "lattice", "caret", "rpart", "randomForest", "rpart.plot","lattice", "rattle", "data.table","RColorBrewer", "reshape2", "InformationValue","stringr", "VIF", "Information", "Amelia", "gdata", "party","car","l...
/Project_4.R
no_license
vadde18srinu/Project_4
R
false
false
3,302
r
setwd("F:/AcadGild/workings") lib=c("bigmemory", "readr", "Hmisc", "dplyr", "MASS", "ggplot2", "lattice", "caret", "rpart", "randomForest", "rpart.plot","lattice", "rattle", "data.table","RColorBrewer", "reshape2", "InformationValue","stringr", "VIF", "Information", "Amelia", "gdata", "party","car","l...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/generics.R \name{predict.bife} \alias{predict.bife} \title{Predict method for \code{bife} fits} \usage{ \method{predict}{bife}( object, type = c("link", "response"), X_new = NULL, alpha_new = NULL, corrected = NULL, ... ) } \argum...
/man/predict.bife.Rd
no_license
amrei-stammann/bife
R
false
true
2,033
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/generics.R \name{predict.bife} \alias{predict.bife} \title{Predict method for \code{bife} fits} \usage{ \method{predict}{bife}( object, type = c("link", "response"), X_new = NULL, alpha_new = NULL, corrected = NULL, ... ) } \argum...
# Load and install packages into R install.packages("psych") library("psych") # These are comments # They are not run by R # You can hit command+Enter or ctrl+Enter and R won't interpret # them. # Examine the LSAT data data(bock) # Let's get some summary information head(lsat6) summary(lsat6) # Item difficulty appl...
/classes/e411prma-fall2015/lecture8/week4.R
permissive
cddesja/cddesja.github.io
R
false
false
547
r
# Load and install packages into R install.packages("psych") library("psych") # These are comments # They are not run by R # You can hit command+Enter or ctrl+Enter and R won't interpret # them. # Examine the LSAT data data(bock) # Let's get some summary information head(lsat6) summary(lsat6) # Item difficulty appl...
# cachematrix.R: A set of functions that caches the inverse when working with # matrices. Assignment for the third week of the Coursera/JHU R Programming class. ## A function that creates a list that caches the inverse of a matrix for use ## with the cacheSolve function. makeCacheMatrix <- function(x = matrix()) { ...
/cachematrix.R
no_license
ReProgrammatic/ProgrammingAssignment2
R
false
false
1,395
r
# cachematrix.R: A set of functions that caches the inverse when working with # matrices. Assignment for the third week of the Coursera/JHU R Programming class. ## A function that creates a list that caches the inverse of a matrix for use ## with the cacheSolve function. makeCacheMatrix <- function(x = matrix()) { ...
library("seqCAT") context("Plot heatmap for multiple comparisons") # Load similarities data(test_similarities) # Create plot object plot <- plot_heatmap(test_similarities) plot_obj <- ggplot2::ggplot_build(plot) # Get plot parameters based on ggplot2 version if (utils::packageVersion("ggplot2") < "2.2.1.9000") { ...
/tests/testthat/test_08_plot_heatmap.R
permissive
krprls/seqCAT
R
false
false
820
r
library("seqCAT") context("Plot heatmap for multiple comparisons") # Load similarities data(test_similarities) # Create plot object plot <- plot_heatmap(test_similarities) plot_obj <- ggplot2::ggplot_build(plot) # Get plot parameters based on ggplot2 version if (utils::packageVersion("ggplot2") < "2.2.1.9000") { ...
#### Module Weather #### # This module supports the Weather tab with: # - Loading all the required data for: # - Weather Chart # - Claims Chart # - Weather Events Feed # - creating the plotting functions for # - Weather Chart # - Claims Chart #### Libraries #### # This module uses the following l...
/module_06_Weather.R
no_license
ZhongjiuLu/visualisation-challenge
R
false
false
5,838
r
#### Module Weather #### # This module supports the Weather tab with: # - Loading all the required data for: # - Weather Chart # - Claims Chart # - Weather Events Feed # - creating the plotting functions for # - Weather Chart # - Claims Chart #### Libraries #### # This module uses the following l...
##### Mt. Sinai data ######## # RNAseq library(synapseClient) synapseLogin() commonAnnotations = list(consortium="AMP-AD", dataType="mRNA", assay="RNAseq", dataSubType="geneExp", fileType="bam") datasetAnnotations = list(study="MSBB",center="MSBB",modelSystem=FALSE,organism="HomoSapiens",platform="IlluminaHiSeq2500...
/NIA-AMP-AD/annotate_BAM_minimal_MSSM.R
permissive
kkdang/sage-data-analysis
R
false
false
2,765
r
##### Mt. Sinai data ######## # RNAseq library(synapseClient) synapseLogin() commonAnnotations = list(consortium="AMP-AD", dataType="mRNA", assay="RNAseq", dataSubType="geneExp", fileType="bam") datasetAnnotations = list(study="MSBB",center="MSBB",modelSystem=FALSE,organism="HomoSapiens",platform="IlluminaHiSeq2500...
#' @include GarmaSimBoot.R NULL #' \emph{GARMA} MBB simulation confidence interval class. #' #' An S4 class to represent a \emph{garma} MBB simulation #' confidence interval object. #' #'This S4 class defines the basic structre of a \emph{GARMA} #'MBB simulation confidence interval object. #' #'@author Matheus de Vas...
/R/ConfidenceInterval.R
no_license
matheusbarroso/garma
R
false
false
2,506
r
#' @include GarmaSimBoot.R NULL #' \emph{GARMA} MBB simulation confidence interval class. #' #' An S4 class to represent a \emph{garma} MBB simulation #' confidence interval object. #' #'This S4 class defines the basic structre of a \emph{GARMA} #'MBB simulation confidence interval object. #' #'@author Matheus de Vas...
## read source data01 <- readRDS("summarySCC_PM25.rds") ## subsetting data from baltimore and then summing by year databalt <- subset(data01, fips=="24510") databalty <- aggregate(databalt$Emissions, by=list(databalt$year), FUN=sum) ## Protting using base system png(filename = "plot2.png") plot(databalty$Group.1, da...
/Plot2.R
no_license
diazidx/Exploratory-Data-Analysis-Project
R
false
false
456
r
## read source data01 <- readRDS("summarySCC_PM25.rds") ## subsetting data from baltimore and then summing by year databalt <- subset(data01, fips=="24510") databalty <- aggregate(databalt$Emissions, by=list(databalt$year), FUN=sum) ## Protting using base system png(filename = "plot2.png") plot(databalty$Group.1, da...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/opal.command.r \name{opal.commands_rm} \alias{opal.commands_rm} \title{Remove all asynchronous commands} \usage{ opal.commands_rm(opal) } \arguments{ \item{opal}{Opal object.} } \description{ Remove all asynchronous R commands in the remote R...
/man/opal.commands_rm.Rd
no_license
IulianD/opal
R
false
true
332
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/opal.command.r \name{opal.commands_rm} \alias{opal.commands_rm} \title{Remove all asynchronous commands} \usage{ opal.commands_rm(opal) } \arguments{ \item{opal}{Opal object.} } \description{ Remove all asynchronous R commands in the remote R...
## This script produces the plot 2 for the Course Project 2 ## corresponding to Exploratory Data Analysis. par(mar = c(6, 6, 4, 4)) with(EPCs, plot(EPCs$Date_Time, EPCs$Global_active_power, pch = NA, xlab = "", ylab = "Global Active Power (kilowatts)")) lines(EPCs$Date_Time, EPCs$Global_active_p...
/plot2.R
no_license
mduranca/ExData_Plotting1
R
false
false
463
r
## This script produces the plot 2 for the Course Project 2 ## corresponding to Exploratory Data Analysis. par(mar = c(6, 6, 4, 4)) with(EPCs, plot(EPCs$Date_Time, EPCs$Global_active_power, pch = NA, xlab = "", ylab = "Global Active Power (kilowatts)")) lines(EPCs$Date_Time, EPCs$Global_active_p...
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # Question 1 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # # The American Community Survey distributes downloadable data about United States communities. Downloa...
/c3w4/c3w4quiz.R
no_license
actraub/datasciencecoursera
R
false
false
4,325
r
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # Question 1 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # # The American Community Survey distributes downloadable data about United States communities. Downloa...
# This is the user-interface definition of a Shiny web application. # You can find out more about building applications with Shiny here: # # http://shiny.rstudio.com # library(shiny) shinyUI(fluidPage( # Application title titlePanel("Tarea 3: ImportanceSampling"), # Sidebar with a slider input for number...
/importanceSampling/ui.R
no_license
sgongoray/CompuStat
R
false
false
849
r
# This is the user-interface definition of a Shiny web application. # You can find out more about building applications with Shiny here: # # http://shiny.rstudio.com # library(shiny) shinyUI(fluidPage( # Application title titlePanel("Tarea 3: ImportanceSampling"), # Sidebar with a slider input for number...
## This file contains the analysis of Prison data using Hierarchical forecasting methods. ## Data form a grouped hierarchy with 3 grouping variables - 8-states, 2-Gender, 2-Legal-status. ## Length of data expands from Q1-2005 to Q4-2018 # For aggregate seriesand bottom level series we fit dynamic regression with ARI...
/Application-R/Application-PrisonData/Bias-with-log-trans/PrisonData_PointFRecon_LogTrans_DynReg_H1-H4.R
no_license
PuwasalaG/Hierarchical-forecast-reconciliation
R
false
false
14,748
r
## This file contains the analysis of Prison data using Hierarchical forecasting methods. ## Data form a grouped hierarchy with 3 grouping variables - 8-states, 2-Gender, 2-Legal-status. ## Length of data expands from Q1-2005 to Q4-2018 # For aggregate seriesand bottom level series we fit dynamic regression with ARI...
library("knitr") library("rgl") #knit("N-butyl-N-ethyl-2,6-.Rmd") #markdownToHTML('N-butyl-N-ethyl-2,6-.md', 'N-butyl-N-ethyl-2,6-.html', options=c("use_xhml")) #system("pandoc -s N-butyl-N-ethyl-2,6-.html -o N-butyl-N-ethyl-2,6-.pdf") knit2html('N-butyl-N-ethyl-2,6-.Rmd')
/FDA_Pesticide_Glossary/N-butyl-N-ethyl-2,6-.R
permissive
andrewdefries/andrewdefries.github.io
R
false
false
276
r
library("knitr") library("rgl") #knit("N-butyl-N-ethyl-2,6-.Rmd") #markdownToHTML('N-butyl-N-ethyl-2,6-.md', 'N-butyl-N-ethyl-2,6-.html', options=c("use_xhml")) #system("pandoc -s N-butyl-N-ethyl-2,6-.html -o N-butyl-N-ethyl-2,6-.pdf") knit2html('N-butyl-N-ethyl-2,6-.Rmd')
context("Gettors and settors") test_that("simple settor works", { a <- Object$clone() a$set_double <- function(value) { core(self)$set_slot("double", value * 2) } a$double <- 5 expect_that(a$double, equals(10)) }) test_that("settors are inherited", { a <- Object$clone() a$set_double <- function(v...
/tests/test-settors.r
no_license
hadley/mutatr
R
false
false
615
r
context("Gettors and settors") test_that("simple settor works", { a <- Object$clone() a$set_double <- function(value) { core(self)$set_slot("double", value * 2) } a$double <- 5 expect_that(a$double, equals(10)) }) test_that("settors are inherited", { a <- Object$clone() a$set_double <- function(v...
# CalculateDiversity.R # Geoffrey Hannigan # Pat Schloss Lab # University of Michigan ################# # Set Libraries # ################# library("ggplot2") library("RColorBrewer") library("optparse") library("vegan") ################################# # Parse Input from Command Line # #############################...
/bin/CalculateDiversity.R
permissive
skjq/Hannigan_CRCVirome_mBio_2018
R
false
false
3,202
r
# CalculateDiversity.R # Geoffrey Hannigan # Pat Schloss Lab # University of Michigan ################# # Set Libraries # ################# library("ggplot2") library("RColorBrewer") library("optparse") library("vegan") ################################# # Parse Input from Command Line # #############################...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 5.04922248383807e+173, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(CNull:::communities_individual_...
/CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615776596-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
362
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 5.04922248383807e+173, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(CNull:::communities_individual_...
library(ape) testtree <- read.tree("4594_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="4594_0_unrooted.txt")
/codeml_files/newick_trees_processed/4594_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("4594_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="4594_0_unrooted.txt")
rm(list=ls()) install.packages("ICSNP") install.packages("devtools") install.packages("rrcov") install.packages("scatterplot2d") library(devtools) install_github("vqv/ggbiplot") library(ggbiplot) library(ICSNP) getwd() setwd() data <- read.csv("/Users/christopherton/Desktop/STA135Project/Admission_Predict_Ver1.1.csv",h...
/STA135Proj.R
no_license
chriztopherton/Classifying-Graduate-Admissions
R
false
false
9,418
r
rm(list=ls()) install.packages("ICSNP") install.packages("devtools") install.packages("rrcov") install.packages("scatterplot2d") library(devtools) install_github("vqv/ggbiplot") library(ggbiplot) library(ICSNP) getwd() setwd() data <- read.csv("/Users/christopherton/Desktop/STA135Project/Admission_Predict_Ver1.1.csv",h...
testlist <- list(doy = c(2.12530129086192e-42, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e-308, -3.52601820453991e+43, -1.49815227045093e+197, -2.61605817623304e+76, -1.18078903777423e-90, 1.86807199752012e+112, -5.58551357556946e+160, 2.00994342527714e-162, 1.81541609400943e-7...
/meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615833526-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
763
r
testlist <- list(doy = c(2.12530129086192e-42, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e-308, -3.52601820453991e+43, -1.49815227045093e+197, -2.61605817623304e+76, -1.18078903777423e-90, 1.86807199752012e+112, -5.58551357556946e+160, 2.00994342527714e-162, 1.81541609400943e-7...
###2019.5.14 #环形柱状图 #https://www.jianshu.com/p/410a909fe911 #https://www.r-graph-gallery.com/297-circular-barplot-with-groups/ #准备数据 df <- data.frame(individual=paste("Mister",seq(1,60),sep=""),value=sample(seq(10,100),60,replace=T)) df$id <- seq(1,nrow(df)) library(ggplot2) #简易柱形图 p<-ggplot(df,aes(x=as.fa...
/mismatch/phylum_primer.R
no_license
Listen-Lii/MER-accuracy-of-ITS-markers
R
false
false
9,699
r
###2019.5.14 #环形柱状图 #https://www.jianshu.com/p/410a909fe911 #https://www.r-graph-gallery.com/297-circular-barplot-with-groups/ #准备数据 df <- data.frame(individual=paste("Mister",seq(1,60),sep=""),value=sample(seq(10,100),60,replace=T)) df$id <- seq(1,nrow(df)) library(ggplot2) #简易柱形图 p<-ggplot(df,aes(x=as.fa...
\name{showOneDMR} \alias{showOneDMR} \title{ Visualze the count data for one DMR } \description{ Given one DMR and an BSseq object, this function generate a multiple panel figure, each for a sample, to visualze the counts. There is a bar at each CpG, the gray bar shows the total coverage, and the black bar sh...
/man/showOneDMR.Rd
no_license
hmyh1202/DSS
R
false
false
1,345
rd
\name{showOneDMR} \alias{showOneDMR} \title{ Visualze the count data for one DMR } \description{ Given one DMR and an BSseq object, this function generate a multiple panel figure, each for a sample, to visualze the counts. There is a bar at each CpG, the gray bar shows the total coverage, and the black bar sh...
setwd("~/projects/data-pipelines/scripts/indicators/cyclones") source("~/projects/data-pipelines/setup/ckan.R") source("~/projects/data-pipelines/scripts/ckan_secret.R") library(dplyr) library(rworldmap) library(ggplot2) #install.packages("gridExtra") library(gridExtra) library(plyr) csv_rid <- "8abacf5a-adbe-4754-9b...
/scripts/indicators/cyclones/cyclone_data_manipulation.R
permissive
dbca-wa/data-pipelines
R
false
false
1,979
r
setwd("~/projects/data-pipelines/scripts/indicators/cyclones") source("~/projects/data-pipelines/setup/ckan.R") source("~/projects/data-pipelines/scripts/ckan_secret.R") library(dplyr) library(rworldmap) library(ggplot2) #install.packages("gridExtra") library(gridExtra) library(plyr) csv_rid <- "8abacf5a-adbe-4754-9b...
#' Principal Component Analysis #' #' @description #' \code{pca} is used to build and explore a principal component analysis (PCA) model. #' #' @param x #' a numerical matrix with calibration data. #' @param ncomp #' maximum number of components to calculate. #' @param center #' logical, do mean centering of data or ...
/R/pca.R
no_license
xcjohn/mdatools
R
false
false
49,706
r
#' Principal Component Analysis #' #' @description #' \code{pca} is used to build and explore a principal component analysis (PCA) model. #' #' @param x #' a numerical matrix with calibration data. #' @param ncomp #' maximum number of components to calculate. #' @param center #' logical, do mean centering of data or ...
library(shiny) library(ggplot2) library(dplyr) # select columns to be used in the analysis diam <- diamonds[,c(1:4,7)] # Define server logic required to draw a plot shinyServer(function(input, output) { output$distPlot <- renderPlot({ # select diamonds depending of user input diam <- filter(diamonds...
/server.R
no_license
eichemberger/Shinny-app
R
false
false
1,718
r
library(shiny) library(ggplot2) library(dplyr) # select columns to be used in the analysis diam <- diamonds[,c(1:4,7)] # Define server logic required to draw a plot shinyServer(function(input, output) { output$distPlot <- renderPlot({ # select diamonds depending of user input diam <- filter(diamonds...