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
rm(list=ls()) library(dplyr) library(tidyr) library(data.table) library(ggplot2) library(grf) d = read.csv("/Users/kouyukihare/Desktop/design/hm4/test_data_1904.csv") ##################part a################# dt = data.table(d) dagg = dt[,.(open = mean(open), click=mean(click), purch = mean(purch),seOpen = sd(open)/...
/case 4.R
no_license
xueqinghou/causal-forest
R
false
false
4,811
r
rm(list=ls()) library(dplyr) library(tidyr) library(data.table) library(ggplot2) library(grf) d = read.csv("/Users/kouyukihare/Desktop/design/hm4/test_data_1904.csv") ##################part a################# dt = data.table(d) dagg = dt[,.(open = mean(open), click=mean(click), purch = mean(purch),seOpen = sd(open)/...
require('argparser') # Create a parser p=arg_parser("Run LOLA") # Add command line arguments p=add_argument(p, "--database", help="database", type="character", default="/ahg/regevdata/projects/Cell2CellCommunication/baf_perturbseq/results/2020-03-26/data/nm/t1/resources/regions/") p=add_argument(p, "--LOLAdir", hel...
/enrichment/LOLA/run_LOLA_basic.R
permissive
oursu-broad/genome_utils
R
false
false
1,808
r
require('argparser') # Create a parser p=arg_parser("Run LOLA") # Add command line arguments p=add_argument(p, "--database", help="database", type="character", default="/ahg/regevdata/projects/Cell2CellCommunication/baf_perturbseq/results/2020-03-26/data/nm/t1/resources/regions/") p=add_argument(p, "--LOLAdir", hel...
run_analysis <- function(){ cnames <- character() # read measurements and combine them train <- readTrainFiles() test <- readTestFiles() total <- rbind(test, train) # create index for mean and standard deviation measurements index <- msd_index() # subset to have only ...
/run_analysis.R
no_license
rishabhgit/tidy_data
R
false
false
2,765
r
run_analysis <- function(){ cnames <- character() # read measurements and combine them train <- readTrainFiles() test <- readTestFiles() total <- rbind(test, train) # create index for mean and standard deviation measurements index <- msd_index() # subset to have only ...
## Create plots that summarize more parameters rm(list=ls()) library(data.table) library(ggplot2) library(EnvStats) library(stringr) library(gtools) library(scales) library(grid) library(gridExtra) ## set directories if (Sys.info()[1] == 'Windows') { codedir <- paste0("[Insert own directory]/rhd_invest_priv/") o...
/other_code/model_states_plot.R
permissive
shivarajmishra/rhd_invest_pub
R
false
false
4,430
r
## Create plots that summarize more parameters rm(list=ls()) library(data.table) library(ggplot2) library(EnvStats) library(stringr) library(gtools) library(scales) library(grid) library(gridExtra) ## set directories if (Sys.info()[1] == 'Windows') { codedir <- paste0("[Insert own directory]/rhd_invest_priv/") o...
#' Plot a path. #' #' Plots the path together with a representation of the arena. These plots are #' useful for diagnosis of classification problems. #' #' The path is plotted together with the context of the arena. The three #' concentric zones of the arena (the wall, outer wall and annulus) are drawn in #' progressiv...
/R/plot_path.R
no_license
mamut343/Rtrack
R
false
false
5,056
r
#' Plot a path. #' #' Plots the path together with a representation of the arena. These plots are #' useful for diagnosis of classification problems. #' #' The path is plotted together with the context of the arena. The three #' concentric zones of the arena (the wall, outer wall and annulus) are drawn in #' progressiv...
# # This is the server logic of a Shiny web application. You can run the # application by clicking 'Run App' above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) # Define server logic required to draw a histogram shinyServer(function(input, output) {...
/ShinyApp/server.R
no_license
WhiteJP/WiFiTrackingSocialLicence
R
false
false
952
r
# # This is the server logic of a Shiny web application. You can run the # application by clicking 'Run App' above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) # Define server logic required to draw a histogram shinyServer(function(input, output) {...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/sampler.R \name{Sampler} \alias{Sampler} \title{Sampler for catch-age from fishery data} \usage{ Sampler(yr = 2014) } \arguments{ \item{yr}{for year of sample construction} } \value{ estimates of absolute age compositions } \descripti...
/sampleR/man/Sampler.Rd
no_license
jimianelli/FishSampleR
R
false
false
571
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/sampler.R \name{Sampler} \alias{Sampler} \title{Sampler for catch-age from fishery data} \usage{ Sampler(yr = 2014) } \arguments{ \item{yr}{for year of sample construction} } \value{ estimates of absolute age compositions } \descripti...
#' @include blastReport-class.r blast-parser-db.r sqlite-db.r #' @importFrom IRanges IRanges IRangesList reduce width unlist NULL # BlastReportDB-class ---------------------------------------------------- #' Class \code{"blastReportDB"} #' #' A reference calss that provides a connection to an SQLite database #' co...
/R/blastReportDB-class.r
no_license
zachcp/blastr
R
false
false
5,528
r
#' @include blastReport-class.r blast-parser-db.r sqlite-db.r #' @importFrom IRanges IRanges IRangesList reduce width unlist NULL # BlastReportDB-class ---------------------------------------------------- #' Class \code{"blastReportDB"} #' #' A reference calss that provides a connection to an SQLite database #' co...
\name{convert} \alias{convert} \alias{convert.r.to.t} \alias{convert.t.to.r} \alias{convert.b.to.t} \alias{convert.t.to.p} \alias{convert.f.to.p} \alias{convert.f.to.d} \alias{convert.chisq.to.p} \alias{convert.chisq.to.V} \alias{convert.d.to.logodds} \alias{convert.d.to.r} \alias{convert.d.to.t} \alias{convert.d.to.va...
/man/convert.Rd
no_license
Matherion/userfriendlyscience
R
false
false
5,357
rd
\name{convert} \alias{convert} \alias{convert.r.to.t} \alias{convert.t.to.r} \alias{convert.b.to.t} \alias{convert.t.to.p} \alias{convert.f.to.p} \alias{convert.f.to.d} \alias{convert.chisq.to.p} \alias{convert.chisq.to.V} \alias{convert.d.to.logodds} \alias{convert.d.to.r} \alias{convert.d.to.t} \alias{convert.d.to.va...
v <- c(1,2,"3",4) v ## List did not perform type casting v <- list(1,2,"3",TRUE) v x <- list(a=1:5,ID=2,Name=c("First_Name","Last_Name")) x x$Name ## for specific output x$a
/list.R
no_license
fiazdev/R_Notes
R
false
false
174
r
v <- c(1,2,"3",4) v ## List did not perform type casting v <- list(1,2,"3",TRUE) v x <- list(a=1:5,ID=2,Name=c("First_Name","Last_Name")) x x$Name ## for specific output x$a
#' Convert data to WKT #' #' @export #' @param x Output from [mr_geojson()], [mr_shp()], #' or a `SpatialPolygonsDataFrame` #' @param fmt (integer) The number of digits to display after the decimal #' point when formatting coordinates. Ignored when shp files or #' `SpatialPolygonsDataFrame` passed in #' @param ... Furt...
/R/as_wkt.R
permissive
ropensci/mregions
R
false
false
2,529
r
#' Convert data to WKT #' #' @export #' @param x Output from [mr_geojson()], [mr_shp()], #' or a `SpatialPolygonsDataFrame` #' @param fmt (integer) The number of digits to display after the decimal #' point when formatting coordinates. Ignored when shp files or #' `SpatialPolygonsDataFrame` passed in #' @param ... Furt...
\name{mm9.geneSymbol.LENGTH} \docType{data} \alias{mm9.geneSymbol.LENGTH} \title{Transcript length data for the organism mm} \description{mm9.geneSymbol.LENGTH is an R object which maps transcripts to the length (in bp) of their mature mRNA transcripts. Where available, it will also provide the mapping between a gene ...
/man/mm9.geneSymbol.LENGTH.Rd
no_license
nadiadavidson/geneLenDataBase
R
false
false
738
rd
\name{mm9.geneSymbol.LENGTH} \docType{data} \alias{mm9.geneSymbol.LENGTH} \title{Transcript length data for the organism mm} \description{mm9.geneSymbol.LENGTH is an R object which maps transcripts to the length (in bp) of their mature mRNA transcripts. Where available, it will also provide the mapping between a gene ...
#Determines the flow blocking probabilities of a circuit switched network using #the product bound. setwd("~/Desktop/DDRS - Performance/LABS/ddrs-labs/lab4/circnets") source("erlB.R") ############################################################################## #Insert here the input parameters #Links must be identi...
/lab4/circnets/prodbound.R
no_license
pasreis/ddrs-labs
R
false
false
2,058
r
#Determines the flow blocking probabilities of a circuit switched network using #the product bound. setwd("~/Desktop/DDRS - Performance/LABS/ddrs-labs/lab4/circnets") source("erlB.R") ############################################################################## #Insert here the input parameters #Links must be identi...
library(gplots) LutterBinge <- read_csv("./data/genelists/Lutter et al. Table S4.BingeEating.hypenFixed.txt", col_names=F)$X1 LutterRestricted <- read_csv("./data/genelists/Lutter et al. Table S3.RestrictedEating.hypenFixed.txt", col_names=F)$X1 Duncan <- read_csv("./data/genelists/Duncan et al. rs4622308.hypenFixed.t...
/R/IntersectLists.R
no_license
derekhoward/molecular_AN
R
false
false
1,092
r
library(gplots) LutterBinge <- read_csv("./data/genelists/Lutter et al. Table S4.BingeEating.hypenFixed.txt", col_names=F)$X1 LutterRestricted <- read_csv("./data/genelists/Lutter et al. Table S3.RestrictedEating.hypenFixed.txt", col_names=F)$X1 Duncan <- read_csv("./data/genelists/Duncan et al. rs4622308.hypenFixed.t...
setwd("~/Sridhar_CDrive/Desktop/Desktop_20150323/Batch 27/CSE 7202c/Day03") # LOGISTIC REGRESSION # Read in Flier Response Data flierresponse <- read.csv("FlierResponse.csv", header = T, sep = ",") flierresponse str(flierresponse) flierresponse$Response <- as.factor(flierresponse$Response) str(flierresponse) flierres...
/Week6/Day1/Lecture/20180106_Batch37_CSE7302c_Multiple_Lin_Reg_Lecture/LogisticRegression.R
no_license
SheikMBasha/MLLearning
R
false
false
2,436
r
setwd("~/Sridhar_CDrive/Desktop/Desktop_20150323/Batch 27/CSE 7202c/Day03") # LOGISTIC REGRESSION # Read in Flier Response Data flierresponse <- read.csv("FlierResponse.csv", header = T, sep = ",") flierresponse str(flierresponse) flierresponse$Response <- as.factor(flierresponse$Response) str(flierresponse) flierres...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/interpolating-functions.R \name{interpolate_single_grid_multi_day} \alias{interpolate_single_grid_multi_day} \title{Interpolate each data grid. This function interpolates every datagrid day by day (or month by month in case of monthly observa...
/man/interpolate_single_grid_multi_day.Rd
no_license
pegoraro/qchlorophyll
R
false
true
1,151
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/interpolating-functions.R \name{interpolate_single_grid_multi_day} \alias{interpolate_single_grid_multi_day} \title{Interpolate each data grid. This function interpolates every datagrid day by day (or month by month in case of monthly observa...
testlist <- list(hi = 1.38241720848787e+306, lo = NaN, mu = 1.38241720848787e+306, sig = 1.38241720848787e+306) result <- do.call(gjam:::tnormRcpp,testlist) str(result)
/gjam/inst/testfiles/tnormRcpp/libFuzzer_tnormRcpp/tnormRcpp_valgrind_files/1610047715-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
173
r
testlist <- list(hi = 1.38241720848787e+306, lo = NaN, mu = 1.38241720848787e+306, sig = 1.38241720848787e+306) result <- do.call(gjam:::tnormRcpp,testlist) str(result)
library(dplyr) ### downloading the dataset temp <- tempfile() download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", temp,mode="wb") unzip(temp, "household_power_consumption.txt") unlink(temp) ### loading the dataset df <- read.table("household_power_consumption.txt", s...
/plot4.R
no_license
stavoikono/ExData_Plotting1
R
false
false
1,550
r
library(dplyr) ### downloading the dataset temp <- tempfile() download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", temp,mode="wb") unzip(temp, "household_power_consumption.txt") unlink(temp) ### loading the dataset df <- read.table("household_power_consumption.txt", s...
poly_coords<- function(shapefile){ if (nrow(data.frame(shapefile$ID))< 1) { print ("No ID field in SpatialPolygon") }else{ Order<-0 YX3<- as.numeric("XX", "XX", "XX", "XX") num_polys<- nrow(shapefile@data)+1 YX3<- as.numeric("XX", "XX", "XX") curr_poly<- shapefile@data[1,] curr_poly_start_row <- 1 p...
/analysis/Arrests/poly_coords_function.R
no_license
fabianbohnenberger/repo1
R
false
false
1,158
r
poly_coords<- function(shapefile){ if (nrow(data.frame(shapefile$ID))< 1) { print ("No ID field in SpatialPolygon") }else{ Order<-0 YX3<- as.numeric("XX", "XX", "XX", "XX") num_polys<- nrow(shapefile@data)+1 YX3<- as.numeric("XX", "XX", "XX") curr_poly<- shapefile@data[1,] curr_poly_start_row <- 1 p...
#' @title Data preprocessing #' #' @description #' \code{data_pre} This function selects matched genes and scales gene expression values (maximum=1, minimum=0). #' #' @details #' The "input.path" refers to the path for input file. The "type" refers to official gene symbol or Entrez gene ID. #' @param input.path ...
/R/data_pre.R
no_license
zhaoxia413/PreMSIm
R
false
false
2,038
r
#' @title Data preprocessing #' #' @description #' \code{data_pre} This function selects matched genes and scales gene expression values (maximum=1, minimum=0). #' #' @details #' The "input.path" refers to the path for input file. The "type" refers to official gene symbol or Entrez gene ID. #' @param input.path ...
setwd('/home-4/whou10@jhu.edu/scratch/Wenpin/GBM/data/proc/tumor/') af = list.files(getwd()) m = readRDS('/home-4/whou10@jhu.edu/scratch/Wenpin/GBM/data/proc/tumor/matrix/rawcount.rds') #[1:31078, 1:205442] p = sub('_.*','',colnames(m)) num.cell.bef.fil = table(p) m2= readRDS('/home-4/whou10@jhu.edu/scratch/Wenpin/GB...
/old/20191103/code/11_stat.R
no_license
Winnie09/GBM
R
false
false
694
r
setwd('/home-4/whou10@jhu.edu/scratch/Wenpin/GBM/data/proc/tumor/') af = list.files(getwd()) m = readRDS('/home-4/whou10@jhu.edu/scratch/Wenpin/GBM/data/proc/tumor/matrix/rawcount.rds') #[1:31078, 1:205442] p = sub('_.*','',colnames(m)) num.cell.bef.fil = table(p) m2= readRDS('/home-4/whou10@jhu.edu/scratch/Wenpin/GB...
#' Create a graph object #' @description Generates a graph object #' with the option to use node data frames #' (ndfs) and/or edge data frames (edfs) #' to populate the initial graph. #' @param nodes_df an optional data frame #' containing, at minimum, a column #' (called \code{id}) which contains #' node IDs for the g...
/R/create_graph.R
permissive
FeifanXie/DiagrammeR
R
false
false
12,109
r
#' Create a graph object #' @description Generates a graph object #' with the option to use node data frames #' (ndfs) and/or edge data frames (edfs) #' to populate the initial graph. #' @param nodes_df an optional data frame #' containing, at minimum, a column #' (called \code{id}) which contains #' node IDs for the g...
## Messy Data and Machine Learning Homework 4 ## Paul Sergent, Ruoyu Zhu, Frankie Tam ## Crime_analysis.R source('crime_library.R') ## Part A ## Retrieve data from urls crime.data.full <- foreach(i=1:nrow(url.data), .combine='rbind') %dopar% { # Retrieve html content content <- content_to_parsed_html(get_site...
/crime_analysis.R
no_license
frankietam/MessyDataHW4
R
false
false
3,427
r
## Messy Data and Machine Learning Homework 4 ## Paul Sergent, Ruoyu Zhu, Frankie Tam ## Crime_analysis.R source('crime_library.R') ## Part A ## Retrieve data from urls crime.data.full <- foreach(i=1:nrow(url.data), .combine='rbind') %dopar% { # Retrieve html content content <- content_to_parsed_html(get_site...
#merging possible controls and majority party status #use data from corporate preference piece #library library(foreign) library(sqldf) #pull file j<-read.spss("C:\\Documents and Settings\\Ty\\My Documents\\leadership paper\\data\\Final Data.sav") #reduce file names(j) #reduction attach(j) x<-cbind(Cyc...
/pre-workshop/scripts/jac.merge.R
no_license
tbonza/Leadership-Paper
R
false
false
3,367
r
#merging possible controls and majority party status #use data from corporate preference piece #library library(foreign) library(sqldf) #pull file j<-read.spss("C:\\Documents and Settings\\Ty\\My Documents\\leadership paper\\data\\Final Data.sav") #reduce file names(j) #reduction attach(j) x<-cbind(Cyc...
#Belguim predict modeling project #checking correlation between Icomed data and persistent days/persistence #load required library library(xlsx) library(XLConnect) library(plyr) library(dplyr) #define the path basePath <- 'C:\\work\\working materials\\Belgium\\' inPath <- paste(basePath, 'data\\toBeMergedD...
/code/sep22/check_correlation_for_physician_level_data.R
no_license
jzhao0802/belgium
R
false
false
7,357
r
#Belguim predict modeling project #checking correlation between Icomed data and persistent days/persistence #load required library library(xlsx) library(XLConnect) library(plyr) library(dplyr) #define the path basePath <- 'C:\\work\\working materials\\Belgium\\' inPath <- paste(basePath, 'data\\toBeMergedD...
NEI <- readRDS("exdata-data-NEI_data/summarySCC_PM25.rds") SCC <- readRDS("exdata-data-NEI_data/Source_Classification_Code.rds") NEI_Baltimore <- NEI[NEI$fips=="24510",] f <- factor(SCC$SCC[grep("Vehicle", SCC$SCC.Level.Two)]) NEI_Baltimore_Filtered <- NEI_Baltimore[NEI_Baltimore$SCC %in% f, ] baltimoreAggregate <- ag...
/plot5.R
no_license
burlutskiy/ExData_PeerAssessment2
R
false
false
584
r
NEI <- readRDS("exdata-data-NEI_data/summarySCC_PM25.rds") SCC <- readRDS("exdata-data-NEI_data/Source_Classification_Code.rds") NEI_Baltimore <- NEI[NEI$fips=="24510",] f <- factor(SCC$SCC[grep("Vehicle", SCC$SCC.Level.Two)]) NEI_Baltimore_Filtered <- NEI_Baltimore[NEI_Baltimore$SCC %in% f, ] baltimoreAggregate <- ag...
atree <- read.csv(inFile$datapath, header = input$header, sep = input$sep, quote = input$quote) reactValues$treeData <- cbind( atree, data.frame(score = rep(0, nrow(atree)))) ## Script preferenceSliderScriptName <<- paste0("generated_basedPreferenceSlider",".R") if ( !file.exists(preferenceSliderScriptName) ) { num...
/scriptGeneratorAHP.R
no_license
readycyr/dashahp
R
false
false
7,889
r
atree <- read.csv(inFile$datapath, header = input$header, sep = input$sep, quote = input$quote) reactValues$treeData <- cbind( atree, data.frame(score = rep(0, nrow(atree)))) ## Script preferenceSliderScriptName <<- paste0("generated_basedPreferenceSlider",".R") if ( !file.exists(preferenceSliderScriptName) ) { num...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lowLevelClasses.R \docType{class} \name{ConceptAttribute-class} \alias{ConceptAttribute-class} \title{An S4 class for Concept Attribute} \description{ A concept attribute, using concepts to identify the attribute like a gender or race etc } \...
/man/ConceptAttribute-class.Rd
permissive
gowthamrao/Capr
R
false
true
485
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lowLevelClasses.R \docType{class} \name{ConceptAttribute-class} \alias{ConceptAttribute-class} \title{An S4 class for Concept Attribute} \description{ A concept attribute, using concepts to identify the attribute like a gender or race etc } \...
options(stringsAsFactors=F) rm(list=ls()) library(MatrixEQTL) args <- commandArgs(trailingOnly=TRUE) # args = c("22","LIV","1") chr = as.numeric(as.character(args[[1]])) tissue = args[[2]] num_SV = args[[3]] gene_annotation = read.delim("/sc/orga/projects/STARNET/ariella/MatrixEQTLgenes.txt",header=T,quote="\"") na...
/eQTL/vamsi_scripts/eQTL_final.R
no_license
HaoKeLab/starnet
R
false
false
3,944
r
options(stringsAsFactors=F) rm(list=ls()) library(MatrixEQTL) args <- commandArgs(trailingOnly=TRUE) # args = c("22","LIV","1") chr = as.numeric(as.character(args[[1]])) tissue = args[[2]] num_SV = args[[3]] gene_annotation = read.delim("/sc/orga/projects/STARNET/ariella/MatrixEQTLgenes.txt",header=T,quote="\"") na...
setwd("C:/Thesis/Thesis") # Desktop library(ggplot2) data <- read.table("cosine_vs_ktau.txt",header = FALSE) kt <- data[[1]] cos <- data[[2]] qplot(kt,cos)
/misc/graphcosvsktau.R
no_license
sawyerWeld/Preference-Fitness
R
false
false
161
r
setwd("C:/Thesis/Thesis") # Desktop library(ggplot2) data <- read.table("cosine_vs_ktau.txt",header = FALSE) kt <- data[[1]] cos <- data[[2]] qplot(kt,cos)
getmonitor <- function(id, directory, summarize = FALSE) { data <- read.table(file = paste0(directory, '/', formatC(id, digits = 2, format = "d", flag = 0), ".csv"), header = TRUE, sep = ",") if (summarize) print(summary(data)) data }
/coursera/comp-data-analys/getmonitor.R
no_license
Peque/peque
R
false
false
238
r
getmonitor <- function(id, directory, summarize = FALSE) { data <- read.table(file = paste0(directory, '/', formatC(id, digits = 2, format = "d", flag = 0), ".csv"), header = TRUE, sep = ",") if (summarize) print(summary(data)) data }
rm(list = ls()) nregion <- 69 nweek <- 53 ns <- 2 nv <- 3 nknots <- 3 ncov <- 1 nepi <- 100 nchain <- 5 nsize <- 10000 npara <- 6 # 1: balanced 2% agg by nb; 2: imbalanced 2% agg by nb; 3: balanced 2% no agg; 4: imbalanced 2% no agg; 5: balanced 2% agg by prov; 6: imbalanced 2% agg by prov load("simulation/parameter...
/simulation/code/collect_agg_results.R
no_license
jasa-acs/A-Spatio-Temporal-Modeling-Framework-for-Surveillance-Data-of-Multiple-Infectious-Pathogens-With-...
R
false
false
8,061
r
rm(list = ls()) nregion <- 69 nweek <- 53 ns <- 2 nv <- 3 nknots <- 3 ncov <- 1 nepi <- 100 nchain <- 5 nsize <- 10000 npara <- 6 # 1: balanced 2% agg by nb; 2: imbalanced 2% agg by nb; 3: balanced 2% no agg; 4: imbalanced 2% no agg; 5: balanced 2% agg by prov; 6: imbalanced 2% agg by prov load("simulation/parameter...
#'@name create_vocabulary #'@title Creates a vocabulary of unique terms #'@description This function collects unique terms and corresponding statistics. #' See the below for details. #'@param itoken_src iterator over a \code{list} of \code{character} vectors, #' which are the documents from which the user wants to co...
/R/vocabulary.R
permissive
kbenoit/text2vec
R
false
false
8,578
r
#'@name create_vocabulary #'@title Creates a vocabulary of unique terms #'@description This function collects unique terms and corresponding statistics. #' See the below for details. #'@param itoken_src iterator over a \code{list} of \code{character} vectors, #' which are the documents from which the user wants to co...
slopop.HLD <- structure(c(0.000442999388963638, 7.14530929492393e-05, 3.34140166052189e-05, 2.16326532241925e-05, 1.75789897709258e-05, 1.34762900462896e-05, 1.09186572095154e-05, 8.85778899421882e-06, 8.28102376800108e-06, 7.59455687996535e-06, 7.23766210643797e-06, 6.55145673353298e-06, 5.75567390262922e-06,...
/relsurv/R/slopop1930_2014.r
no_license
ingted/R-Examples
R
false
false
181,497
r
slopop.HLD <- structure(c(0.000442999388963638, 7.14530929492393e-05, 3.34140166052189e-05, 2.16326532241925e-05, 1.75789897709258e-05, 1.34762900462896e-05, 1.09186572095154e-05, 8.85778899421882e-06, 8.28102376800108e-06, 7.59455687996535e-06, 7.23766210643797e-06, 6.55145673353298e-06, 5.75567390262922e-06,...
iris z=iris z$Species=NULL z z[1,1:4] sum(z[1,1:4])/4 y=0 for(i in 1:150) for(i in 1:150) + {x=sum(z[i,1:4])/4 + y=c(x,y)} y
/matemmodel/mutruk/zan2mutruk.R
no_license
vikamutruk/matmod
R
false
false
141
r
iris z=iris z$Species=NULL z z[1,1:4] sum(z[1,1:4])/4 y=0 for(i in 1:150) for(i in 1:150) + {x=sum(z[i,1:4])/4 + y=c(x,y)} y
#' Create a table of the changes in flow-normalized concentration or flux values between various points in time in the record #' #' This table describe trends in flow-normalized concentration or flux depending on if flux is defined as TRUE or FALSE. #' The results are described as changes in real units or in percent a...
/R/tableChangeSingle.R
permissive
cjtinant/EGRET
R
false
false
6,942
r
#' Create a table of the changes in flow-normalized concentration or flux values between various points in time in the record #' #' This table describe trends in flow-normalized concentration or flux depending on if flux is defined as TRUE or FALSE. #' The results are described as changes in real units or in percent a...
\name{meta.yaxis} \alias{meta.yaxis} \title{Set limits for yaxis in qtime} \usage{ meta.yaxis(meta) } \description{ Set limits for yaxis in qtime }
/man/meta.yaxis.Rd
no_license
kaisernahid/cranvas
R
false
false
150
rd
\name{meta.yaxis} \alias{meta.yaxis} \title{Set limits for yaxis in qtime} \usage{ meta.yaxis(meta) } \description{ Set limits for yaxis in qtime }
# install.packages("readxl") # install.packages("tidyverse") # install.packages("writexl") library("readxl") library('tidyverse') library(writexl) path = "C:/Users/juan.salgado/Dropbox/Web scraping/El tiempo" el_tiempo_raw <- read_excel(paste(path,'/eltiempo_consolidado.xlsx', sep = "")) el_tiempo_raw <- subset(el_tie...
/Proyecto final/1_Codigos web scraping/El tiempo/Limpieza/Limpieza_bases_El_tiempo.R
no_license
juansalg/MCPP_juan.salgado
R
false
false
2,386
r
# install.packages("readxl") # install.packages("tidyverse") # install.packages("writexl") library("readxl") library('tidyverse') library(writexl) path = "C:/Users/juan.salgado/Dropbox/Web scraping/El tiempo" el_tiempo_raw <- read_excel(paste(path,'/eltiempo_consolidado.xlsx', sep = "")) el_tiempo_raw <- subset(el_tie...
#Na and Cl plots #Nees file names updated library(smwrGraphs) library(plyr) library(reshape2) library(dplyr) library(ggplot2) NaCl<-read.csv("P:/FPJ00/Phase2GeochemistryData/SiteCl_Na.csv") names(NaCl) NaCl<-dcast(NaCl,formula = Site_name+Piez_Nest+Order+Site_ID+medium_cd~srsname,value.var = "result_va_m...
/Graphing/Geochem_Graphing_3/R4_NaClPlots.R
no_license
amaher2/phase-2-r2
R
false
false
6,871
r
#Na and Cl plots #Nees file names updated library(smwrGraphs) library(plyr) library(reshape2) library(dplyr) library(ggplot2) NaCl<-read.csv("P:/FPJ00/Phase2GeochemistryData/SiteCl_Na.csv") names(NaCl) NaCl<-dcast(NaCl,formula = Site_name+Piez_Nest+Order+Site_ID+medium_cd~srsname,value.var = "result_va_m...
plot2 <- function(){ ## This first section sets up a data frame with the relevant data. ## You need "household_power_consumption.txt" in the working directory. hpc<-read.table("household_power_consumption.txt", header=TRUE, sep=";") hpc$ptime<-strptime(paste(hpc$Date,hpc$Time), format="%d/%m/%Y %H:%M:%S") hpc...
/plot2.R
no_license
marsgrins/ExData_Plotting1
R
false
false
646
r
plot2 <- function(){ ## This first section sets up a data frame with the relevant data. ## You need "household_power_consumption.txt" in the working directory. hpc<-read.table("household_power_consumption.txt", header=TRUE, sep=";") hpc$ptime<-strptime(paste(hpc$Date,hpc$Time), format="%d/%m/%Y %H:%M:%S") hpc...
\name{maSigPro} \alias{maSigPro} \title{Wrapping function for identifying significant differential gene expression profiles in micorarray time course experiments } \description{ \code{maSigPro} performs a whole maSigPro analysis for a times series gene expression experiment. The function sucesively ca...
/man/maSigPro.Rd
no_license
g1o/maSigPro
R
false
false
13,382
rd
\name{maSigPro} \alias{maSigPro} \title{Wrapping function for identifying significant differential gene expression profiles in micorarray time course experiments } \description{ \code{maSigPro} performs a whole maSigPro analysis for a times series gene expression experiment. The function sucesively ca...
#' Create a message. #' #' @return A message object. #' @seealso \code{\link{subject}}, \code{\link{from}}, \code{\link{to}}, \code{\link{cc}}, \code{\link{bcc}} and \code{\link{reply}} #' @export #' @examples #' # Create an (empty) message object. #' msg <- envelope() envelope <- function() { structure( list( ...
/R/envelope.R
no_license
matt-denni/emayili
R
false
false
849
r
#' Create a message. #' #' @return A message object. #' @seealso \code{\link{subject}}, \code{\link{from}}, \code{\link{to}}, \code{\link{cc}}, \code{\link{bcc}} and \code{\link{reply}} #' @export #' @examples #' # Create an (empty) message object. #' msg <- envelope() envelope <- function() { structure( list( ...
# makeCacheMatrix creates a list containing a function to # 1. set the value of the matrix # 2. get the value of the matrix # 3. set the value of inverse of the matrix # 4. get the value of inverse of the matrix makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y ...
/cachematrix.R
no_license
sghassemig/Shima
R
false
false
1,077
r
# makeCacheMatrix creates a list containing a function to # 1. set the value of the matrix # 2. get the value of the matrix # 3. set the value of inverse of the matrix # 4. get the value of inverse of the matrix makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y ...
#' Constant - pi - Archimedes' Constant #' #' The ratio of the circumference and diameter of a circle. #' This formulation of pi is based on the formulation used by NASA/JPL. #' It provides more digits of resolution than R's built-in version (6 digits after decimal point vs 15 digits). #' #' @examples #' # options(di...
/R/constants.pi.R
permissive
burrm/lolcat
R
false
false
679
r
#' Constant - pi - Archimedes' Constant #' #' The ratio of the circumference and diameter of a circle. #' This formulation of pi is based on the formulation used by NASA/JPL. #' It provides more digits of resolution than R's built-in version (6 digits after decimal point vs 15 digits). #' #' @examples #' # options(di...
#' Convert downloaded weather to chillR format #' #' Convert downloaded weather data into a data frame that makes running other #' chillR functions easy. #' #' weather databases, from which chillR can download data: NOAA NCDC Global #' Summary of the Day - "GSOD" #' (https://data.noaa.gov/dataset/global-surfac...
/chillR/R/weather2chillR.R
no_license
ingted/R-Examples
R
false
false
3,494
r
#' Convert downloaded weather to chillR format #' #' Convert downloaded weather data into a data frame that makes running other #' chillR functions easy. #' #' weather databases, from which chillR can download data: NOAA NCDC Global #' Summary of the Day - "GSOD" #' (https://data.noaa.gov/dataset/global-surfac...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fcat.R \name{print.fcat} \alias{print.fcat} \title{Print a format catalog} \usage{ \method{print}{fcat}(x, ..., verbose = FALSE) } \arguments{ \item{x}{The format catalog to print.} \item{...}{Any follow-on parameters.} \item{verbose}{Wheth...
/man/print.fcat.Rd
no_license
armenic/fmtr
R
false
true
1,324
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fcat.R \name{print.fcat} \alias{print.fcat} \title{Print a format catalog} \usage{ \method{print}{fcat}(x, ..., verbose = FALSE) } \arguments{ \item{x}{The format catalog to print.} \item{...}{Any follow-on parameters.} \item{verbose}{Wheth...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pml_model.r \name{saveModel} \alias{saveModel} \title{saveModel} \usage{ saveModel(model, dataset = NULL, engine = NULL, host = NULL) } \arguments{ \item{model}{PK/PD model} \item{dataset}{Optional dataset to save with model} \item{engine}{...
/RsNlme/man/saveModel.Rd
no_license
phxnlmedev/rpackages
R
false
true
561
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pml_model.r \name{saveModel} \alias{saveModel} \title{saveModel} \usage{ saveModel(model, dataset = NULL, engine = NULL, host = NULL) } \arguments{ \item{model}{PK/PD model} \item{dataset}{Optional dataset to save with model} \item{engine}{...
## Put comments here that give an overall description of what your ## functions do ## This function creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y inv <<- NULL } ...
/cachematrix.R
no_license
SajjadY/ProgrammingAssignment2
R
false
false
1,101
r
## Put comments here that give an overall description of what your ## functions do ## This function creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y inv <<- NULL } ...
#Flowjo Plugins Activation #FLOW AI if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager") BiocManager::install() BiocManager::install("flowAI") #Phenograph if(!require(devtools)) { install.packages("devtools") } library("devtools") devtools::install_github("JinmiaoChenLab/Rphenogr...
/Scripts/flowjoV106_plugins.R
no_license
greenmanta/Jakccando
R
false
false
327
r
#Flowjo Plugins Activation #FLOW AI if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager") BiocManager::install() BiocManager::install("flowAI") #Phenograph if(!require(devtools)) { install.packages("devtools") } library("devtools") devtools::install_github("JinmiaoChenLab/Rphenogr...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/directconnect_operations.R \name{directconnect_describe_interconnects} \alias{directconnect_describe_interconnects} \title{Lists the interconnects owned by the AWS account or only the specified interconnect} \usage{ directconnect_describe_int...
/cran/paws.networking/man/directconnect_describe_interconnects.Rd
permissive
TWarczak/paws
R
false
true
1,364
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/directconnect_operations.R \name{directconnect_describe_interconnects} \alias{directconnect_describe_interconnects} \title{Lists the interconnects owned by the AWS account or only the specified interconnect} \usage{ directconnect_describe_int...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/corpus.R \name{readManifesto} \alias{readManifesto} \title{Reader for \code{\link{ManifestoSource}}} \usage{ readManifesto(elem, language, id) } \arguments{ \item{elem}{a named list with the component \code{content}} \item{language}{is ignor...
/man/readManifesto.Rd
no_license
cran/manifestoR
R
false
true
634
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/corpus.R \name{readManifesto} \alias{readManifesto} \title{Reader for \code{\link{ManifestoSource}}} \usage{ readManifesto(elem, language, id) } \arguments{ \item{elem}{a named list with the component \code{content}} \item{language}{is ignor...
# 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...
/TablasOMS/dev/02_dev.R
permissive
x0cristian0x/TablasOMS
R
false
false
2,590
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...
##script for converting gene symbol to ensembl ID BiocManager::install("biomaRT") #library(biomaRt) library("AnnotationDbi") library("org.Hs.eg.db") #Read the CSV file containing gene symbols gene_symbols <- read.csv(file = "GSE49190_gene_list.csv", header = TRUE) #gene_symbols <- as.data.frame(gene_symbols) #Crea...
/gene_symbol_to_ensembl.R
no_license
Dorothynyamai/Python-project
R
false
false
2,018
r
##script for converting gene symbol to ensembl ID BiocManager::install("biomaRT") #library(biomaRt) library("AnnotationDbi") library("org.Hs.eg.db") #Read the CSV file containing gene symbols gene_symbols <- read.csv(file = "GSE49190_gene_list.csv", header = TRUE) #gene_symbols <- as.data.frame(gene_symbols) #Crea...
\alias{cairoSetLineCap} \name{cairoSetLineCap} \title{cairoSetLineCap} \description{Sets the current line cap style within the cairo context. See \code{\link{CairoLineCap}} for details about how the available line cap styles are drawn.} \usage{cairoSetLineCap(cr, line.cap)} \arguments{ \item{\verb{cr}}{[\code{\link{Cai...
/RGtk2/man/cairoSetLineCap.Rd
no_license
lawremi/RGtk2
R
false
false
788
rd
\alias{cairoSetLineCap} \name{cairoSetLineCap} \title{cairoSetLineCap} \description{Sets the current line cap style within the cairo context. See \code{\link{CairoLineCap}} for details about how the available line cap styles are drawn.} \usage{cairoSetLineCap(cr, line.cap)} \arguments{ \item{\verb{cr}}{[\code{\link{Cai...
#################### # [1] INTRODUCTION # #################### # List of packages to install install.packages(c("Hmisc", "gdata","boot","xtable","MASS","moments","snow","mvtnorm")) # Set working directory setwd("Dropbox/comp_econ") # List contents of directory and environment dir() ls() # Is 678 a multiple of 9? 678%%9...
/Assignments/a1.R
no_license
venetiaw/econ690_compecon
R
false
false
8,800
r
#################### # [1] INTRODUCTION # #################### # List of packages to install install.packages(c("Hmisc", "gdata","boot","xtable","MASS","moments","snow","mvtnorm")) # Set working directory setwd("Dropbox/comp_econ") # List contents of directory and environment dir() ls() # Is 678 a multiple of 9? 678%%9...
test_that("'api_filter' works well", { expect_equal(api_filter("name", "eq", "TZ FP A360 - Conversion rate < 20"), "name:eq:TZ FP A360 - Conversion rate < 20") expect_equal(api_filter("name", "ilike", "TZ FP A360 - Conversion rate < 20"), "name:ilike:TZ FP A360 - Conversion rate < 20") })
/tests/testthat/test-api-filter.R
no_license
INyabuto/dhis2r
R
false
false
294
r
test_that("'api_filter' works well", { expect_equal(api_filter("name", "eq", "TZ FP A360 - Conversion rate < 20"), "name:eq:TZ FP A360 - Conversion rate < 20") expect_equal(api_filter("name", "ilike", "TZ FP A360 - Conversion rate < 20"), "name:ilike:TZ FP A360 - Conversion rate < 20") })
context("Emtrends function") pigs.lm = lm(log(conc) ~ source * poly(percent, 3), data = pigs) test_that("emtrends works", { emt = emtrends(pigs.lm, ~ source, "percent") expect_equal(nrow(semt <- summary(emt)), 3) expect_equal(semt$percent.trend[1], .00429, tol = 0.0001) emtt = emtrends(pigs.lm, ~...
/tests/testthat/test-emtrends.R
no_license
rvlenth/emmeans
R
false
false
834
r
context("Emtrends function") pigs.lm = lm(log(conc) ~ source * poly(percent, 3), data = pigs) test_that("emtrends works", { emt = emtrends(pigs.lm, ~ source, "percent") expect_equal(nrow(semt <- summary(emt)), 3) expect_equal(semt$percent.trend[1], .00429, tol = 0.0001) emtt = emtrends(pigs.lm, ~...
rm(list=ls()) setwd("C:/users/user") getwd() #load data data= read.csv("day.csv") #dimension of data dim(data) #LOAD Libraries x=c("ggplt2", "corrgram", "DMwR", "Caret", "RandomForest", "unbalance", "C50", "dummies", "e1071", "information", "MASS", "rpart", "gbm", "ROSE") lapply(x, require, character.onl...
/Bike rented.R
no_license
asif786raza/project
R
false
false
6,823
r
rm(list=ls()) setwd("C:/users/user") getwd() #load data data= read.csv("day.csv") #dimension of data dim(data) #LOAD Libraries x=c("ggplt2", "corrgram", "DMwR", "Caret", "RandomForest", "unbalance", "C50", "dummies", "e1071", "information", "MASS", "rpart", "gbm", "ROSE") lapply(x, require, character.onl...
library(stringr) rename_md5sumlist_function <- function(afilename) { longnameslist = list(c("CD45negGEXBI5","CD45posGEXBI5","BI5","skcm-bi005-5pv2-snseq","bi005-skcm-5snseq"), c("TCRBI5","bi005-skcm-5snseq-TCR"), c("UMEL-CUUM1-SCRNA-5P-NA-PRIMARY-GEX-E12","UMEL-CUUM1-SCRNA-5P-NA-PRIMARY-GEX-F1","UMEL-CUUM1-S...
/dbgap_upload/rename_md5sumlist_function.R
permissive
IzarLab/fresh_vs_frozen_comparison
R
false
false
4,138
r
library(stringr) rename_md5sumlist_function <- function(afilename) { longnameslist = list(c("CD45negGEXBI5","CD45posGEXBI5","BI5","skcm-bi005-5pv2-snseq","bi005-skcm-5snseq"), c("TCRBI5","bi005-skcm-5snseq-TCR"), c("UMEL-CUUM1-SCRNA-5P-NA-PRIMARY-GEX-E12","UMEL-CUUM1-SCRNA-5P-NA-PRIMARY-GEX-F1","UMEL-CUUM1-S...
# Exploratory Data Analysis - plot2.R # Robert A Mooney # # Assumes the working directory is set to the directory that # containts the dataset inputFile<-"household_power_consumption.txt" con <- file(inputFile,open="r") # looking for Dates 2007-02-01 and 2007-02-02 # # 1.date: Date in format dd/mm/yyyy # 2.time: tim...
/plot2.R
no_license
rmooney/ExData_Plotting1
R
false
false
1,884
r
# Exploratory Data Analysis - plot2.R # Robert A Mooney # # Assumes the working directory is set to the directory that # containts the dataset inputFile<-"household_power_consumption.txt" con <- file(inputFile,open="r") # looking for Dates 2007-02-01 and 2007-02-02 # # 1.date: Date in format dd/mm/yyyy # 2.time: tim...
# using librayr plyr to arrange and select the data library(dplyr) library(plyr) # download the data for the project filedownload <- function(){ destfile="getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" fileURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip...
/run_analysis.R
no_license
aya-saad/CleaningDataWeek4
R
false
false
3,154
r
# using librayr plyr to arrange and select the data library(dplyr) library(plyr) # download the data for the project filedownload <- function(){ destfile="getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" fileURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip...
input <- snakemake@input[[1]] filename <- unname(unlist(strsplit(basename(input),"_"))) cancer <- filename[1] celltype <- filename[2] label <- paste0(cancer,"_",celltype) outdir <- snakemake@params[["outdir"]] if(!dir.exists(outdir)){ dir.create(outdir,recursive=T) } suppressPackageStartupMessages(library(Seurat)) su...
/scripts/step4_plot_QCmetrics.R
permissive
shunsunsun/single_cell_rna_seq_snakemake
R
false
false
5,802
r
input <- snakemake@input[[1]] filename <- unname(unlist(strsplit(basename(input),"_"))) cancer <- filename[1] celltype <- filename[2] label <- paste0(cancer,"_",celltype) outdir <- snakemake@params[["outdir"]] if(!dir.exists(outdir)){ dir.create(outdir,recursive=T) } suppressPackageStartupMessages(library(Seurat)) su...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tacf.R \name{plot.tacvf} \alias{plot.tacvf} \title{Plots the output from a call to \code{tacvf}} \usage{ \method{plot}{tacvf}( x, type = "o", pch = 20, xlab = NULL, ylab = NULL, main = NULL, xlim = NULL, ylim = NULL, tacf = ...
/man/plot.tacvf.Rd
no_license
JQVeenstra/arfima
R
false
true
1,674
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tacf.R \name{plot.tacvf} \alias{plot.tacvf} \title{Plots the output from a call to \code{tacvf}} \usage{ \method{plot}{tacvf}( x, type = "o", pch = 20, xlab = NULL, ylab = NULL, main = NULL, xlim = NULL, ylim = NULL, tacf = ...
a<- dsL %>% dplyr::filter(attend %in% c(7) & year==2000) %>% dplyr::select(id,year,attend) a<-unique(a$id) b<- dsL %>% dplyr::filter(attend %in% c(1) & year==2006) %>% dplyr::select(id,year,attend) b<-unique(b$id) c<- dsL %>% dplyr::filter(attend %in% c(3) & year==2011) %>% dplyr::select(id,year,attend) c<-un...
/Scripts/Data/finding trajectories.R
no_license
taoistgirl/Longitudinal_Models_of_Religiosity_NLSY97
R
false
false
1,723
r
a<- dsL %>% dplyr::filter(attend %in% c(7) & year==2000) %>% dplyr::select(id,year,attend) a<-unique(a$id) b<- dsL %>% dplyr::filter(attend %in% c(1) & year==2006) %>% dplyr::select(id,year,attend) b<-unique(b$id) c<- dsL %>% dplyr::filter(attend %in% c(3) & year==2011) %>% dplyr::select(id,year,attend) c<-un...
############################################################################## # # 1. This is a standalone file to produce Plot 4 from Assignment 1 # 2. The steps are as follows: # - Step 1. Download raw zipped data from the web if it has not been # downloaded yet # - Step 2. Reading...
/plot4.R
no_license
sbushmanov/ExData_Plotting1
R
false
false
3,582
r
############################################################################## # # 1. This is a standalone file to produce Plot 4 from Assignment 1 # 2. The steps are as follows: # - Step 1. Download raw zipped data from the web if it has not been # downloaded yet # - Step 2. Reading...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/MxExpectation.R \name{imxHasThresholds} \alias{imxHasThresholds} \title{imxHasThresholds} \usage{ imxHasThresholds(model) } \arguments{ \item{model}{model} } \description{ This is an internal function exported for those people who know what t...
/fuzzedpackages/OpenMx/man/imxHasThresholds.Rd
no_license
akhikolla/testpackages
R
false
true
409
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/MxExpectation.R \name{imxHasThresholds} \alias{imxHasThresholds} \title{imxHasThresholds} \usage{ imxHasThresholds(model) } \arguments{ \item{model}{model} } \description{ This is an internal function exported for those people who know what t...
library(extremefit) ### Name: bandwidth.grid ### Title: Bandwidth Grid ### Aliases: bandwidth.grid ### ** Examples hmin <- 0.05 hmax <- 0.2 length <- 20 (h.geometric <- bandwidth.grid(hmin, hmax, length, type = "geometric")) (h.uniform <- bandwidth.grid(hmin, hmax, length, type = "uniform"))
/data/genthat_extracted_code/extremefit/examples/bandwidth.grid.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
301
r
library(extremefit) ### Name: bandwidth.grid ### Title: Bandwidth Grid ### Aliases: bandwidth.grid ### ** Examples hmin <- 0.05 hmax <- 0.2 length <- 20 (h.geometric <- bandwidth.grid(hmin, hmax, length, type = "geometric")) (h.uniform <- bandwidth.grid(hmin, hmax, length, type = "uniform"))
E1M20.R GISS Model E 2004 modelE larissa 04/03/2009 E1M20: description/motivation (any number of lines) ? (delete) Lines you may want to inspect in any case contain a "?" (delete) At the end you'll find instructions on how to modify this rundeck (delete) for other simple ocean m...
/templates/E1M20.R
no_license
addinall/GISS_climate_model
R
false
false
14,814
r
E1M20.R GISS Model E 2004 modelE larissa 04/03/2009 E1M20: description/motivation (any number of lines) ? (delete) Lines you may want to inspect in any case contain a "?" (delete) At the end you'll find instructions on how to modify this rundeck (delete) for other simple ocean m...
#' Check that argument is in radians #' #' @param ex A `examiner_result`, presumably containing a call to a trig function. #' @param radian_val a number: the desired angle in radians #' @param message character string message to produce on failure #' @param eps precision of comparison #' #' @examples #' ex <- for_exami...
/R/trig_radian_check.R
permissive
franzbischoff/examiner
R
false
false
1,377
r
#' Check that argument is in radians #' #' @param ex A `examiner_result`, presumably containing a call to a trig function. #' @param radian_val a number: the desired angle in radians #' @param message character string message to produce on failure #' @param eps precision of comparison #' #' @examples #' ex <- for_exami...
#' @name 005_prep_forest_inventory.R #' @docType function #' @description preparation of Forest inventory data by filtering for species purity and forestLoss #' @param FID forest inventory dataframe #' @param forestMask Hansen forest loss data of 2018 #' @param identicalCrs boolean; default = FALSE; crs(sf object) is s...
/src/functions/006_prep_forest_inventory.R
no_license
envima/ForestModellingRLP
R
false
false
1,856
r
#' @name 005_prep_forest_inventory.R #' @docType function #' @description preparation of Forest inventory data by filtering for species purity and forestLoss #' @param FID forest inventory dataframe #' @param forestMask Hansen forest loss data of 2018 #' @param identicalCrs boolean; default = FALSE; crs(sf object) is s...
context("print") test_that("'print.dataset' can print all rows", { d <- data.frame(x = 1:50) expect_equal(capture_output(print(as_dataset(d), -1)), capture_output(print(as_dataset(d), .Machine$integer.max))) expect_error(print(as_dataset(d), NA), "`rows` cannot be NA") }) test_that("'...
/tests/testthat/test-print.R
permissive
patperry/old-r-frame
R
false
false
11,936
r
context("print") test_that("'print.dataset' can print all rows", { d <- data.frame(x = 1:50) expect_equal(capture_output(print(as_dataset(d), -1)), capture_output(print(as_dataset(d), .Machine$integer.max))) expect_error(print(as_dataset(d), NA), "`rows` cannot be NA") }) test_that("'...
# code from: 007-widgets in [rstudio/shiny-examples](https://github.com/rstudio/shiny-examples) library(shiny) ui <- fluidPage( sidebarLayout( sidebarPanel( numericInput("obs", "Numeric:", 10), textInput("obsText", "Text:", 10), textAreaInput("obsTextArea", "Text Area:", 10), checkboxInput(...
/r/shiny/ex/shiny_reactivity/form_fields/e01.R
permissive
mertnuhoglu/study
R
false
false
1,396
r
# code from: 007-widgets in [rstudio/shiny-examples](https://github.com/rstudio/shiny-examples) library(shiny) ui <- fluidPage( sidebarLayout( sidebarPanel( numericInput("obs", "Numeric:", 10), textInput("obsText", "Text:", 10), textAreaInput("obsTextArea", "Text Area:", 10), checkboxInput(...
# Install and load packages package_names <- c("survey","dplyr","foreign","devtools") lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x)) lapply(package_names, require, character.only=T) install_github("e-mitchell/meps_r_pkg/MEPS") library(MEPS) options(survey.lonely.ps...
/_check/test_code/ins/r_codes/pctPOP_race_ins_lt65_2013.R
permissive
HHS-AHRQ/MEPS-summary-tables
R
false
false
3,478
r
# Install and load packages package_names <- c("survey","dplyr","foreign","devtools") lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x)) lapply(package_names, require, character.only=T) install_github("e-mitchell/meps_r_pkg/MEPS") library(MEPS) options(survey.lonely.ps...
### Preparing the goat resistance layer for CS ### rm(list=ls()) library(rgdal) library(tidyverse) library(raster) library(sf) library(fasterize) library(sp) lc_full <- raster("../Circuitscape/CS_Input/Landcover/NLCD_2016_Land_Cover_L48_20190424/NLCD_2016_Land_Cover_L48_20190424.img") roi <- read_sf("../Circuitscape...
/R/CSLayerPrep.R
no_license
lcpowers/GoatRepo
R
false
false
3,295
r
### Preparing the goat resistance layer for CS ### rm(list=ls()) library(rgdal) library(tidyverse) library(raster) library(sf) library(fasterize) library(sp) lc_full <- raster("../Circuitscape/CS_Input/Landcover/NLCD_2016_Land_Cover_L48_20190424/NLCD_2016_Land_Cover_L48_20190424.img") roi <- read_sf("../Circuitscape...
library(shiny) source("scenario_planner.R") function(input, output) { data <- reactive(function() { read.csv(inFile$datapath, header=input$header, sep=input$sep, quote=input$quote) }) output$user_data <- renderTable({ inFile <- input$user_file if (is.null(inFile)) ...
/old-working-app/server.R
no_license
chrisdaly/Shiny-App-Random-Forest
R
false
false
831
r
library(shiny) source("scenario_planner.R") function(input, output) { data <- reactive(function() { read.csv(inFile$datapath, header=input$header, sep=input$sep, quote=input$quote) }) output$user_data <- renderTable({ inFile <- input$user_file if (is.null(inFile)) ...
require(tidyverse) require(data.table) require(rjson) rm(list=ls()) #### Corrections scripts temp = tail(list.files(path = "data-rivm/casus-datasets/",pattern="*.csv", full.names = T),2) myfiles = lapply(temp, read.csv) df <- map_dfr(myfiles, ~{ .x }) df$date <- as.Date(df$Date_file) df.cases <- as.data.frame(tabl...
/workflow/dashboards/rivm-date-corrections.R
permissive
MaartenSiersema/covid-19
R
false
false
10,028
r
require(tidyverse) require(data.table) require(rjson) rm(list=ls()) #### Corrections scripts temp = tail(list.files(path = "data-rivm/casus-datasets/",pattern="*.csv", full.names = T),2) myfiles = lapply(temp, read.csv) df <- map_dfr(myfiles, ~{ .x }) df$date <- as.Date(df$Date_file) df.cases <- as.data.frame(tabl...
util<-read.csv(file.choose()) summary(util) str(util) head(util) tail(util) attach(util) # DDERIVING UTILIZATION COLUMN =1-percent.idle util$Utilization<-1-Percent.Idle head(util,12) # HANDLING DATE AND TIME ?POSIXct # HERE THE DATA SET HAVE EUROPEAN FORMAT BY CHECKING HEAD AND TAIL # BUT IF WE DONT KNOW...
/3 Lists.R
no_license
dhananjay-nalawade/R_Programming_A-Z_for_Data-Science_Advanced_Analytics
R
false
false
10,944
r
util<-read.csv(file.choose()) summary(util) str(util) head(util) tail(util) attach(util) # DDERIVING UTILIZATION COLUMN =1-percent.idle util$Utilization<-1-Percent.Idle head(util,12) # HANDLING DATE AND TIME ?POSIXct # HERE THE DATA SET HAVE EUROPEAN FORMAT BY CHECKING HEAD AND TAIL # BUT IF WE DONT KNOW...
#### Define column indices of time variables (to be excluded from tests) timeIndices = c() timeIndices = foreach(n = 1:length(timeCols), .combine = c) %dopar% { temp = grep(timeCols[n], colnames(input), ignore.case = TRUE) } notTimeCols = c(1:ncol(input))[-timeIndices] lagLevels = c(seq(1, 21, 1)) #### Generat...
/benchm/benchm_foreach.R
no_license
ldanov/16_SPL_RAwMTSD
R
false
false
3,412
r
#### Define column indices of time variables (to be excluded from tests) timeIndices = c() timeIndices = foreach(n = 1:length(timeCols), .combine = c) %dopar% { temp = grep(timeCols[n], colnames(input), ignore.case = TRUE) } notTimeCols = c(1:ncol(input))[-timeIndices] lagLevels = c(seq(1, 21, 1)) #### Generat...
library(dplyr) #save current locale to restore it later lct <- Sys.getlocale("LC_TIME"); #set standard locals to get English labels etc. (Names of the Weekdays) Sys.setlocale("LC_TIME", "C") #load the whole set into memory (read.csv2 has semi-colon as separator) hps<-read.csv2("household_power_consumption.txt",na.s...
/plot3.R
no_license
DedekDDK/ExData_Plotting1
R
false
false
1,522
r
library(dplyr) #save current locale to restore it later lct <- Sys.getlocale("LC_TIME"); #set standard locals to get English labels etc. (Names of the Weekdays) Sys.setlocale("LC_TIME", "C") #load the whole set into memory (read.csv2 has semi-colon as separator) hps<-read.csv2("household_power_consumption.txt",na.s...
# Operador "<<-" usado para atribuir um valor a # objeto em um ambiente que é diferente do atual # Armazenando a inversa de uma matriz # Inversa da matriz custa tempo de computação # Melhor armazenar para não computar novamente makeCacheMatrix = function(x = matrix()) { inversa = NULL Capta = functio...
/cachematrix.R
no_license
RafaelGBdeAraujo/Programming-Assignment-2-for-R-Programming-on-Coursera
R
false
false
2,345
r
# Operador "<<-" usado para atribuir um valor a # objeto em um ambiente que é diferente do atual # Armazenando a inversa de uma matriz # Inversa da matriz custa tempo de computação # Melhor armazenar para não computar novamente makeCacheMatrix = function(x = matrix()) { inversa = NULL Capta = functio...
rm(list=ls()) library(igraph) a<-load(file="Data/Raw Data Objects.RData") display.contexts<-c("Gear","Weather","Location","Activity","T. Bycatch", "Tech.", "Regs.","Finance","Capt.") short.contexts<-short.names[4:12] short.contexts.t1<-c("turtle",short.contexts[!short.contexts=="turtle"]) display.contexts.t1<-c("T. By...
/Figure S4 - Eccentricity Mean.R
no_license
JoshFirth/bycatch_information_flow
R
false
false
4,292
r
rm(list=ls()) library(igraph) a<-load(file="Data/Raw Data Objects.RData") display.contexts<-c("Gear","Weather","Location","Activity","T. Bycatch", "Tech.", "Regs.","Finance","Capt.") short.contexts<-short.names[4:12] short.contexts.t1<-c("turtle",short.contexts[!short.contexts=="turtle"]) display.contexts.t1<-c("T. By...
library(adiv) ### Name: evopca ### Title: Evolutionary Principal Component analyses ### Aliases: evopcachord evopcahellinger ### Keywords: models ### ** Examples data(batcomm) ab <- batcomm$ab phy <- read.tree(text=batcomm$tre) plot(phy, show.node=TRUE) evopcaHbat <- evopcahellinger(phy, ab, scan=FALSE, nf=3) dist...
/data/genthat_extracted_code/adiv/examples/evopca.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
851
r
library(adiv) ### Name: evopca ### Title: Evolutionary Principal Component analyses ### Aliases: evopcachord evopcahellinger ### Keywords: models ### ** Examples data(batcomm) ab <- batcomm$ab phy <- read.tree(text=batcomm$tre) plot(phy, show.node=TRUE) evopcaHbat <- evopcahellinger(phy, ab, scan=FALSE, nf=3) dist...
/AHM1_ch10/AHM1_10.12.R
no_license
trashbirdecology/AHM_code
R
false
false
7,397
r
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AzureAuthenticate.R \name{azureAuthenticate} \alias{azureAuthenticate} \title{Authenticates against Azure Active directory application.} \usage{ azureAuthenticate(azureActiveContext, tenantID, clientID, authKey, verbose = FALSE) } \argument...
/man/azureAuthenticate.Rd
no_license
gittu4/AzureSMR
R
false
true
1,311
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AzureAuthenticate.R \name{azureAuthenticate} \alias{azureAuthenticate} \title{Authenticates against Azure Active directory application.} \usage{ azureAuthenticate(azureActiveContext, tenantID, clientID, authKey, verbose = FALSE) } \argument...
## Program: plot4.R ## ## Coursera exdata-032: Exploratory Data Analysis ## Author: Ryan Maley ## ## plot4 <- function (){ ## ## Produces multiple plots ## ZipArchive <- tempfile() ZipArchive <- "exdata_data_household_power_consumption.zip" ## Download t...
/plot4.R
no_license
RyanMaley/ExData_Plotting1
R
false
false
2,464
r
## Program: plot4.R ## ## Coursera exdata-032: Exploratory Data Analysis ## Author: Ryan Maley ## ## plot4 <- function (){ ## ## Produces multiple plots ## ZipArchive <- tempfile() ZipArchive <- "exdata_data_household_power_consumption.zip" ## Download t...
setwd("~/a_MOOC/Coursera classes/Exploratory Data Analysis") # Plot 4 df <- read.table("household_power_consumption.txt", header = TRUE, sep = ";", colClasses = c(Date = "character", Time = "character", Global_active_power = "numeric", Global_reactive_power = "numeric", Voltage = "numeric", Global_inte...
/codeplot4.R
no_license
claudealandry/ExData_Plotting1
R
false
false
1,792
r
setwd("~/a_MOOC/Coursera classes/Exploratory Data Analysis") # Plot 4 df <- read.table("household_power_consumption.txt", header = TRUE, sep = ";", colClasses = c(Date = "character", Time = "character", Global_active_power = "numeric", Global_reactive_power = "numeric", Voltage = "numeric", Global_inte...
rm(list=ls()) library(tidyr) library(gtools) library(WriteXLS) library(drc) library(svDialogs) library(ggplot2) library(cowplot) library(readxl) location=dlg_open("~/Home/",title = "Please select your file")$res (df=read_xlsx(location,col_names = F)) (df=as.data.frame(df)) colnames(df)=NULL output=dlg_dir("~/Home/",...
/Elisa script L.R
no_license
Pestudkaru/Elisa-evaluation-script
R
false
false
7,181
r
rm(list=ls()) library(tidyr) library(gtools) library(WriteXLS) library(drc) library(svDialogs) library(ggplot2) library(cowplot) library(readxl) location=dlg_open("~/Home/",title = "Please select your file")$res (df=read_xlsx(location,col_names = F)) (df=as.data.frame(df)) colnames(df)=NULL output=dlg_dir("~/Home/",...
x=hist(iris[,1]) x class(x) b=list() b[[1]]=1:9 b[[2]]=1:8 b[[3]]=(b$counts/diff(b$breaks))/sum(b$counts) b[[4]]=(b$breaks[1:8]+b$breaks[2:9])/2 names(b)=c("a","b") name=names(x) names(b)=name[1] names(b)=name[1:2] names(b)=name[1:3] names(b)=name[1:4] class(b)="histogram" plot(b) (x$counts/diff(x$breaks))/sum(x$count...
/paper code/paper test.R
no_license
TSR2/2015-9-1-R
R
false
false
7,660
r
x=hist(iris[,1]) x class(x) b=list() b[[1]]=1:9 b[[2]]=1:8 b[[3]]=(b$counts/diff(b$breaks))/sum(b$counts) b[[4]]=(b$breaks[1:8]+b$breaks[2:9])/2 names(b)=c("a","b") name=names(x) names(b)=name[1] names(b)=name[1:2] names(b)=name[1:3] names(b)=name[1:4] class(b)="histogram" plot(b) (x$counts/diff(x$breaks))/sum(x$count...
library(annotate) library(stats) library(mgcv) library(rms) library(utils) ########################################################################################### # Function for RNA-Enrich: A cut-off free functional enrichment testing method # for RNA-seq with improved detection power # Written by: Chee Lee, U...
/R/RNAenrich.R
no_license
jdidion/DEUtils
R
false
false
14,867
r
library(annotate) library(stats) library(mgcv) library(rms) library(utils) ########################################################################################### # Function for RNA-Enrich: A cut-off free functional enrichment testing method # for RNA-seq with improved detection power # Written by: Chee Lee, U...
#' @title Very first function #' #' @description This instructs the student on the basics of function making #' #' @details Welcome to STATS at OU -- we will be learning R from the ground up. RAR man! #' #' @seealso \code{\link{plot}} #' #' @param x This is the name of a vector #' #' @param ... extra arguments which...
/R/firstfun.R
permissive
Hachemi-CRSTRA/Intro2R
R
false
false
2,864
r
#' @title Very first function #' #' @description This instructs the student on the basics of function making #' #' @details Welcome to STATS at OU -- we will be learning R from the ground up. RAR man! #' #' @seealso \code{\link{plot}} #' #' @param x This is the name of a vector #' #' @param ... extra arguments which...
##' Compute convex hull of intersection of two sets of points ##' @param ps1 First set of points ##' @param ps2 Second set of points ##' @param tol Tolerance used to determine if a feasible point lies ##' within the convex hulls of both points and to round off the ##' points generated by the halfspace intersection,...
/pkg/R/intersectn.R
no_license
Bisaloo/geometry
R
false
false
11,478
r
##' Compute convex hull of intersection of two sets of points ##' @param ps1 First set of points ##' @param ps2 Second set of points ##' @param tol Tolerance used to determine if a feasible point lies ##' within the convex hulls of both points and to round off the ##' points generated by the halfspace intersection,...
\name{trackit-internal} \title{Internal trackit objects} \alias{approxDeltaT} \alias{deg.to.rad} \alias{JD} \alias{JDE} \alias{obliquity} \alias{rad.to.deg} \alias{sidereal.UT} \alias{solar.altitude} \alias{solar.coordinates} \alias{solar.coordinates.local} \description{Internal trackit objects.} \details{These...
/trackit/man/trackit-internal.Rd
no_license
positioning/kalmanfilter
R
false
false
377
rd
\name{trackit-internal} \title{Internal trackit objects} \alias{approxDeltaT} \alias{deg.to.rad} \alias{JD} \alias{JDE} \alias{obliquity} \alias{rad.to.deg} \alias{sidereal.UT} \alias{solar.altitude} \alias{solar.coordinates} \alias{solar.coordinates.local} \description{Internal trackit objects.} \details{These...
..density.. <- NULL # need to make variable defined #' Check propensity score overlap #' #' @description Results in a plot to check whether the propensity score has adequate overlap between treatment groups #' #' @param x The design matrix (not including intercept term) #' @param trt treatment vector with each element...
/R/check_overlap.R
no_license
jaredhuling/personalized
R
false
false
7,166
r
..density.. <- NULL # need to make variable defined #' Check propensity score overlap #' #' @description Results in a plot to check whether the propensity score has adequate overlap between treatment groups #' #' @param x The design matrix (not including intercept term) #' @param trt treatment vector with each element...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/catboost.R \name{catboost.predict} \alias{catboost.predict} \title{Apply the model} \usage{ catboost.predict(model, pool, verbose = FALSE, prediction_type = "RawFormulaVal", ntree_start = 0, ntree_end = 0, thread_count = -1) } \arguments{...
/catboost/R-package/man/catboost.predict.Rd
permissive
Cyberalex13/catboost
R
false
true
1,792
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/catboost.R \name{catboost.predict} \alias{catboost.predict} \title{Apply the model} \usage{ catboost.predict(model, pool, verbose = FALSE, prediction_type = "RawFormulaVal", ntree_start = 0, ntree_end = 0, thread_count = -1) } \arguments{...
max_futureVol_parallel <- function(lower, upper, optimcontrol=NULL, batchsize, integration.param, T, model, new.noise.var=0,typeEx=">"){ optim.option <- optimcontrol$optim.option if(is.null(optim.option)) optim...
/R/max_futureVol_parallel.R
no_license
cran/KrigInv
R
false
false
10,322
r
max_futureVol_parallel <- function(lower, upper, optimcontrol=NULL, batchsize, integration.param, T, model, new.noise.var=0,typeEx=">"){ optim.option <- optimcontrol$optim.option if(is.null(optim.option)) optim...
library(testthat) source("utils.R") invoke_test <- function(expected_res, ...) { res <- seqR::count_kmers(hash_dim = 2, verbose=FALSE, ...) expect_matrices_equal(as.matrix(res), expected_res) } test_that("(string vector) count 3-mers for sequences A+", { sq ...
/tests/testthat/test_count_kmers_string_vector.R
permissive
slowikj/seqR
R
false
false
2,707
r
library(testthat) source("utils.R") invoke_test <- function(expected_res, ...) { res <- seqR::count_kmers(hash_dim = 2, verbose=FALSE, ...) expect_matrices_equal(as.matrix(res), expected_res) } test_that("(string vector) count 3-mers for sequences A+", { sq ...
#CcSCB_DSM_analysis # should fit into the chunk named dsm_analysis in Cc in SCB.Rmd # Started mid July 2016 # using code in Appendix from #Miller et al. 2013. Spatial models for distance sampling data: recent developments and future directions. Methods in Ecology and Evolution 4:1001-1010. rm(list=ls()) source('CcSC...
/CcSCB_DSM_analysis_Tweedie_01Dec2016.R
no_license
mteguchi/SCB_AerialSurvey
R
false
false
6,242
r
#CcSCB_DSM_analysis # should fit into the chunk named dsm_analysis in Cc in SCB.Rmd # Started mid July 2016 # using code in Appendix from #Miller et al. 2013. Spatial models for distance sampling data: recent developments and future directions. Methods in Ecology and Evolution 4:1001-1010. rm(list=ls()) source('CcSC...
# set the working directory for the session to where the datasets are stored setwd("C:/Users/epauste/Desktop/Coursera/assignments/R_Programming/week4") #------------------------------------------------------------------------------- # Create a function that # reads outcome dataset # returns character vector o...
/assignment_3/best.R
no_license
epauste/R_Programming
R
false
false
2,053
r
# set the working directory for the session to where the datasets are stored setwd("C:/Users/epauste/Desktop/Coursera/assignments/R_Programming/week4") #------------------------------------------------------------------------------- # Create a function that # reads outcome dataset # returns character vector o...
play.shreddr = function() { ### setup pixels = matrix(c( # 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,#0 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3...
/Shreddr.R
no_license
eugeneh101/Shreddr
R
false
false
8,102
r
play.shreddr = function() { ### setup pixels = matrix(c( # 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,#0 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3...
library(shiny) library(ggplot2) library(dplyr) # create the dflfcgm dataframe dflfcgm <- read.csv('data/lfc_scorers_tl_pos_age.csv', header=TRUE) ggplot_age_vs_lgoals <- function(df, players) { # Return ggplot of Age vs League Goals for given players in dataframe. # # Given the low number of points, ggplot's g...
/Rversion/lfcgmRv1/server.R
permissive
terrydolan/lfcgm
R
false
false
2,559
r
library(shiny) library(ggplot2) library(dplyr) # create the dflfcgm dataframe dflfcgm <- read.csv('data/lfc_scorers_tl_pos_age.csv', header=TRUE) ggplot_age_vs_lgoals <- function(df, players) { # Return ggplot of Age vs League Goals for given players in dataframe. # # Given the low number of points, ggplot's g...