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
#' Read all Stock Synthesis input files for a model #' #' Read all the input files for a Stock Synthesis model into R as a list object. #' These files will be in a single directory on your machine, i.e., `dir`. #' Functionality comes from the `r4ss::SS_read*()` functions. #' This function simplifies the number of ...
/R/SS_read.R
no_license
cran/r4ss
R
false
false
3,148
r
#' Read all Stock Synthesis input files for a model #' #' Read all the input files for a Stock Synthesis model into R as a list object. #' These files will be in a single directory on your machine, i.e., `dir`. #' Functionality comes from the `r4ss::SS_read*()` functions. #' This function simplifies the number of ...
# HW7: relational data #' # In this exercise, we will walk you through a complete process of manipulating # relational data. We suggest the functions you can use to create the tibbles # and the plots, but you are free to use the methods you are the most comfortable with. # Make sure that the outputs look exactly like t...
/Lecture 7/hw7_relational3.R
no_license
Zijie-Xia/GR5206-Introduction-to-Data-Science
R
false
false
22,732
r
# HW7: relational data #' # In this exercise, we will walk you through a complete process of manipulating # relational data. We suggest the functions you can use to create the tibbles # and the plots, but you are free to use the methods you are the most comfortable with. # Make sure that the outputs look exactly like t...
rm(list=ls()) library(Rcpp) library(RcppArmadillo) library(mvnMix) library(mixtools) library(parallel) outfilename <- "mvn_size3.RData" sink_name <- "sim_mvn_size3.out" DGPset <- c(2:2) m <- 2 d <- 2 alphaset <- array(c(0.3,0.7), dim=c(2,1,2)) muset <- array(0,dim=c(2,2,2)) muset[,,1] <- matrix(c(-1,0,1,0),nrow=2,...
/experiments_old/sim_mvn_size3_ism.R
no_license
kshimotsu/mvnMix
R
false
false
2,229
r
rm(list=ls()) library(Rcpp) library(RcppArmadillo) library(mvnMix) library(mixtools) library(parallel) outfilename <- "mvn_size3.RData" sink_name <- "sim_mvn_size3.out" DGPset <- c(2:2) m <- 2 d <- 2 alphaset <- array(c(0.3,0.7), dim=c(2,1,2)) muset <- array(0,dim=c(2,2,2)) muset[,,1] <- matrix(c(-1,0,1,0),nrow=2,...
library(Lahman) # MLB data 패키지 library(dplyr) # library(corrplot) library(ggplot2) # MLB모든 타자들 + 지표 AgingOpsBatPBPlus View(AgingOpsBatPBPlus) # 제외 대상 선수들 firePlayers # NY 18년도 선수중 제외대상 선수 View(firePlayers) class(firePlayers) # 16, 17, 18 시즌 선수들 selectedPlayers <- AgingOpsBatPBPlus %>% filter((yearID >= 2016 &...
/NY_Players_Detail.R
no_license
nbvc1003/R
R
false
false
1,008
r
library(Lahman) # MLB data 패키지 library(dplyr) # library(corrplot) library(ggplot2) # MLB모든 타자들 + 지표 AgingOpsBatPBPlus View(AgingOpsBatPBPlus) # 제외 대상 선수들 firePlayers # NY 18년도 선수중 제외대상 선수 View(firePlayers) class(firePlayers) # 16, 17, 18 시즌 선수들 selectedPlayers <- AgingOpsBatPBPlus %>% filter((yearID >= 2016 &...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Bootstrap.R \encoding{UTF-8} \name{Bootstrap} \alias{Bootstrap} \alias{Bootstrap.default} \alias{Bootstrap.model} \title{Method for Bootstrapping} \usage{ Bootstrap(x, ...) \method{Bootstrap}{default}(x, nboots = 30, FUN, ...) \method{Boots...
/man/Bootstrap.Rd
no_license
cran/SciencesPo
R
false
true
1,127
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Bootstrap.R \encoding{UTF-8} \name{Bootstrap} \alias{Bootstrap} \alias{Bootstrap.default} \alias{Bootstrap.model} \title{Method for Bootstrapping} \usage{ Bootstrap(x, ...) \method{Bootstrap}{default}(x, nboots = 30, FUN, ...) \method{Boots...
library(glmnet) mydata = read.table("./TrainingSet/ReliefF/soft_tissue.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.02,family="gaussian",standardize=FALSE) sink('./Model/EN/ReliefF/soft_tissue/soft_tissue_012...
/Model/EN/ReliefF/soft_tissue/soft_tissue_012.R
no_license
leon1003/QSMART
R
false
false
368
r
library(glmnet) mydata = read.table("./TrainingSet/ReliefF/soft_tissue.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.02,family="gaussian",standardize=FALSE) sink('./Model/EN/ReliefF/soft_tissue/soft_tissue_012...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/benchmarks.R \name{benchmark_similarity} \alias{benchmark_similarity} \title{Benchmarking similarity task} \usage{ benchmark_similarity(embedding_df) } \arguments{ \item{embedding_df}{The embedding dataframe} } \value{ Dataframe of relatednes...
/man/benchmark_similarity.Rd
permissive
beamandrew/cui2vec
R
false
true
804
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/benchmarks.R \name{benchmark_similarity} \alias{benchmark_similarity} \title{Benchmarking similarity task} \usage{ benchmark_similarity(embedding_df) } \arguments{ \item{embedding_df}{The embedding dataframe} } \value{ Dataframe of relatednes...
# Read in demuxlet object #setwd("/projects/ucar-lab/danaco/Ground") #name <- "CZI.Fourth.Run.RNA.ADT.UMAP.Ground.DF.optimized.10per.expect" # list of Seurat objects #fl <- list.files(pattern = "seurat.output.Rds") # extract file name df_outcleanpipe=function(file_name){ df.meta=read.csv(file_name) if (length(grep...
/R/df_outcleanpipe.R
no_license
UcarLab/bncmrk-dblts
R
false
false
1,369
r
# Read in demuxlet object #setwd("/projects/ucar-lab/danaco/Ground") #name <- "CZI.Fourth.Run.RNA.ADT.UMAP.Ground.DF.optimized.10per.expect" # list of Seurat objects #fl <- list.files(pattern = "seurat.output.Rds") # extract file name df_outcleanpipe=function(file_name){ df.meta=read.csv(file_name) if (length(grep...
install.packages("tidyverse") library(tidyverse) install.packages("shiny") library(shiny) install.packages("learnr") library(learnr)
/Scripts/Packages.R
no_license
sergiouribe/Introductory-Statistics-Labs
R
false
false
137
r
install.packages("tidyverse") library(tidyverse) install.packages("shiny") library(shiny) install.packages("learnr") library(learnr)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/IBS.mppData.R \name{IBS.mppData} \alias{IBS.mppData} \title{IBS coding for \code{mppData} objects} \usage{ IBS.mppData(mppData) } \arguments{ \item{mppData}{An object of class \code{mppData}. The \code{mppData} must have been proces...
/man/IBS.mppData.Rd
no_license
cran/mppR
R
false
true
1,378
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/IBS.mppData.R \name{IBS.mppData} \alias{IBS.mppData} \title{IBS coding for \code{mppData} objects} \usage{ IBS.mppData(mppData) } \arguments{ \item{mppData}{An object of class \code{mppData}. The \code{mppData} must have been proces...
n.cmh.Lachin<-function(power=0.8,alpha=0.05,eta1=0.5,pi1,pi2) { # Calculates sample size for the Cochran-Mantel-Haenszel test of a 2xJ dataset (2 groups, with J ordered categories) using the method of Lachin, Statistics in Medicine 30(2011):3057-66. # Sample sizes are calculated for two cases: (1) Assuming the scores...
/R/n.cmh.Lachin.R
no_license
shearer/samplesize
R
false
false
2,024
r
n.cmh.Lachin<-function(power=0.8,alpha=0.05,eta1=0.5,pi1,pi2) { # Calculates sample size for the Cochran-Mantel-Haenszel test of a 2xJ dataset (2 groups, with J ordered categories) using the method of Lachin, Statistics in Medicine 30(2011):3057-66. # Sample sizes are calculated for two cases: (1) Assuming the scores...
################################################ setwd(dir = "~/research/gender_prediction/data") european_data = read.csv(file = "cleaned_european_data.csv", header = TRUE, sep = ",") setwd(dir = "~/research/gender_prediction/european_plots/") num_data_points = nrow(european_data) numerics = sapply(european_data, is....
/gender_prediction/R/european_distributions.R
no_license
yonashub/demographics_prediction
R
false
false
3,055
r
################################################ setwd(dir = "~/research/gender_prediction/data") european_data = read.csv(file = "cleaned_european_data.csv", header = TRUE, sep = ",") setwd(dir = "~/research/gender_prediction/european_plots/") num_data_points = nrow(european_data) numerics = sapply(european_data, is....
library(ape) testtree <- read.tree("3266_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="3266_0_unrooted.txt")
/codeml_files/newick_trees_processed/3266_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("3266_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="3266_0_unrooted.txt")
P1_2_Process <- function(weather.data, current.date){ # Write a function to calculate the individual sum info. find_levels <- function(data){ ave <- mean(as.numeric(data), na.rm=TRUE) std <- sd(data, na.rm=TRUE) max <- max(data, na.rm=TRUE) min <- min(data, na.rm=TRUE) return(round(c(ave, std...
/Cores/P1/P1_2.r
no_license
ringisme/PIWA
R
false
false
1,872
r
P1_2_Process <- function(weather.data, current.date){ # Write a function to calculate the individual sum info. find_levels <- function(data){ ave <- mean(as.numeric(data), na.rm=TRUE) std <- sd(data, na.rm=TRUE) max <- max(data, na.rm=TRUE) min <- min(data, na.rm=TRUE) return(round(c(ave, std...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/z_random_helpers.R \name{tally_missing} \alias{tally_missing} \title{Helper functions when creating get_all_missing()} \usage{ tally_missing(df, keys) } \arguments{ \item{df}{a data frame} \item{keys}{the joining keys} } \description{ Helper...
/man/tally_missing.Rd
permissive
stenhaug/combineR
R
false
true
393
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/z_random_helpers.R \name{tally_missing} \alias{tally_missing} \title{Helper functions when creating get_all_missing()} \usage{ tally_missing(df, keys) } \arguments{ \item{df}{a data frame} \item{keys}{the joining keys} } \description{ Helper...
library(ggplot2) library(ggpubr) library(gridExtra) combinedData<-read.table("Data/ggplotData_Spearman_ontology_randomized.txt",header=T,stringsAsFactors = F) combinedData$random.ontology[which(combinedData$random.ontology == "No")]<-"Original" combinedData$random.ontology[which(combinedData$random.ontology == "Yes")]...
/Figures/generateFigure2.R
permissive
Feigeliudan01/OntologyEval
R
false
false
2,815
r
library(ggplot2) library(ggpubr) library(gridExtra) combinedData<-read.table("Data/ggplotData_Spearman_ontology_randomized.txt",header=T,stringsAsFactors = F) combinedData$random.ontology[which(combinedData$random.ontology == "No")]<-"Original" combinedData$random.ontology[which(combinedData$random.ontology == "Yes")]...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/parquet.R \docType{class} \name{ParquetReaderProperties} \alias{ParquetReaderProperties} \title{ParquetReaderProperties class} \description{ This class holds settings to control how a Parquet file is read by \link{ParquetFileReader}. } \secti...
/deps/arrow-0.17.1/r/man/ParquetReaderProperties.Rd
permissive
snowflakedb/libsnowflakeclient
R
false
true
731
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/parquet.R \docType{class} \name{ParquetReaderProperties} \alias{ParquetReaderProperties} \title{ParquetReaderProperties class} \description{ This class holds settings to control how a Parquet file is read by \link{ParquetFileReader}. } \secti...
###3 ploting range model # housekeeping rm(list=ls()) options(stringsAsFactors = FALSE) options(mc.cores = parallel::detectCores()) # libraries library(shinystan) library(reshape2) library(rstan) library(rstanarm) library(dplyr) library(ggplot2) library(stringr) # Setting working directory. # Add in your own path i...
/analyses/ranges/quickplots_jointish.R
no_license
lizzieinvancouver/ospree
R
false
false
3,614
r
###3 ploting range model # housekeeping rm(list=ls()) options(stringsAsFactors = FALSE) options(mc.cores = parallel::detectCores()) # libraries library(shinystan) library(reshape2) library(rstan) library(rstanarm) library(dplyr) library(ggplot2) library(stringr) # Setting working directory. # Add in your own path i...
MockObject <- setClass("MockObject", contains = "DBIObject") MockDriver <- setClass("MockDriver", contains = "DBIDriver") MockConnection <- setClass("MockConnection", contains = "DBIConnection") MockResult <- setClass("MockResult", contains = "DBIResult")
/packrat/lib/x86_64-pc-linux-gnu/3.6.3/DBI/tests/testthat/helper-dummy.R
permissive
sdroldan/ColaboRando
R
false
false
255
r
MockObject <- setClass("MockObject", contains = "DBIObject") MockDriver <- setClass("MockDriver", contains = "DBIDriver") MockConnection <- setClass("MockConnection", contains = "DBIConnection") MockResult <- setClass("MockResult", contains = "DBIResult")
\name{planor2design} \alias{data2design} \alias{planor2design} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Convert matrix, data frame or object of class planordesign to object of class design } \description{ function to convert matrix, data frame or object of class planordesign to...
/man/planor2design.Rd
no_license
cran/DoE.base
R
false
false
2,393
rd
\name{planor2design} \alias{data2design} \alias{planor2design} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Convert matrix, data frame or object of class planordesign to object of class design } \description{ function to convert matrix, data frame or object of class planordesign to...
library(forecast) library(fpp) library(smooth) library(readxl) library(tseries) cocacola<-read_excel(file.choose()) # read the cocacola.xlsx data View(cocacola) # Converting data into time series object amts<-ts(cocacola$Sales,frequency = 4,start=c(42)) View(amts) # dividing entire data into training an...
/Exp_Smoothing_Cocacola.R
no_license
milindshende/Forecasting
R
false
false
5,742
r
library(forecast) library(fpp) library(smooth) library(readxl) library(tseries) cocacola<-read_excel(file.choose()) # read the cocacola.xlsx data View(cocacola) # Converting data into time series object amts<-ts(cocacola$Sales,frequency = 4,start=c(42)) View(amts) # dividing entire data into training an...
#' NOAA variable names and units. #' #' A dataset containing the variable names and units of data from NOAA made #' available through this package. #' #' @format A tibble with 7 rows and 3 variables: #' \describe{ #' \item{variable}{oceanographic variable} #' \item{unit}{variable unit} #' \item{citation}{citation...
/R/NOAA_data.R
permissive
MartinSchobben/oceanexplorer
R
false
false
424
r
#' NOAA variable names and units. #' #' A dataset containing the variable names and units of data from NOAA made #' available through this package. #' #' @format A tibble with 7 rows and 3 variables: #' \describe{ #' \item{variable}{oceanographic variable} #' \item{unit}{variable unit} #' \item{citation}{citation...
# Predict 401 Data Analysis Project 1 #---------------------------------------------------------------------------- # Part 1 Assessing normality # Appendix A #---------------------------------------------------------------------------- require(moments) # Set the seed for the random number generator so that ...
/da.R
no_license
dpaul004/codebank
R
false
false
6,636
r
# Predict 401 Data Analysis Project 1 #---------------------------------------------------------------------------- # Part 1 Assessing normality # Appendix A #---------------------------------------------------------------------------- require(moments) # Set the seed for the random number generator so that ...
library(insect) ### Name: replicate ### Title: Dereplicate and rereplicate sequence datasets. ### Aliases: replicate dereplicate rereplicate ### ** Examples data(whales) tmp <- dereplicate(whales) whales <- rereplicate(tmp)
/data/genthat_extracted_code/insect/examples/replicate.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
237
r
library(insect) ### Name: replicate ### Title: Dereplicate and rereplicate sequence datasets. ### Aliases: replicate dereplicate rereplicate ### ** Examples data(whales) tmp <- dereplicate(whales) whales <- rereplicate(tmp)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/importZikaData.R \name{reformatZikaData} \alias{reformatZikaData} \title{Reformat Zika Data} \usage{ reformatZikaData() } \value{ Output is a dataframe with columns for province, region, date, value, and value_type } \description{ Imports dat...
/man/reformatZikaData.Rd
no_license
smorsink1/ncov2019
R
false
true
488
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/importZikaData.R \name{reformatZikaData} \alias{reformatZikaData} \title{Reformat Zika Data} \usage{ reformatZikaData() } \value{ Output is a dataframe with columns for province, region, date, value, and value_type } \description{ Imports dat...
#' @title FUNCTION_TITLE #' @description FUNCTION_DESCRIPTION #' @param model_call PARAM_DESCRIPTION #' @param covariate_layers PARAM_DESCRIPTION #' @param constants PARAM_DESCRIPTION, Default: NULL #' @param indicator_family PARAM_DESCRIPTION, Default: 'binomial' #' @param centre_scale_df PARAM_DESCRIPTION, Default: N...
/mbg/mbg_core_code/mbg_central/LBDCore/R/predict_model_raster.R
no_license
The-Oxford-GBD-group/typhi_paratyphi_modelling_code
R
false
false
3,968
r
#' @title FUNCTION_TITLE #' @description FUNCTION_DESCRIPTION #' @param model_call PARAM_DESCRIPTION #' @param covariate_layers PARAM_DESCRIPTION #' @param constants PARAM_DESCRIPTION, Default: NULL #' @param indicator_family PARAM_DESCRIPTION, Default: 'binomial' #' @param centre_scale_df PARAM_DESCRIPTION, Default: N...
library(tidyverse) library(tidyquant) library(modelr) library(gridExtra) library(grid) inputFolder <- paste(getwd(), "R/Input", sep = "/") inputFile <- file.path(inputFolder, "household_power_consumption.txt") electric <- read_delim(inputFile, delim = ";", col_types = cols( ...
/plot4.R
no_license
ellenne/ExData_Plotting1
R
false
false
2,319
r
library(tidyverse) library(tidyquant) library(modelr) library(gridExtra) library(grid) inputFolder <- paste(getwd(), "R/Input", sep = "/") inputFile <- file.path(inputFolder, "household_power_consumption.txt") electric <- read_delim(inputFile, delim = ";", col_types = cols( ...
options(digits = 3) library(matrixStats) library(tidyverse) library(caret) library(dslabs) data(brca) x_centered <- sweep(brca$x, 2, colMeans(brca$x)) x_scaled <- sweep(x_centered, 2, colSds(brca$x), FUN = "/") set.seed(1, sample.kind = "Rounding") # if using R 3.6 or later test_index <- createDataPartition(brca...
/Part_3.r
no_license
rvazquezv/BC_Pred
R
false
false
1,135
r
options(digits = 3) library(matrixStats) library(tidyverse) library(caret) library(dslabs) data(brca) x_centered <- sweep(brca$x, 2, colMeans(brca$x)) x_scaled <- sweep(x_centered, 2, colSds(brca$x), FUN = "/") set.seed(1, sample.kind = "Rounding") # if using R 3.6 or later test_index <- createDataPartition(brca...
##' ##' ##' **Author: Livia Lombardi** ##' ##' **Description:** ##' ##' This module is designed to identify outliers values in the production domain. It has been designed thinking of a detection ##' right after the questionnaire upload. The routine includes the yield and off take rate re-calculation. The detection is...
/modules/production_outlier_official/production_outlier_official.R
no_license
SWS-Methodology/faoswsProduction
R
false
false
59,091
r
##' ##' ##' **Author: Livia Lombardi** ##' ##' **Description:** ##' ##' This module is designed to identify outliers values in the production domain. It has been designed thinking of a detection ##' right after the questionnaire upload. The routine includes the yield and off take rate re-calculation. The detection is...
library(readr) library(dplyr) library(purrr) library(ggplot2) violinPlot <- function(data, varx, vary, title, xlab, ylab, alpha=0.5, jitter=F) { if (jitter) { p <- ggplot(data=data, aes_string(x=varx, y=vary)) + geom_violin(show.legend = T) + geom_jitter(width=0.15, ...
/Chapter11/R/03-titanic-survive-class-analysis-in-r.R
permissive
ndarvishev/Extending-Power-BI-with-Python-and-R
R
false
false
7,367
r
library(readr) library(dplyr) library(purrr) library(ggplot2) violinPlot <- function(data, varx, vary, title, xlab, ylab, alpha=0.5, jitter=F) { if (jitter) { p <- ggplot(data=data, aes_string(x=varx, y=vary)) + geom_violin(show.legend = T) + geom_jitter(width=0.15, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/path.r \name{on_path} \alias{on_path} \title{Test if an object is on the path.} \usage{ on_path(...) } \arguments{ \item{...}{Strings indicating the executables to check for on the path.} } \description{ Test if an object is on the path. } \e...
/man/on_path.Rd
no_license
vsbuffalo/devtools
R
false
true
511
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/path.r \name{on_path} \alias{on_path} \title{Test if an object is on the path.} \usage{ on_path(...) } \arguments{ \item{...}{Strings indicating the executables to check for on the path.} } \description{ Test if an object is on the path. } \e...
#' @name ui_congregation_parameters #' @title Render the UI for changing congregation parameters #' #' @description Generates the UI for changing congregation parameters #' and populates it with the current values from the database. #' #' @param Congregation The Congregration data frame from the RV list #' #' @e...
/R/ui_congregation_parameters.R
permissive
nutterb/ldsmls
R
false
false
1,174
r
#' @name ui_congregation_parameters #' @title Render the UI for changing congregation parameters #' #' @description Generates the UI for changing congregation parameters #' and populates it with the current values from the database. #' #' @param Congregation The Congregration data frame from the RV list #' #' @e...
# Convenience function to combine string operations: (1) convert to lowercase; # (2) trim whitespace on both sides str_trim_lower <- function(str) { stringr::str_trim(stringr::str_to_lower(str)) } .unnest_synonyms <- function(cadsr_df, syn_field = "CDE_SHORT_NAME") { syn_field <- dplyr::sym(syn_field) ca...
/R/baseline_annotator.R
no_license
esotericglitch/metadata-automation-challenge
R
false
false
23,688
r
# Convenience function to combine string operations: (1) convert to lowercase; # (2) trim whitespace on both sides str_trim_lower <- function(str) { stringr::str_trim(stringr::str_to_lower(str)) } .unnest_synonyms <- function(cadsr_df, syn_field = "CDE_SHORT_NAME") { syn_field <- dplyr::sym(syn_field) ca...
function(input, output) { # You can access the values of the widget (as a vector) # with input$checkGroup, e.g. output$value <- renderPrint({ input$checkGroup }) }
/069-widget-check-group/server.R
permissive
rstudio/shiny-examples
R
false
false
172
r
function(input, output) { # You can access the values of the widget (as a vector) # with input$checkGroup, e.g. output$value <- renderPrint({ input$checkGroup }) }
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 LikelihoodCV <- function(S, Tob, TB, SigmaHat1, k, SigmaHat2, RestrictionMatrix, restrictions) { .Call('_svars_LikelihoodCV', PACKAGE = 'svars', S, Tob, TB, SigmaHat1, k, SigmaHat2, Restric...
/R/RcppExports.R
permissive
shizelong1985/svars
R
false
false
4,767
r
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 LikelihoodCV <- function(S, Tob, TB, SigmaHat1, k, SigmaHat2, RestrictionMatrix, restrictions) { .Call('_svars_LikelihoodCV', PACKAGE = 'svars', S, Tob, TB, SigmaHat1, k, SigmaHat2, Restric...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/filter.R \name{filter.evt} \alias{filter.evt} \title{Filter EVT particles with a generic filter function.} \usage{ filter.evt(evt, filter.func, ...) } \arguments{ \item{evt}{EVT data frame.} \item{filter.func}{Filtering function.} } \value{ ...
/man/filter.evt.Rd
no_license
strategist922/popcycle
R
false
true
637
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/filter.R \name{filter.evt} \alias{filter.evt} \title{Filter EVT particles with a generic filter function.} \usage{ filter.evt(evt, filter.func, ...) } \arguments{ \item{evt}{EVT data frame.} \item{filter.func}{Filtering function.} } \value{ ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/autoscaling_operations.R \name{autoscaling_update_auto_scaling_group} \alias{autoscaling_update_auto_scaling_group} \title{Updates the configuration for the specified Auto Scaling group} \usage{ autoscaling_update_auto_scaling_group(AutoScali...
/cran/paws.management/man/autoscaling_update_auto_scaling_group.Rd
permissive
johnnytommy/paws
R
false
true
10,194
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/autoscaling_operations.R \name{autoscaling_update_auto_scaling_group} \alias{autoscaling_update_auto_scaling_group} \title{Updates the configuration for the specified Auto Scaling group} \usage{ autoscaling_update_auto_scaling_group(AutoScali...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/precision_functions.R \name{APE} \alias{APE} \title{Average Percent Error (APE) Estimation} \usage{ APE(x) } \arguments{ \item{x}{Numeric vector of independent age determinations from a single fish.} } \value{ The APE of the vector of ages \c...
/man/APE.Rd
no_license
ballengerj/FishyR
R
false
true
1,231
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/precision_functions.R \name{APE} \alias{APE} \title{Average Percent Error (APE) Estimation} \usage{ APE(x) } \arguments{ \item{x}{Numeric vector of independent age determinations from a single fish.} } \value{ The APE of the vector of ages \c...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/biglm_mapper.R \name{unite_levels} \alias{unite_levels} \title{Get list, one element per variable, of union of levels of a set of variables in a set of files.} \usage{ unite_levels(file_list, factor_vars) } \arguments{ \item{file_list}{List o...
/man/unite_levels.Rd
no_license
gregobad/biglm-mapper
R
false
true
764
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/biglm_mapper.R \name{unite_levels} \alias{unite_levels} \title{Get list, one element per variable, of union of levels of a set of variables in a set of files.} \usage{ unite_levels(file_list, factor_vars) } \arguments{ \item{file_list}{List o...
#' Change, rearrange or consolidate the values of an existing/new variable. Inspired by RECODE command from SPSS. #' #' \code{recode} change, rearrange or consolidate the values of an existing #' variable based on conditions. Design of this function inspired by RECODE from #' SPSS. Sequence of recodings provided in t...
/R/if_val.R
no_license
zelihay/expss
R
false
false
21,814
r
#' Change, rearrange or consolidate the values of an existing/new variable. Inspired by RECODE command from SPSS. #' #' \code{recode} change, rearrange or consolidate the values of an existing #' variable based on conditions. Design of this function inspired by RECODE from #' SPSS. Sequence of recodings provided in t...
## Table for autotroph ExpNo load("./output/KruskalW/BMD_env.Rda") auto.BMD <- do.call(cbind, mget(ls(pattern=paste0("autotroph_ExpNo"), envir = BMD), envir = BMD)) names(auto.BMD) <- sub("[[:alpha:]]*_[[:alpha:]]*_", "", names(auto.BMD)) names(auto.B...
/Analysis/scripts/06_statAnalysis_KruskalW_table.R
no_license
the-Hull/Diss
R
false
false
1,543
r
## Table for autotroph ExpNo load("./output/KruskalW/BMD_env.Rda") auto.BMD <- do.call(cbind, mget(ls(pattern=paste0("autotroph_ExpNo"), envir = BMD), envir = BMD)) names(auto.BMD) <- sub("[[:alpha:]]*_[[:alpha:]]*_", "", names(auto.BMD)) names(auto.B...
# Exercise 1: Creating and Indexing Vectors # Create a vector `x` that has the values 10 through 20 in it (using the `:` operator) x <- c(10:20) # Create a vector `y` that has the values 21 through 30 in it (using the `seq` operator) y <- c(seq(21,30)) # Create a vector `z` by combining the vectors `x` and `y` z <- ...
/exercise-1/exercise.R
permissive
amaglio1/m7-vectors
R
false
false
772
r
# Exercise 1: Creating and Indexing Vectors # Create a vector `x` that has the values 10 through 20 in it (using the `:` operator) x <- c(10:20) # Create a vector `y` that has the values 21 through 30 in it (using the `seq` operator) y <- c(seq(21,30)) # Create a vector `z` by combining the vectors `x` and `y` z <- ...
# Functions for graphing with emIRT package # Robert Kubinec v0.2 6/7/2016 # Modified for use with Shiny require(ggplot2) require(reshape2) source("Ggplot2_theme.R") plot.emIRT <- function(x,rc_data=NULL,legis.names=NULL,parties=NULL, CI=TRUE,subset_name=NULL,hjust_top=1.5, ...
/ARP_shiny/emIRT_graph.R
no_license
saudiwin/ARP_Research
R
false
false
9,017
r
# Functions for graphing with emIRT package # Robert Kubinec v0.2 6/7/2016 # Modified for use with Shiny require(ggplot2) require(reshape2) source("Ggplot2_theme.R") plot.emIRT <- function(x,rc_data=NULL,legis.names=NULL,parties=NULL, CI=TRUE,subset_name=NULL,hjust_top=1.5, ...
# # Generalized met workflow # Functional for downloading NARR, converting to CF, Rechunk/Permuting, extracting and prep for SIPNET #--------------------------------------------------------------------------------------------------# # Load libraries library(PEcAn.all) library(PEcAn.data.atmosphere) library(RPostgreS...
/modules/data.atmosphere/inst/scripts/met.workflow.gen.R
permissive
ashiklom/pecan
R
false
false
3,200
r
# # Generalized met workflow # Functional for downloading NARR, converting to CF, Rechunk/Permuting, extracting and prep for SIPNET #--------------------------------------------------------------------------------------------------# # Load libraries library(PEcAn.all) library(PEcAn.data.atmosphere) library(RPostgreS...
#' Statistical power of soft-thresholding Fisher's p-value combination test under Gaussian mixture model. #' @param alpha - type-I error rate. #' @param n - dimension parameter, i.e. the number of input p-values. #' @param tau1 - truncation parameter=normalization parameter. tau1 > 0. #' @param eps - mixing paramet...
/R/power.soft.R
no_license
cran/TFisher
R
false
false
1,315
r
#' Statistical power of soft-thresholding Fisher's p-value combination test under Gaussian mixture model. #' @param alpha - type-I error rate. #' @param n - dimension parameter, i.e. the number of input p-values. #' @param tau1 - truncation parameter=normalization parameter. tau1 > 0. #' @param eps - mixing paramet...
#======== 워크샵 1 =========== ## t - 검정 # 세 종류 데이터 data1 <- c(30, -5, 55, -30, -20, 45) data2 <- c(12, 13, 12, 13, 12, 13) data3 <- c(30, -5, 55, -30, -20, 45, 30, -5, 55, -30, -20, 45) #t - 검정 t.test(data1, alternative = c("greater")) t.test(data2, alternative = c("greater")) t.test(data3, alternative =...
/R/08_28.R
no_license
sooooooon77/2020_NIA
R
false
false
9,943
r
#======== 워크샵 1 =========== ## t - 검정 # 세 종류 데이터 data1 <- c(30, -5, 55, -30, -20, 45) data2 <- c(12, 13, 12, 13, 12, 13) data3 <- c(30, -5, 55, -30, -20, 45, 30, -5, 55, -30, -20, 45) #t - 검정 t.test(data1, alternative = c("greater")) t.test(data2, alternative = c("greater")) t.test(data3, alternative =...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getKSJURL.r \name{getKSJURL} \alias{getKSJURL} \title{getKSJURL API} \usage{ getKSJURL(identifier, prefCode = NULL, meshCode = NULL, metroArea = NULL, fiscalyer = NULL, appId = "ksjapibeta1", lang = "J", dataformat = 1) } \arguments{ \item{...
/man/getKSJURL.Rd
no_license
winterwang/kokudosuuchi
R
false
true
1,328
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getKSJURL.r \name{getKSJURL} \alias{getKSJURL} \title{getKSJURL API} \usage{ getKSJURL(identifier, prefCode = NULL, meshCode = NULL, metroArea = NULL, fiscalyer = NULL, appId = "ksjapibeta1", lang = "J", dataformat = 1) } \arguments{ \item{...
# Gantt Chart of Moments gantt_moments <- function(range){ moments_with_pbp %>% filter(event.id %in% range) %>% group_by(event.id) %>% summarise(start_time = max(game_clock), end_time = min(game_clock)) %>% ggplot() + geom_segment(aes(x = start_time, xend = end_time, y = event....
/EDA.R
no_license
wilberforce116/NBATrackingData
R
false
false
820
r
# Gantt Chart of Moments gantt_moments <- function(range){ moments_with_pbp %>% filter(event.id %in% range) %>% group_by(event.id) %>% summarise(start_time = max(game_clock), end_time = min(game_clock)) %>% ggplot() + geom_segment(aes(x = start_time, xend = end_time, y = event....
#### T-test #### # 1. 정의 : 모집단의 표준편차가 알려지지 않았을 때 정규 분포의 모집단에서 모은 샘플의 평균값에 대한 가설 검정 방법 # 2. 목적 : 두 개의 집단이 같은지 다른지 비교하기 위해 사용 # Power Analysis : 적정한 표본의 갯수 산출 # cohen's d : 최소한의 표본 갯수 산출 library(plyr) library(foreign) library(dplyr) library(ggplot2) library(readxl) ky <- read.csv('../data/KY.csv', header = T) View(ky)...
/stat/2-Ttest.R
no_license
fls0216/R
R
false
false
7,197
r
#### T-test #### # 1. 정의 : 모집단의 표준편차가 알려지지 않았을 때 정규 분포의 모집단에서 모은 샘플의 평균값에 대한 가설 검정 방법 # 2. 목적 : 두 개의 집단이 같은지 다른지 비교하기 위해 사용 # Power Analysis : 적정한 표본의 갯수 산출 # cohen's d : 최소한의 표본 갯수 산출 library(plyr) library(foreign) library(dplyr) library(ggplot2) library(readxl) ky <- read.csv('../data/KY.csv', header = T) View(ky)...
a <- b <- c <- NA_real_ # An sequential future plan(sequential) f <- future({ a <- 7 b <- 3 c <- 2 a * b * c }) y <- value(f) print(y) str(list(a = a, b = b, c = c)) ## All NAs # A sequential future with lazy evaluation plan(sequential) f <- future({ a <- 7 b <- 3 c <- 2 a * b * c }, lazy = TRUE) y <...
/incl/plan.R
no_license
MINATILO/FUTURE
R
false
false
1,025
r
a <- b <- c <- NA_real_ # An sequential future plan(sequential) f <- future({ a <- 7 b <- 3 c <- 2 a * b * c }) y <- value(f) print(y) str(list(a = a, b = b, c = c)) ## All NAs # A sequential future with lazy evaluation plan(sequential) f <- future({ a <- 7 b <- 3 c <- 2 a * b * c }, lazy = TRUE) y <...
mybarplot <- function(dataframe, x_axis, y_axis, fill_factor) { {{dataframe}} %>% filter({{x_axis}} == c('1', '2','3','4','5'))%>% ggplot2::ggplot(.)+ geom_bar(mapping = aes(x= {{x_axis}}, fill = {{fill_factor}} ), stat = {{y_axis}}, ...
/Character_likeability_test.R
no_license
DrZanzibarman/MBE635_week9_HW
R
false
false
656
r
mybarplot <- function(dataframe, x_axis, y_axis, fill_factor) { {{dataframe}} %>% filter({{x_axis}} == c('1', '2','3','4','5'))%>% ggplot2::ggplot(.)+ geom_bar(mapping = aes(x= {{x_axis}}, fill = {{fill_factor}} ), stat = {{y_axis}}, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/qrt_pcr.R \name{rt.summary} \alias{rt.summary} \title{rt.summary} \usage{ rt.summary(data) } \description{ rt.summary }
/man/rt.summary.Rd
no_license
G-Thomson/gthor
R
false
true
198
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/qrt_pcr.R \name{rt.summary} \alias{rt.summary} \title{rt.summary} \usage{ rt.summary(data) } \description{ rt.summary }
\name{mutoss.models} \alias{fisher23.model} \alias{fisher22.model} \alias{twosamp.model} \alias{paired.model} \alias{onesamp.model} \alias{ftest.model} \title{Mutoss Models} \description{Fisher-type (2x3) table as model for marginal hypotheses testing problems, Fisher (2x2) table as model for marginal hypotheses testin...
/pkg/mutoss/man/mutoss.models.Rd
no_license
kornl/mutoss
R
false
false
393
rd
\name{mutoss.models} \alias{fisher23.model} \alias{fisher22.model} \alias{twosamp.model} \alias{paired.model} \alias{onesamp.model} \alias{ftest.model} \title{Mutoss Models} \description{Fisher-type (2x3) table as model for marginal hypotheses testing problems, Fisher (2x2) table as model for marginal hypotheses testin...
gamEst <- function(X1, x1, y1, v1){ tmp <- lsfit(X1, y1, wt = 1/v1, intercept = FALSE) beta1 <- lsfit(log(x1), log(tmp$residuals^2))$coef g1 <- beta1["X"] g1 }
/R/gamEst.R
no_license
cran/PracTools
R
false
false
182
r
gamEst <- function(X1, x1, y1, v1){ tmp <- lsfit(X1, y1, wt = 1/v1, intercept = FALSE) beta1 <- lsfit(log(x1), log(tmp$residuals^2))$coef g1 <- beta1["X"] g1 }
# test path & pause clustering # this is a draft script created while coding. library(dplyr) library(leaflet) library(ggplot2) data<- readRDS("/Users/boazsobrado/Desktop/Academic/Utrecht/year2/thesisFiles/data/boaz/myLocationHistory09012018.rds") home<- c(5.113919,52.10421) #extract measurements within 300 km from h...
/PPMI/scripts/testBinning.R
no_license
sobradob/thesis
R
false
false
6,654
r
# test path & pause clustering # this is a draft script created while coding. library(dplyr) library(leaflet) library(ggplot2) data<- readRDS("/Users/boazsobrado/Desktop/Academic/Utrecht/year2/thesisFiles/data/boaz/myLocationHistory09012018.rds") home<- c(5.113919,52.10421) #extract measurements within 300 km from h...
% Generated by roxygen2 (4.0.1): do not edit by hand \name{sample_missing_symptom_start_end_dates} \alias{sample_missing_symptom_start_end_dates} \title{Sample missing and warning symptom start/end dates} \usage{ sample_missing_symptom_start_end_dates(flunet, symptom_duration, time_to_report = NULL, sample_warning_st...
/man/sample_missing_symptom_start_end_dates.Rd
no_license
ntncmch/influenzanet
R
false
false
2,526
rd
% Generated by roxygen2 (4.0.1): do not edit by hand \name{sample_missing_symptom_start_end_dates} \alias{sample_missing_symptom_start_end_dates} \title{Sample missing and warning symptom start/end dates} \usage{ sample_missing_symptom_start_end_dates(flunet, symptom_duration, time_to_report = NULL, sample_warning_st...
testlist <- list(score = NULL, id = NULL, item_score = integer(0), person_id = c(50007808L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L)) result <- do.call(dexterMST:::im_booklet_score,testlist) str(result)
/dexterMST/inst/testfiles/im_booklet_score/AFL_im_booklet_score/im_booklet_score_valgrind_files/1615945574-test.R
no_license
akhikolla/updatedatatype-list1
R
false
false
243
r
testlist <- list(score = NULL, id = NULL, item_score = integer(0), person_id = c(50007808L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L)) result <- do.call(dexterMST:::im_booklet_score,testlist) str(result)
# main script # # # rm(list = ls()) past_cl <- NA JDstart <- 9 # what week to start on JDend <- 35 # what week to end on years <- 1998:2017 C <- c() S <- c() require("fpc") require("fields") #setwd("C:/Users/Ade/Documents/Bigelow/DINEOF-2018/Interannual-Data/") # folder with the scripts being used # ------------...
/R/run_all_data.R
no_license
a-arjona/REU-Bigelow2018
R
false
false
5,124
r
# main script # # # rm(list = ls()) past_cl <- NA JDstart <- 9 # what week to start on JDend <- 35 # what week to end on years <- 1998:2017 C <- c() S <- c() require("fpc") require("fields") #setwd("C:/Users/Ade/Documents/Bigelow/DINEOF-2018/Interannual-Data/") # folder with the scripts being used # ------------...
#' Get Triangle Transitivity of Sociomatrix #' #' @param m A frequency binary win-loss matrix #' @return Pt and t.tri #' @examples #' ttri(caribou) #' @importFrom igraph "graph.adjacency" #' @importFrom igraph "triad.census" #' @section Further details: #' Algorithm described in D. Shizuka and D. B. McDonald, 2012, #' ...
/ttri.R
no_license
jalapic/RPackage
R
false
false
965
r
#' Get Triangle Transitivity of Sociomatrix #' #' @param m A frequency binary win-loss matrix #' @return Pt and t.tri #' @examples #' ttri(caribou) #' @importFrom igraph "graph.adjacency" #' @importFrom igraph "triad.census" #' @section Further details: #' Algorithm described in D. Shizuka and D. B. McDonald, 2012, #' ...
% Generated by roxygen2 (4.0.2): do not edit by hand \name{showshinyalert} \alias{showshinyalert} \title{showshinyalert} \usage{ showshinyalert(session, id, HTMLtext, styleclass = "success") } \arguments{ \item{id}{Specifies the alert id that will be used to access the} \item{HTMLtext}{The HTML you want displayed in t...
/man/showshinyalert.Rd
permissive
edwinacu/ShinySky
R
false
false
734
rd
% Generated by roxygen2 (4.0.2): do not edit by hand \name{showshinyalert} \alias{showshinyalert} \title{showshinyalert} \usage{ showshinyalert(session, id, HTMLtext, styleclass = "success") } \arguments{ \item{id}{Specifies the alert id that will be used to access the} \item{HTMLtext}{The HTML you want displayed in t...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/drive_objects.R \name{CommentReplyList} \alias{CommentReplyList} \title{CommentReplyList Object} \usage{ CommentReplyList(items = NULL, nextLink = NULL, nextPageToken = NULL, selfLink = NULL) } \arguments{ \item{items}{List of reply} \item...
/googledrivev2.auto/man/CommentReplyList.Rd
permissive
Phippsy/autoGoogleAPI
R
false
true
701
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/drive_objects.R \name{CommentReplyList} \alias{CommentReplyList} \title{CommentReplyList Object} \usage{ CommentReplyList(items = NULL, nextLink = NULL, nextPageToken = NULL, selfLink = NULL) } \arguments{ \item{items}{List of reply} \item...
#' Constrained Precision Matrix #' #' @description Compute the maximum likelihood estimate, given certain elements are constrained to zero #' (e.g., an adjacency matrix). This approach is described in \insertCite{hastie2009elements;textual}{IRCcheck}. #' #' @param Sigma Covariance matrix #' #' @param adj Matrix ...
/R/constrained.R
no_license
cran/IRCcheck
R
false
false
1,547
r
#' Constrained Precision Matrix #' #' @description Compute the maximum likelihood estimate, given certain elements are constrained to zero #' (e.g., an adjacency matrix). This approach is described in \insertCite{hastie2009elements;textual}{IRCcheck}. #' #' @param Sigma Covariance matrix #' #' @param adj Matrix ...
### ========================================================================= ### XStringViews objects ### ------------------------------------------------------------------------- ### ### The XStringViews class is the basic container for storing a set of views ### (start/end locations) on the same XString object, call...
/R/XStringViews-class.R
no_license
Bioconductor/Biostrings
R
false
false
16,389
r
### ========================================================================= ### XStringViews objects ### ------------------------------------------------------------------------- ### ### The XStringViews class is the basic container for storing a set of views ### (start/end locations) on the same XString object, call...
library(wooldridge) ### Name: inven ### Title: inven ### Aliases: inven ### Keywords: datasets ### ** Examples str(inven)
/data/genthat_extracted_code/wooldridge/examples/inven.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
130
r
library(wooldridge) ### Name: inven ### Title: inven ### Aliases: inven ### Keywords: datasets ### ** Examples str(inven)
# courseraassigment-2 R programming # Matrix inversion is usually a costly computation and there may be some benefit # to caching the inverse of a matrix rather than compute it repeatedly. The # following two functions are used to cache the inverse of a matrix. # makeCacheMatrix creates a list containing a function to...
/cachematrix.R
no_license
mishagverd/courseraassigment-2
R
false
false
1,295
r
# courseraassigment-2 R programming # Matrix inversion is usually a costly computation and there may be some benefit # to caching the inverse of a matrix rather than compute it repeatedly. The # following two functions are used to cache the inverse of a matrix. # makeCacheMatrix creates a list containing a function to...
setwd(dirname(rstudioapi::getActiveDocumentContext()$path)) if (!require("pacman")) install.packages("pacman"); library(pacman) p_load(stats, dplyr, psych, rstatix, readxl, car) #### Complex ANOVA slides #### #Change filepath to where your data is stored. df <- read_excel('data/ANOVA 3-way design.xlsx') df['id'] <- f...
/complex_anovas.R
no_license
silverer/PSYC-502-Code
R
false
false
3,817
r
setwd(dirname(rstudioapi::getActiveDocumentContext()$path)) if (!require("pacman")) install.packages("pacman"); library(pacman) p_load(stats, dplyr, psych, rstatix, readxl, car) #### Complex ANOVA slides #### #Change filepath to where your data is stored. df <- read_excel('data/ANOVA 3-way design.xlsx') df['id'] <- f...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/creation-ops.R, R/gen-namespace-docs.R, % R/gen-namespace-examples.R \name{torch_range} \alias{torch_range} \title{Range} \usage{ torch_range( start, end, step = 1, dtype = NULL, layout = NULL, device = NULL, requires_grad = F...
/man/torch_range.Rd
permissive
mlverse/torch
R
false
true
2,305
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/creation-ops.R, R/gen-namespace-docs.R, % R/gen-namespace-examples.R \name{torch_range} \alias{torch_range} \title{Range} \usage{ torch_range( start, end, step = 1, dtype = NULL, layout = NULL, device = NULL, requires_grad = F...
library(lcars) library(trekcolors) library(ggplot2) logo <- grid::rasterGrob(png::readPNG(system.file("stlogo-white.png", package = "lcars"))) clrs <- c("#FF3030", "#FFFF33", "#20B2AA") g <- ggplot(iris, aes(Sepal.Length, Sepal.Width, color = Species)) + geom_point() + rtrek::theme_rtrek_dark() + theme(plot.backg...
/data-raw/examples.R
permissive
CyberSys/lcars-1
R
false
false
2,107
r
library(lcars) library(trekcolors) library(ggplot2) logo <- grid::rasterGrob(png::readPNG(system.file("stlogo-white.png", package = "lcars"))) clrs <- c("#FF3030", "#FFFF33", "#20B2AA") g <- ggplot(iris, aes(Sepal.Length, Sepal.Width, color = Species)) + geom_point() + rtrek::theme_rtrek_dark() + theme(plot.backg...
source("clean.R") fd = read.table("~/data/pems/fdclean.tsv", header = TRUE)
/analysis/pems/hadoop/eda2.R
no_license
clarkfitzg/phd_research
R
false
false
79
r
source("clean.R") fd = read.table("~/data/pems/fdclean.tsv", header = TRUE)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/deprecated.R \name{loadExample} \alias{loadExample} \title{Deprecated alias to \code{\link{load_example}}.} \usage{ loadExample(...) } \arguments{ \item{...}{Arguments passed to \code{\link{load_example}}.} } \description{ Deprecated alias to...
/man/loadExample.Rd
no_license
stephens999/dscr
R
false
true
351
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/deprecated.R \name{loadExample} \alias{loadExample} \title{Deprecated alias to \code{\link{load_example}}.} \usage{ loadExample(...) } \arguments{ \item{...}{Arguments passed to \code{\link{load_example}}.} } \description{ Deprecated alias to...
#### ESPN TRANSACTIONS #### #' Get full transactions table #' #' @param conn the list object created by `ff_connect()` #' @param limit number of most recent transactions to return #' @param ... additional args #' #' @describeIn ff_transactions ESPN: returns adds, drops, and trades. Requires private/auth-cookie. #' #' ...
/R/espn_transactions.R
permissive
jfontestad/ffscrapr
R
false
false
3,936
r
#### ESPN TRANSACTIONS #### #' Get full transactions table #' #' @param conn the list object created by `ff_connect()` #' @param limit number of most recent transactions to return #' @param ... additional args #' #' @describeIn ff_transactions ESPN: returns adds, drops, and trades. Requires private/auth-cookie. #' #' ...
library('ProjectTemplate') load.project() load('data/TRANSFAC_Genes_2014.Rda') TF2Gene <- sapply(TF2Gene,intersect, row.names(CoGAPS_SDFIVE_3$Amean)) set.seed(1234) Elk1Stats <- calcCoGAPSStat(CoGAPS_SDFIVE_3$Amean,CoGAPS_SDFIVE_3$Asd,TF2Gene['Elk-1']) pdf('graphs/Elk1Targets_Pattern2.pdf',width=3...
/src/Elk1Analysis.R
no_license
anu-bioinfo/EGFRFeedback
R
false
false
1,329
r
library('ProjectTemplate') load.project() load('data/TRANSFAC_Genes_2014.Rda') TF2Gene <- sapply(TF2Gene,intersect, row.names(CoGAPS_SDFIVE_3$Amean)) set.seed(1234) Elk1Stats <- calcCoGAPSStat(CoGAPS_SDFIVE_3$Amean,CoGAPS_SDFIVE_3$Asd,TF2Gene['Elk-1']) pdf('graphs/Elk1Targets_Pattern2.pdf',width=3...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/overwrite_column.R \name{overwrite_column} \alias{overwrite_column} \title{Overwrite a column in a data.frame based on a matching column in another df} \usage{ overwrite_column(olddf, newdf, cols, bycol = "well") } \description{ Overw...
/man/overwrite_column.Rd
no_license
chettr/rsalad
R
false
false
394
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/overwrite_column.R \name{overwrite_column} \alias{overwrite_column} \title{Overwrite a column in a data.frame based on a matching column in another df} \usage{ overwrite_column(olddf, newdf, cols, bycol = "well") } \description{ Overw...
#install.packages('tidyverse') #install.packages('gapminder') library('gapminder') library('tidyverse') gapminder %>% filter(country == "China") %>% ggplot + aes(x = year, y = log(pop)) + geom_point() + geom_line() -> test_graph test_graph
/rstest_2.R
no_license
anarinsk/test_rscloud
R
false
false
280
r
#install.packages('tidyverse') #install.packages('gapminder') library('gapminder') library('tidyverse') gapminder %>% filter(country == "China") %>% ggplot + aes(x = year, y = log(pop)) + geom_point() + geom_line() -> test_graph test_graph
# FONCTION MODELE 2 # Ratio des posteriors des parametres NormPosterior_LogMod<-function(beta1,beta2){ return(prod(exp(-1/2*beta1^2)/exp(-1/2*beta2^2))) }
/Final Project/estimation/NormPosterior_LogMod.R
no_license
benrobaglia/bayesian-statistics-ensae
R
false
false
161
r
# FONCTION MODELE 2 # Ratio des posteriors des parametres NormPosterior_LogMod<-function(beta1,beta2){ return(prod(exp(-1/2*beta1^2)/exp(-1/2*beta2^2))) }
## Bishop - Data ## Bishop - VMatrix PasSkills <- c("AngelRay", "HeavensDoor", "Bahamut", "Bigbang", "Genesis") PasLvs <- c(50, 50, 50, 50, 25) PasMP <- c(10, 10, 10, 10, 5) ActSkills <- c("Pray", "AngelofLibra", "PeaceMaker", "DivinePunishment", "OverloadMana", "EtherealForm", "UnstableMemorize", "Mapl...
/Bishop.R
no_license
icepeng/Maplestory_DPM
R
false
false
47,742
r
## Bishop - Data ## Bishop - VMatrix PasSkills <- c("AngelRay", "HeavensDoor", "Bahamut", "Bigbang", "Genesis") PasLvs <- c(50, 50, 50, 50, 25) PasMP <- c(10, 10, 10, 10, 5) ActSkills <- c("Pray", "AngelofLibra", "PeaceMaker", "DivinePunishment", "OverloadMana", "EtherealForm", "UnstableMemorize", "Mapl...
library(tidyverse) df <- read_csv('../output/aclew_sample_optim.csv') df$mated <- recode(df$std_mat_ed, unknown='05_unknown', bhs='04_bhs', hs='03_hs', sc='02_sc', cd='01_cd', ad='00_ad') mated <- ggplot(df, aes(x=age_mo_round)) + geom_histogram(aes(fill=mated), binwidth=1) mated ggsave("sample_mat...
/analysis/distribution.R
no_license
BergelsonLab/aclewsample
R
false
false
1,261
r
library(tidyverse) df <- read_csv('../output/aclew_sample_optim.csv') df$mated <- recode(df$std_mat_ed, unknown='05_unknown', bhs='04_bhs', hs='03_hs', sc='02_sc', cd='01_cd', ad='00_ad') mated <- ggplot(df, aes(x=age_mo_round)) + geom_histogram(aes(fill=mated), binwidth=1) mated ggsave("sample_mat...
#----------------------------------------------------------------------------- base_url <- "http://deq1.bse.vt.edu/d.dh/" #Set location of "getProperty.R" function path <- "/usr/local/home/git/r-dh-ecohydro/Analysis/fn_vahydro-2.0/"; source(paste(path,"rest_functions.R", sep = "")) #User input required to retrieve ...
/Analysis/fn_vahydro-2.0/example_getFeature.R
no_license
tylerkeys/r-dh-ecohydro
R
false
false
707
r
#----------------------------------------------------------------------------- base_url <- "http://deq1.bse.vt.edu/d.dh/" #Set location of "getProperty.R" function path <- "/usr/local/home/git/r-dh-ecohydro/Analysis/fn_vahydro-2.0/"; source(paste(path,"rest_functions.R", sep = "")) #User input required to retrieve ...
# Generated by using data-raw/codegen.R -> do not edit by hand test_SET_STRING_ELT <- function(s) { invisible(.Call(`_arrow_test_SET_STRING_ELT`, s)) } is_arrow_altrep <- function(x) { .Call(`_arrow_is_arrow_altrep`, x) } Array__Slice1 <- function(array, offset) { .Call(`_arrow_Array__Slice1`, array, offset) }...
/r/R/arrowExports.R
permissive
karldw/arrow
R
false
false
57,799
r
# Generated by using data-raw/codegen.R -> do not edit by hand test_SET_STRING_ELT <- function(s) { invisible(.Call(`_arrow_test_SET_STRING_ELT`, s)) } is_arrow_altrep <- function(x) { .Call(`_arrow_is_arrow_altrep`, x) } Array__Slice1 <- function(array, offset) { .Call(`_arrow_Array__Slice1`, array, offset) }...
# Install packages (if necessary) list.of.packages <- c("devtools", "datasets", "shiny") new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])] if(length(new.packages)) install.packages(new.packages) library(devtools) library(datasets) library(shiny) list.of.packages <- c("Caus...
/server.R
no_license
sspitz14/data_prod_proj
R
false
false
3,076
r
# Install packages (if necessary) list.of.packages <- c("devtools", "datasets", "shiny") new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])] if(length(new.packages)) install.packages(new.packages) library(devtools) library(datasets) library(shiny) list.of.packages <- c("Caus...
testlist <- list(b = c(-251658228L, 50401024L, 17104896L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L)) result <- do.call(mcga:::ByteVectorToDoubles,testlist) str(result)
/mcga/inst/testfiles/ByteVectorToDoubles/AFL_ByteVectorToDoubles/ByteVectorToDoubles_valgrind_files/1613101142-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
194
r
testlist <- list(b = c(-251658228L, 50401024L, 17104896L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L)) result <- do.call(mcga:::ByteVectorToDoubles,testlist) str(result)
#' Add quantile lines from a quantile regression. #' #' This can be used as a continuous analogue of a geom_boxplot. #' #' @section Aesthetics: #' \Sexpr[results=rd,stage=build]{ggplot2:::rd_aesthetics("geom", "quantile")} #' #' @export #' @inheritParams geom_point #' @inheritParams geom_path #' @param method.args List...
/R/geom-quantile.r
no_license
pricky2903/ggplot2
R
false
false
1,861
r
#' Add quantile lines from a quantile regression. #' #' This can be used as a continuous analogue of a geom_boxplot. #' #' @section Aesthetics: #' \Sexpr[results=rd,stage=build]{ggplot2:::rd_aesthetics("geom", "quantile")} #' #' @export #' @inheritParams geom_point #' @inheritParams geom_path #' @param method.args List...
# Utility function used by both rankhospital.R and best.R ## Read outcome data order_hospital <- function(state, outcome) { outcomes <- read.csv("outcome-of-care-measures.csv", colClasses = "character") ## Check that state and outcome are valid cName <- "Hospital.30.Day.Death..Mortality..Rates.from." ...
/RProgramming/ProgrammingAssignment3/rankhospital.R
permissive
jjtt8080/datasciencecoursera
R
false
false
1,797
r
# Utility function used by both rankhospital.R and best.R ## Read outcome data order_hospital <- function(state, outcome) { outcomes <- read.csv("outcome-of-care-measures.csv", colClasses = "character") ## Check that state and outcome are valid cName <- "Hospital.30.Day.Death..Mortality..Rates.from." ...
# Building a Prod-Ready, Robust Shiny Application. # # README: each step of the dev files is optional, and you don't have to # fill every dev scripts before getting started. # 01_start.R should be filled at start. # 02_dev.R should be used to keep track of your development during the project. # 03_deploy.R should b...
/safer_streets_priority_finder/dev/02_dev.R
permissive
dflynn-volpe/Safer-Streets-Priority-Finder
R
false
false
3,624
r
# Building a Prod-Ready, Robust Shiny Application. # # README: each step of the dev files is optional, and you don't have to # fill every dev scripts before getting started. # 01_start.R should be filled at start. # 02_dev.R should be used to keep track of your development during the project. # 03_deploy.R should b...
#' @export #' @import ggplot2 #' @param results A data frame with three columns: the first column contains the names of the enriqued pathways, the second column the number of genes and the third column # specifies DOWN or UP. #' @examples #' barplot.KEGG(results) barplot.KEGG <- function (results){ result...
/R/barplotKEGG.R
no_license
ferperezv/KEGGIdeaMex
R
false
false
747
r
#' @export #' @import ggplot2 #' @param results A data frame with three columns: the first column contains the names of the enriqued pathways, the second column the number of genes and the third column # specifies DOWN or UP. #' @examples #' barplot.KEGG(results) barplot.KEGG <- function (results){ result...
rm(list = ls()) library(dplyr) library(clusterProfiler) library(org.Hs.eg.db) library(stringr) library(htmlTable) library(gridExtra) library(ggplot2) library(grid) ## change 'sm' variable to the content of one of the following files ## sought upregulation of three YAP/TAZ targets : result_UPTAG_summly_n7503_upregula...
/code/GSEA_Plots.R
permissive
elifesciences-publications/2016_rohban_submitted
R
false
false
2,647
r
rm(list = ls()) library(dplyr) library(clusterProfiler) library(org.Hs.eg.db) library(stringr) library(htmlTable) library(gridExtra) library(ggplot2) library(grid) ## change 'sm' variable to the content of one of the following files ## sought upregulation of three YAP/TAZ targets : result_UPTAG_summly_n7503_upregula...
#[export] colQuantile<-function(x,probs,parallel=FALSE){ .Call(Rfast2_col_Quantile,x,probs,parallel) }
/fuzzedpackages/Rfast2/R/colQuantile.R
no_license
akhikolla/testpackages
R
false
false
108
r
#[export] colQuantile<-function(x,probs,parallel=FALSE){ .Call(Rfast2_col_Quantile,x,probs,parallel) }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/FlightPerformance.R \name{FlightPerformance} \alias{FlightPerformance} \title{Compute flight performance parameters} \usage{ FlightPerformance(BirdMorphParam, FlightSpeedComponents, TrueAirSpeed1, TrueAirSpeed2, C_l, C_t) } \arguments{ \ite...
/man/FlightPerformance.Rd
no_license
Josephine-Tetteh/FlightSim-updates
R
false
true
2,220
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/FlightPerformance.R \name{FlightPerformance} \alias{FlightPerformance} \title{Compute flight performance parameters} \usage{ FlightPerformance(BirdMorphParam, FlightSpeedComponents, TrueAirSpeed1, TrueAirSpeed2, C_l, C_t) } \arguments{ \ite...
library(BivarP) ### Name: BiVarEst ### Title: Estimation of the parameters of the bivariate distribution ### function of the Archimedean copula family. ### Aliases: BiVarEst ### Keywords: ~kwd1 ~kwd2 ### ** Examples rodinka <- c("weibull", "norm") kopule <- "frank" xweib <- c(1.75, 145, 1.30, 80, 3.5) BcG <- BiCo...
/data/genthat_extracted_code/BivarP/examples/BiVarEst.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
988
r
library(BivarP) ### Name: BiVarEst ### Title: Estimation of the parameters of the bivariate distribution ### function of the Archimedean copula family. ### Aliases: BiVarEst ### Keywords: ~kwd1 ~kwd2 ### ** Examples rodinka <- c("weibull", "norm") kopule <- "frank" xweib <- c(1.75, 145, 1.30, 80, 3.5) BcG <- BiCo...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.firehose_operations.R \name{untag_delivery_stream} \alias{untag_delivery_stream} \title{Removes tags from the specified delivery stream} \usage{ untag_delivery_stream(DeliveryStreamName, TagKeys) } \arguments{ \item{DeliveryStreamName}{[...
/service/paws.firehose/man/untag_delivery_stream.Rd
permissive
CR-Mercado/paws
R
false
true
932
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.firehose_operations.R \name{untag_delivery_stream} \alias{untag_delivery_stream} \title{Removes tags from the specified delivery stream} \usage{ untag_delivery_stream(DeliveryStreamName, TagKeys) } \arguments{ \item{DeliveryStreamName}{[...
# Read RDS files NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") # Extract Baltimore City(fips = 24510) emissions Baltimore <- subset(NEI, fips=="24510") # Total emissions in the Baltimore City in 1999, 2002, 2005, 2005 totalEmi_Baltimore = aggregate(Emissions ~ year, data=Balti...
/plot2.R
no_license
suresh88/ExData_Plotting2
R
false
false
620
r
# Read RDS files NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") # Extract Baltimore City(fips = 24510) emissions Baltimore <- subset(NEI, fips=="24510") # Total emissions in the Baltimore City in 1999, 2002, 2005, 2005 totalEmi_Baltimore = aggregate(Emissions ~ year, data=Balti...
# Building a Prod-Ready, Robust Shiny Application. # # README: each step of the dev files is optional, and you don't have to # fill every dev scripts before getting started. # 01_start.R should be filled at start. # 02_dev.R should be used to keep track of your development during the project. # 03_deploy.R should be us...
/dev/02_dev.R
permissive
IsabellyPassos/econdashboard
R
false
false
1,527
r
# Building a Prod-Ready, Robust Shiny Application. # # README: each step of the dev files is optional, and you don't have to # fill every dev scripts before getting started. # 01_start.R should be filled at start. # 02_dev.R should be used to keep track of your development during the project. # 03_deploy.R should be us...
library(tidyverse) library(magrittr) data(iris) iris names(iris) iris$Species iris[2,4] iris[2, ] iris %>% group_by(Species) %>% summarize() iris %>% summarize(mean(Sepal.Length), max(Sepal.Length), min(Sepal.Width)) iris %>% group_by(Species) %>% summarize(mean(Sepal.Leng...
/code/work_with_tables.R
no_license
OlgaSigalova/broad_and_narrow
R
false
false
814
r
library(tidyverse) library(magrittr) data(iris) iris names(iris) iris$Species iris[2,4] iris[2, ] iris %>% group_by(Species) %>% summarize() iris %>% summarize(mean(Sepal.Length), max(Sepal.Length), min(Sepal.Width)) iris %>% group_by(Species) %>% summarize(mean(Sepal.Leng...
# Fixtures fixtures <- list() fixtures$retrieve_lint <- function() { file_name <- "R/test.R" lines <- c("foobar1", "foobar2", "foobar3") lints <- list( Lint(file_name, 1, line = "foobar1"), Lint(file_name, 2, line = "foobar2"), Lint(file_name, 3, line = "foobar3") ) expr <- list(content = paste(...
/tests/testthat/test-cache.R
permissive
jonkeane/lintr
R
false
false
12,398
r
# Fixtures fixtures <- list() fixtures$retrieve_lint <- function() { file_name <- "R/test.R" lines <- c("foobar1", "foobar2", "foobar3") lints <- list( Lint(file_name, 1, line = "foobar1"), Lint(file_name, 2, line = "foobar2"), Lint(file_name, 3, line = "foobar3") ) expr <- list(content = paste(...
.L = read.table("etiquetas balanzas.txt", header=FALSE, sep='\t', quote="", row.names=1, colClasses=rep("character", 3)) library(shiny) library(png) path = '.' z = readPNG(paste0(path, "/851pumpkin_normal.png")) z2 = readPNG(paste0(path, "/851pumpkin_claro.png")) # Define server logic for slider examples shi...
/balanzas/server.R
no_license
joseanglez/Shinyapps
R
false
false
4,914
r
.L = read.table("etiquetas balanzas.txt", header=FALSE, sep='\t', quote="", row.names=1, colClasses=rep("character", 3)) library(shiny) library(png) path = '.' z = readPNG(paste0(path, "/851pumpkin_normal.png")) z2 = readPNG(paste0(path, "/851pumpkin_claro.png")) # Define server logic for slider examples shi...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.32784507357645e-308, 9.53818252170339e+295, 1.22810624487441e+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_beta/AFL_communities_individual_based_sampling_beta/communities_individual_based_sampling_beta_valgrind_files/1615832395-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
362
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.32784507357645e-308, 9.53818252170339e+295, 1.22810624487441e+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...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/momentum_routines.R \name{gene.relative.velocity.estimates} \alias{gene.relative.velocity.estimates} \title{Estimate RNA velocity using gene-relative slopes} \usage{ gene.relative.velocity.estimates( emat, nmat, deltaT = 1, smat = NUL...
/man/gene.relative.velocity.estimates.Rd
no_license
standardgalactic/nlvelo
R
false
true
4,749
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/momentum_routines.R \name{gene.relative.velocity.estimates} \alias{gene.relative.velocity.estimates} \title{Estimate RNA velocity using gene-relative slopes} \usage{ gene.relative.velocity.estimates( emat, nmat, deltaT = 1, smat = NUL...
with(a01c413e8919a451598c8b58968439b19, {ROOT <- 'D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/db/Atadata2__3b3e4a3b-d382-4e98-9950-9b4e8b308c1c/version/1c4fa71c-191c-4da9-8102-b247ffddc5d3';options(digits.secs=NULL);FRAME481253[,(c('DATA_COLLECTION_TIME')) := lapply(.SD, function(x) as.POSIXct(fast_strptime(x, fo...
/1c4fa71c-191c-4da9-8102-b247ffddc5d3/R/Temp/anBGXTgmvuH63.R
no_license
ayanmanna8/test
R
false
false
388
r
with(a01c413e8919a451598c8b58968439b19, {ROOT <- 'D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/db/Atadata2__3b3e4a3b-d382-4e98-9950-9b4e8b308c1c/version/1c4fa71c-191c-4da9-8102-b247ffddc5d3';options(digits.secs=NULL);FRAME481253[,(c('DATA_COLLECTION_TIME')) := lapply(.SD, function(x) as.POSIXct(fast_strptime(x, fo...
library(dplyr) library(lubridate) library(stargazer) library(ggplot2) rm(list = ls()) setwd("~/Google Drive/research/training/data/") load("output/constructed_data/sample.Rda") # sample statistics data <- group_by(data, female) table1 <- data %>% summarise( observation = n(), mean_age_worked = mean(year...
/scripts/sample_statistics.R
no_license
guanghwang/training
R
false
false
7,006
r
library(dplyr) library(lubridate) library(stargazer) library(ggplot2) rm(list = ls()) setwd("~/Google Drive/research/training/data/") load("output/constructed_data/sample.Rda") # sample statistics data <- group_by(data, female) table1 <- data %>% summarise( observation = n(), mean_age_worked = mean(year...
# re-create taps_summary with counts by generation (to check that same number of taps for all) taps_summary_at <- taps_at_raw %>% filter(rejects == "n") %>% group_by(mode,type, seed, chain_name, filename, starter, id, sourceId, generation) %>% summarize(mean_tempo = mean(tap_int), ...
/2016-10-17_exp1_accessory_recreate_taps_at_summary.R
no_license
kimboluti/SR_tapping
R
false
false
1,017
r
# re-create taps_summary with counts by generation (to check that same number of taps for all) taps_summary_at <- taps_at_raw %>% filter(rejects == "n") %>% group_by(mode,type, seed, chain_name, filename, starter, id, sourceId, generation) %>% summarize(mean_tempo = mean(tap_int), ...