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
# All graphics plotted here are showed in 16S rRNA gene amplicon using dada2pipeline Rplots file # Installing and importing packages library(dada2) path <- "C:\\Users\\mclar\\Downloads\\OneDrive-2020-01-08 (1)" list.files(path) #[1] "B1IV_R1.fastq" "B1IV_R2.fastq" "B1V_R1.fastq" "B1V_R2.fastq" #"B2II_...
/16S rRNA gene amplicon using dada2pipeline.R
no_license
FranciscoGarciaA49/Code
R
false
false
19,592
r
# All graphics plotted here are showed in 16S rRNA gene amplicon using dada2pipeline Rplots file # Installing and importing packages library(dada2) path <- "C:\\Users\\mclar\\Downloads\\OneDrive-2020-01-08 (1)" list.files(path) #[1] "B1IV_R1.fastq" "B1IV_R2.fastq" "B1V_R1.fastq" "B1V_R2.fastq" #"B2II_...
#' Generate a boxplot of the per posistion quality score from basic statistics results #' @param basic_statistics the object that is the dataframe of the mean, median and quantiles of the FASTQ file from basic statistics function #' @param writefile the object indicating intent to save the plot as pdf file, set default...
/R/plot_quality_score.R
no_license
fernandogelin/qckitfastq
R
false
false
1,339
r
#' Generate a boxplot of the per posistion quality score from basic statistics results #' @param basic_statistics the object that is the dataframe of the mean, median and quantiles of the FASTQ file from basic statistics function #' @param writefile the object indicating intent to save the plot as pdf file, set default...
firstDigit <- function(x) { trunc(x / 10^(floor(log(abs(x),10)))) } # lengths (mi) of 141 major North American rivers table(firstDigit(rivers)) # lengths in miles table(firstDigit(1.61 * rivers)) # lengths in km table(firstDigit(5280 * rivers)) # lengths in feet
/inst/snippet/firstDigit.R
no_license
cran/fastR
R
false
false
292
r
firstDigit <- function(x) { trunc(x / 10^(floor(log(abs(x),10)))) } # lengths (mi) of 141 major North American rivers table(firstDigit(rivers)) # lengths in miles table(firstDigit(1.61 * rivers)) # lengths in km table(firstDigit(5280 * rivers)) # lengths in feet
#' Glide component creation #' #' Insert a glide component in the current shiny app UI #' #' @param id optional HTML id of the glide root element. #' @param next_label label to be used in the "next" control. #' @param previous_label label to be used in the "back" control. #' @param loading_label label to be used in the...
/R/elements.R
no_license
takewiki/shinyglide
R
false
false
7,637
r
#' Glide component creation #' #' Insert a glide component in the current shiny app UI #' #' @param id optional HTML id of the glide root element. #' @param next_label label to be used in the "next" control. #' @param previous_label label to be used in the "back" control. #' @param loading_label label to be used in the...
#3 getPositive_count<-function(x) { length(x$ScanCount[x$ScanCount>0]) } #4 getNegative_count<-function(x) { length(x$ScanCount[x$ScanCount<0]) } #5 getSumOfPositives<-function(x) { sum(x$ScanCount[x$ScanCount>0]) } #6 getSumOfNegatives<-function(x) { abs(sum(x$ScanCount[x$ScanCount<0])) } #7 getPositiveRatio<-...
/Walmart_Trip_Type/scripts/new_fDefinitions.R
no_license
jothiprakash/Kaggle_Challenges
R
false
false
4,840
r
#3 getPositive_count<-function(x) { length(x$ScanCount[x$ScanCount>0]) } #4 getNegative_count<-function(x) { length(x$ScanCount[x$ScanCount<0]) } #5 getSumOfPositives<-function(x) { sum(x$ScanCount[x$ScanCount>0]) } #6 getSumOfNegatives<-function(x) { abs(sum(x$ScanCount[x$ScanCount<0])) } #7 getPositiveRatio<-...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/section.R \name{sectionSmooth} \alias{sectionSmooth} \title{Smooth a Section} \usage{ sectionSmooth(section, method = c("spline", "barnes"), debug = getOption("oceDebug"), ...) } \arguments{ \item{section}{A \code{section} object containing...
/man/sectionSmooth.Rd
no_license
AnneMTreasure/oce
R
false
true
2,656
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/section.R \name{sectionSmooth} \alias{sectionSmooth} \title{Smooth a Section} \usage{ sectionSmooth(section, method = c("spline", "barnes"), debug = getOption("oceDebug"), ...) } \arguments{ \item{section}{A \code{section} object containing...
library(ismev) ######## This is the actual function to run for the package############ Fiducial.GPD.known.thresh <- function( X, a, beta, CI.level, g = NaN, s = NaN, sd.g = NaN, sd.s = NaN, skip.number = NaN, chain.length = 10000, ...
/inst/Rcode/GPD_package_known_threshold.R
no_license
yanliangs/gfiExtremes
R
false
false
8,847
r
library(ismev) ######## This is the actual function to run for the package############ Fiducial.GPD.known.thresh <- function( X, a, beta, CI.level, g = NaN, s = NaN, sd.g = NaN, sd.s = NaN, skip.number = NaN, chain.length = 10000, ...
# is small rainfall events linked to small delta ndvi # is large rainfall events linked to large delta ndvi rm(list=ls(all=TRUE)) setwd("/Volumes/P_Harddrive/") library(sp) library(raster) library(SPAr) library(ncdf4) library(RNetCDF) library(segmented) file.precip <- "/Volumes/P_Harddrive/LAI_precip_variabilit...
/ccrc/Rainfall~vegetation/NDVI/local regression ndvi_rainfal.R
no_license
patnicolle/GITBANK
R
false
false
2,017
r
# is small rainfall events linked to small delta ndvi # is large rainfall events linked to large delta ndvi rm(list=ls(all=TRUE)) setwd("/Volumes/P_Harddrive/") library(sp) library(raster) library(SPAr) library(ncdf4) library(RNetCDF) library(segmented) file.precip <- "/Volumes/P_Harddrive/LAI_precip_variabilit...
## The main purpose of the first function, makeCacheMatrix, is to create ## a matrix object, m, which can be cached. The second function returns ## the inverse of the original matrix (put through makeCacheMatrix), either ## by computing it if it has not already been computed, or by returning ## the cached value. ## Cr...
/cachematrix.R
no_license
joshbelcher159/ProgrammingAssignment2
R
false
false
1,316
r
## The main purpose of the first function, makeCacheMatrix, is to create ## a matrix object, m, which can be cached. The second function returns ## the inverse of the original matrix (put through makeCacheMatrix), either ## by computing it if it has not already been computed, or by returning ## the cached value. ## Cr...
library(oce) ### Name: as.sealevel ### Title: Coerce Data Into a Sealevel Object ### Aliases: as.sealevel ### ** Examples library(oce) # Construct a year of M2 tide, starting at the default time # 0000-01-01T00:00:00. h <- seq(0, 24*365) elevation <- 2.0 * sin(2*pi*h/12.4172) sl <- as.sealevel(elevation) summary(s...
/data/genthat_extracted_code/oce/examples/as.sealevel.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
457
r
library(oce) ### Name: as.sealevel ### Title: Coerce Data Into a Sealevel Object ### Aliases: as.sealevel ### ** Examples library(oce) # Construct a year of M2 tide, starting at the default time # 0000-01-01T00:00:00. h <- seq(0, 24*365) elevation <- 2.0 * sin(2*pi*h/12.4172) sl <- as.sealevel(elevation) summary(s...
library(lme4) library(plyr) library(dplyr) library(ggplot2) source('R/functions.R') data <- file_read('data/gapminder-FiveYearData.csv') %>% mutate(lnLifeExp = log(lifeExp), lnGdpPercap = log(gdpPercap)) model <- lmer(lnLifeExp ~ lnGdpPercap + year + (1 | continent), data = data) output_model <- coef(model)$co...
/analysis.R
no_license
rosielayfield/gapminder
R
false
false
460
r
library(lme4) library(plyr) library(dplyr) library(ggplot2) source('R/functions.R') data <- file_read('data/gapminder-FiveYearData.csv') %>% mutate(lnLifeExp = log(lifeExp), lnGdpPercap = log(gdpPercap)) model <- lmer(lnLifeExp ~ lnGdpPercap + year + (1 | continent), data = data) output_model <- coef(model)$co...
# !/usr/bin/r ## if you do not have /usr/bin/r from littler, just use Rscript ## ## Copyright 2014 - 2017 Dirk Eddelbuettel ## Released under GPL-2 or later ## Modified by Rob Hyndman for use with TimeSeries.ctv ctv <- "TimeSeries" ctvfile <- paste0(ctv, ".ctv") htmlfile <- paste0(ctv, ".html") # mdfile <- paste0(...
/B_analysts_sources_github/robjhyndman/ctv-TimeSeries/ctv2md.r
no_license
Irbis3/crantasticScrapper
R
false
false
1,751
r
# !/usr/bin/r ## if you do not have /usr/bin/r from littler, just use Rscript ## ## Copyright 2014 - 2017 Dirk Eddelbuettel ## Released under GPL-2 or later ## Modified by Rob Hyndman for use with TimeSeries.ctv ctv <- "TimeSeries" ctvfile <- paste0(ctv, ".ctv") htmlfile <- paste0(ctv, ".html") # mdfile <- paste0(...
#' Creates a phi x phi grid (i.e., the mesh on a single two-dimensional face of a larger hypercube) of d-dimensional points, where the regularity of the grid has been adjusted to avoid clustering in the corners. #' #' @param d The number of dimensions for the unit spheroid #' @param phi Fineness of the mesh along each...
/R/fill_adj_2Dface.R
no_license
cran/SyScSelection
R
false
false
1,664
r
#' Creates a phi x phi grid (i.e., the mesh on a single two-dimensional face of a larger hypercube) of d-dimensional points, where the regularity of the grid has been adjusted to avoid clustering in the corners. #' #' @param d The number of dimensions for the unit spheroid #' @param phi Fineness of the mesh along each...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/yingtools2.R \name{univariate.stcox} \alias{univariate.stcox} \title{...Title...} \usage{ ...usage.code... ...details... } \arguments{ \item{.param1.}{...param1.description...} \item{.param2.}{...param2.description...} } \value{ ...descript...
/man/univariate.stcox.Rd
no_license
jasonzhao0307/yingtools2
R
false
true
526
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/yingtools2.R \name{univariate.stcox} \alias{univariate.stcox} \title{...Title...} \usage{ ...usage.code... ...details... } \arguments{ \item{.param1.}{...param1.description...} \item{.param2.}{...param2.description...} } \value{ ...descript...
library(shiny) # Define UI for dataset viewer application shinyUI(fluidPage( # Application title titlePanel("Simple calculator"), # Sidebar with controls to input the numbers and operation we want to do with numbers sidebarLayout( sidebarPanel( h3('Inputs'), numericInput("N1", "Type the f...
/ui.R
no_license
matyt5am/DevelopingDataProduct
R
false
false
674
r
library(shiny) # Define UI for dataset viewer application shinyUI(fluidPage( # Application title titlePanel("Simple calculator"), # Sidebar with controls to input the numbers and operation we want to do with numbers sidebarLayout( sidebarPanel( h3('Inputs'), numericInput("N1", "Type the f...
#################### ### freq_labeler ### #################### freq_labeler <- function(.grouping) { results <- as.data.frame(table(.grouping)) rownames(results) <- results[[".grouping"]] results[names(results) != ".grouping"] } ################## ### catto_freq ### ################## #' Frequency encoding #' ...
/R/freq.R
permissive
baifengbai/cattonum
R
false
false
1,521
r
#################### ### freq_labeler ### #################### freq_labeler <- function(.grouping) { results <- as.data.frame(table(.grouping)) rownames(results) <- results[[".grouping"]] results[names(results) != ".grouping"] } ################## ### catto_freq ### ################## #' Frequency encoding #' ...
#' Example Rawdata set that contains data for both kills and deaths for Market. #' #' #' @source unpacked from game files of INS under Overview of parsed map information. "Rawdata"
/R/Rawdata.R
no_license
KCIV/VGheatmap
R
false
false
181
r
#' Example Rawdata set that contains data for both kills and deaths for Market. #' #' #' @source unpacked from game files of INS under Overview of parsed map information. "Rawdata"
# Downloading data base library(tidyverse) library(dplyr) library(DT) library(zoo) # Finance data: library(quantmod) options("getSymbols.warning4.0"=FALSE) # Modeling library(tidyquant) #Getting symbols symbols = data.frame(read_csv("data/tickers.csv")) # Not in function: "%notin%" = Negate("%in%") time_series = lis...
/scripts/download_data.R
no_license
BrunoPlzk/ankh-am
R
false
false
953
r
# Downloading data base library(tidyverse) library(dplyr) library(DT) library(zoo) # Finance data: library(quantmod) options("getSymbols.warning4.0"=FALSE) # Modeling library(tidyquant) #Getting symbols symbols = data.frame(read_csv("data/tickers.csv")) # Not in function: "%notin%" = Negate("%in%") time_series = lis...
\name{celltype_mean_expression} \alias{celltype_mean_expression} \title{ Obtain the Cell-Type-Specific Mean Expression Levels from the Output of the \code{BUSseq_MCMC} Function } \description{ The function gives the estimated cell-type-specific mean expression levels in the output \code{SingleCellExper...
/man/celltype_mean_expression.Rd
no_license
songfd2018/BUSseq
R
false
false
1,106
rd
\name{celltype_mean_expression} \alias{celltype_mean_expression} \title{ Obtain the Cell-Type-Specific Mean Expression Levels from the Output of the \code{BUSseq_MCMC} Function } \description{ The function gives the estimated cell-type-specific mean expression levels in the output \code{SingleCellExper...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/attribute-webgeom.R \docType{methods} \name{attribute<-} \alias{attribute<-} \alias{attribute} \alias{attribute<-,webgeom-method} \alias{attribute,webgeom-method} \title{the attribute of an webgeom object} \usage{ attribute(.Object) <- value ...
/man/attribute.Rd
permissive
mdsumner/geoknife
R
false
true
581
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/attribute-webgeom.R \docType{methods} \name{attribute<-} \alias{attribute<-} \alias{attribute} \alias{attribute<-,webgeom-method} \alias{attribute,webgeom-method} \title{the attribute of an webgeom object} \usage{ attribute(.Object) <- value ...
Springboard # This code is for the Titanic Exercise. The goal is to finding the chances of surviving when the ship sank. # Structure of the titanic dataset str(titanic) # First just did a simple bar plot by mapping Pclass and filling it with Sex ggplot(titanic, aes(x = factor(Pclass), fill = factor(Sex))) + geom_b...
/ggplot2-Titanic-script.R
no_license
adityatandel/ggplot2-titanic
R
false
false
960
r
Springboard # This code is for the Titanic Exercise. The goal is to finding the chances of surviving when the ship sank. # Structure of the titanic dataset str(titanic) # First just did a simple bar plot by mapping Pclass and filling it with Sex ggplot(titanic, aes(x = factor(Pclass), fill = factor(Sex))) + geom_b...
#' @title Visualize OTU Core #' @description Core visualization (2D). #' @param x A \code{\link{phyloseq}} object or a core matrix #' @param prevalences a vector of prevalence percentages in [0,1] #' @param detections a vector of intensities around the data range, #' or a scalar indicating the number of intervals in th...
/R/plot_core.R
no_license
rpatil8/microbiome
R
false
false
7,492
r
#' @title Visualize OTU Core #' @description Core visualization (2D). #' @param x A \code{\link{phyloseq}} object or a core matrix #' @param prevalences a vector of prevalence percentages in [0,1] #' @param detections a vector of intensities around the data range, #' or a scalar indicating the number of intervals in th...
#' module_gcam.korea_L222.en_transformation_korea #' #' Prepare the assumptions and calibrated outputs for energy transformation supplysectors, subsectors, and technologies specific to subregion's sectors and/or states. #' #' @param command API command to execute #' @param ... other optional parameters, depending on co...
/R/zchunk_L222.en_transformation_korea.R
permissive
rohmin9122/gcam-korea-release
R
false
false
30,943
r
#' module_gcam.korea_L222.en_transformation_korea #' #' Prepare the assumptions and calibrated outputs for energy transformation supplysectors, subsectors, and technologies specific to subregion's sectors and/or states. #' #' @param command API command to execute #' @param ... other optional parameters, depending on co...
require(mlbench) data(Vehicle) require(Rdbn) ## Scale all variables to [0,1]. x <- t(Vehicle[,c(1:18)]) y <- Vehicle[,19] for(i in c(1:(NCOL(Vehicle)-1))) { x[i,] <- logistic_function(scale(Vehicle[,i])*2) ## 2 is an arbitrarily chosen value... } trainIndx <- sample(c(1:NCOL(x)), NCOL(x)*0.8, replace=FALSE) testIn...
/test_functions/test_Vehicle.R
permissive
errord/Rdbn
R
false
false
1,846
r
require(mlbench) data(Vehicle) require(Rdbn) ## Scale all variables to [0,1]. x <- t(Vehicle[,c(1:18)]) y <- Vehicle[,19] for(i in c(1:(NCOL(Vehicle)-1))) { x[i,] <- logistic_function(scale(Vehicle[,i])*2) ## 2 is an arbitrarily chosen value... } trainIndx <- sample(c(1:NCOL(x)), NCOL(x)*0.8, replace=FALSE) testIn...
# functions definition block # ### # creates an object to manipulate the data source/s createDataObject <- function(basedir='data') { url <- 'http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip' keyfiles <- list( datafile = sprintf('%s/data.zip', basedir), summary =...
/plot3.R
no_license
rpcgen/ExData_Plotting2
R
false
false
2,688
r
# functions definition block # ### # creates an object to manipulate the data source/s createDataObject <- function(basedir='data') { url <- 'http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip' keyfiles <- list( datafile = sprintf('%s/data.zip', basedir), summary =...
### Utility functions used to deal with matrix or data.frame ######################################################################################################################## # Load a specified column from a set of files, and create a joint table with each column corresponds to a LoadColumn<-function(fns, cnm,...
/dev/extra/TableUtilities.r
no_license
leipzig/rchive
R
false
false
4,747
r
### Utility functions used to deal with matrix or data.frame ######################################################################################################################## # Load a specified column from a set of files, and create a joint table with each column corresponds to a LoadColumn<-function(fns, cnm,...
# HW5: Data Manipulation on CitiBike data #' # Refrain from using any loops (`for`, `while`) and `repeat` for this exercise. #' # 1. Load the packages `readr`. # Use `read_csv()` to create a `tibble` from the # csv file `/course/data/citybike.csv` taken from sampled data # from [Citibike usage data](https://www.citibik...
/Lecture 5/hw5_dplyr5.R
no_license
Zijie-Xia/GR5206-Introduction-to-Data-Science
R
false
false
6,390
r
# HW5: Data Manipulation on CitiBike data #' # Refrain from using any loops (`for`, `while`) and `repeat` for this exercise. #' # 1. Load the packages `readr`. # Use `read_csv()` to create a `tibble` from the # csv file `/course/data/citybike.csv` taken from sampled data # from [Citibike usage data](https://www.citibik...
source(file=file.path('utils', 'r', 'get_packages.R')) source(file=file.path('analysis', 'power', 'load_data.R')) get_packages(c( "knitr", "simr", "dplyr", "rsq", "tictoc", "tinytex") ) # Random Slope Model model_fix_task <- function(chin_effect) { # Intercept and slopes for intervention, ...
/analysis/power/fix_task.R
permissive
TimS70/WebET_Analysis
R
false
false
2,046
r
source(file=file.path('utils', 'r', 'get_packages.R')) source(file=file.path('analysis', 'power', 'load_data.R')) get_packages(c( "knitr", "simr", "dplyr", "rsq", "tictoc", "tinytex") ) # Random Slope Model model_fix_task <- function(chin_effect) { # Intercept and slopes for intervention, ...
\name{CGHoptions-class} \docType{class} \alias{CGHoptions-class} \alias{[,CGHoptions-method} \alias{calling<-,CGHoptions-method} \alias{alpha<-,CGHoptions-method} \alias{beta<-,CGHoptions-method} \alias{nblevels<-,CGHoptions-method} \alias{wavenorm<-,CGHoptions-method} \alias{GCnorm<-,CGHoptions-method} \alias{itermax<...
/man/CGHoptions-class.Rd
no_license
cran/cghseg
R
false
false
3,021
rd
\name{CGHoptions-class} \docType{class} \alias{CGHoptions-class} \alias{[,CGHoptions-method} \alias{calling<-,CGHoptions-method} \alias{alpha<-,CGHoptions-method} \alias{beta<-,CGHoptions-method} \alias{nblevels<-,CGHoptions-method} \alias{wavenorm<-,CGHoptions-method} \alias{GCnorm<-,CGHoptions-method} \alias{itermax<...
# Plot 3 # Of the four types of sources indicated by the type # (point, nonpoint, onroad, nonroad) variable, which of these four sources # have seen decreases in emissions from 1999–2008 for Baltimore City? Which # have seen increases in emissions from 1999–2008? Use the ggplot2 plotting # system to make a plot ans...
/Plot3.R
no_license
Edilmo/ExploratoryDataAnalysisCP2
R
false
false
832
r
# Plot 3 # Of the four types of sources indicated by the type # (point, nonpoint, onroad, nonroad) variable, which of these four sources # have seen decreases in emissions from 1999–2008 for Baltimore City? Which # have seen increases in emissions from 1999–2008? Use the ggplot2 plotting # system to make a plot ans...
### Plots of the teams in Premier League over past decade link = "http://www.football-data.co.uk" ### read in the webpage #Sys.setlocale('LC_ALL','C') webpage = readLines(paste(link,"englandm.php",sep="/"),encoding='UTF-8') print(paste("Downloaded main HTML page from:",link)) ### get the index of the titles ...
/Barclays/premierleague.r
no_license
christopear/UoA-Studentship
R
false
false
2,211
r
### Plots of the teams in Premier League over past decade link = "http://www.football-data.co.uk" ### read in the webpage #Sys.setlocale('LC_ALL','C') webpage = readLines(paste(link,"englandm.php",sep="/"),encoding='UTF-8') print(paste("Downloaded main HTML page from:",link)) ### get the index of the titles ...
# Additional learning task 1 a <- c(1:5) b <- c(6:10) c <- c(11:15) combined_matrix <- cbind(a, b, c) combined_matrix # Additional learning task 2 employee_data_frame <- data.frame( Names = c("Jaspal", "Emma", "Sarah", "Rekha", "Steve"), Age = c(40, 38, 37, 37, 46), Role = c("Trainee", "Lecturer", "Admin", "Recr...
/HLT WK 12/HLT WK 12 additional learning.R
no_license
jaspalsarrah/TTA
R
false
false
1,192
r
# Additional learning task 1 a <- c(1:5) b <- c(6:10) c <- c(11:15) combined_matrix <- cbind(a, b, c) combined_matrix # Additional learning task 2 employee_data_frame <- data.frame( Names = c("Jaspal", "Emma", "Sarah", "Rekha", "Steve"), Age = c(40, 38, 37, 37, 46), Role = c("Trainee", "Lecturer", "Admin", "Recr...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/psql_stj_columns.R \name{psql_stj_columns} \alias{psql_stj_columns} \title{psql_columns} \usage{ psql_stj_columns(con, tbl = NULL) } \arguments{ \item{con}{connection} \item{tbl}{table name} } \value{ a data.frame with 18 columns describing ...
/man/psql_stj_columns.Rd
permissive
thgmoraes/stj
R
false
true
370
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/psql_stj_columns.R \name{psql_stj_columns} \alias{psql_stj_columns} \title{psql_columns} \usage{ psql_stj_columns(con, tbl = NULL) } \arguments{ \item{con}{connection} \item{tbl}{table name} } \value{ a data.frame with 18 columns describing ...
##Quote marks pasted from Zoom chat: knitr::purl(“lec_10_getting_data.Rmd”) ##Quote marks deleted, and re-typed: knitr::purl("lec_10_getting_data.Rmd") library(here) ## first & last years of flow data yr_frst <- 2001 yr_last <- 2020 ## flow gauge ID flow_site <- 12178000 ## get URL for flow data from USGS flow_u...
/R/lec_10_notes.R
no_license
freshbeka/testing
R
false
false
2,609
r
##Quote marks pasted from Zoom chat: knitr::purl(“lec_10_getting_data.Rmd”) ##Quote marks deleted, and re-typed: knitr::purl("lec_10_getting_data.Rmd") library(here) ## first & last years of flow data yr_frst <- 2001 yr_last <- 2020 ## flow gauge ID flow_site <- 12178000 ## get URL for flow data from USGS flow_u...
#' MUCH Merge #' #' \code{MUCH_merge} merges HEMs coming from separate subexperiments into one single dataset. #' A Subexperiment is a measurement of a group of HEMs the size of the allowed PMCs by the machine. #' For MUCH you need to measure each HEM against the rest of them. For instance, let's say that one has 2 PMC...
/R/MUCH.R
no_license
SergiVilardell/mergingTools
R
false
false
3,661
r
#' MUCH Merge #' #' \code{MUCH_merge} merges HEMs coming from separate subexperiments into one single dataset. #' A Subexperiment is a measurement of a group of HEMs the size of the allowed PMCs by the machine. #' For MUCH you need to measure each HEM against the rest of them. For instance, let's say that one has 2 PMC...
dataFile <- "household_power_consumption.txt" data <- read.table(dataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".") subSetData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,] #str(subSetData) datetime <- strptime(paste(subSetData$Date, subSetData$Time, sep=" "), "%d/%m/%Y %H:%M:%S") globalActivePower...
/plot3.R
no_license
Kush614/ExData_Plotting1
R
false
false
882
r
dataFile <- "household_power_consumption.txt" data <- read.table(dataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".") subSetData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,] #str(subSetData) datetime <- strptime(paste(subSetData$Date, subSetData$Time, sep=" "), "%d/%m/%Y %H:%M:%S") globalActivePower...
# Utility functions for steelyhead analysis load_dat_st<- function(wd){ load(file= paste0(wd, "data_compile/st_data/stlsdat.Rdata")) k2<- subset(stlsdat, esu=='Snake' & stock!='B') sts<- subset(k2, as.numeric(format(mca_obs, '%m')) %in% c(6:9)) sts$ftt<- with(sts, as.numeric(gra_obs- mca_obs)) sts<- sts[sts...
/steelyhead/st_suc_util.R
no_license
boppingshoe/adult_still_suc_2018
R
false
false
4,471
r
# Utility functions for steelyhead analysis load_dat_st<- function(wd){ load(file= paste0(wd, "data_compile/st_data/stlsdat.Rdata")) k2<- subset(stlsdat, esu=='Snake' & stock!='B') sts<- subset(k2, as.numeric(format(mca_obs, '%m')) %in% c(6:9)) sts$ftt<- with(sts, as.numeric(gra_obs- mca_obs)) sts<- sts[sts...
KMmean <- function(survObject) { return(durationinforce(survObject$time, survObject$survival)) }
/R/KMmean.R
no_license
fidelisMusakwa/stactuar
R
false
false
98
r
KMmean <- function(survObject) { return(durationinforce(survObject$time, survObject$survival)) }
library(RstoxData) library(lotteryEstimator) # # Functions for preparing data for package lotteryEstimator # #' prepares an example data set #' @param datafile biotic 3 annual data file #' @param species species code to extract #' @param totalLanded total landed weight of species/stock (Kg), used to calculate normali...
/dataPrep.R
no_license
Sea2Data/CatchLotteryEstimation
R
false
false
4,460
r
library(RstoxData) library(lotteryEstimator) # # Functions for preparing data for package lotteryEstimator # #' prepares an example data set #' @param datafile biotic 3 annual data file #' @param species species code to extract #' @param totalLanded total landed weight of species/stock (Kg), used to calculate normali...
# this is server functions which calculates the credit card interest for amount spent # user is allowed to specify interest library(shiny) shinyServer(function(input,output) { output$interest <- reactive({ d<-difftime(input$dt[2], input$dt[1], units = "days") y<-d/as.numeric(input$basis) round...
/server.R
no_license
limwss/Ass_Week4
R
false
false
376
r
# this is server functions which calculates the credit card interest for amount spent # user is allowed to specify interest library(shiny) shinyServer(function(input,output) { output$interest <- reactive({ d<-difftime(input$dt[2], input$dt[1], units = "days") y<-d/as.numeric(input$basis) round...
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source('../../h2o-runit.R') test.GBM.SWpreds <- function(conn) { # Training set has two predictor columns # X1: 10 categorical levels, 100 observations per level; X2: Unif(0,1) noise # Ratio of y = 1 per Level: cat01 = 1.0 (strong predictor),...
/h2o-r/tests/testdir_algos/gbm/runit_GBM_groupsplit_swpreds.R
permissive
knormoyle/forked-h2o-dev
R
false
false
3,136
r
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source('../../h2o-runit.R') test.GBM.SWpreds <- function(conn) { # Training set has two predictor columns # X1: 10 categorical levels, 100 observations per level; X2: Unif(0,1) noise # Ratio of y = 1 per Level: cat01 = 1.0 (strong predictor),...
rm(list=ls()) # functions # known functions # rnorm() - produce normal distribution values # is.numeric() - checks if numeric # is.integer() - checks if integer # is.double() - checks if double # is.character() - checks if character # isTRUE() - checks if TRUE # seq() - create vector by sequence # rep() - create vect...
/section03/functions.R
no_license
AmundsenJunior/r-programming-udemy
R
false
false
924
r
rm(list=ls()) # functions # known functions # rnorm() - produce normal distribution values # is.numeric() - checks if numeric # is.integer() - checks if integer # is.double() - checks if double # is.character() - checks if character # isTRUE() - checks if TRUE # seq() - create vector by sequence # rep() - create vect...
# Нужно по больницам было вывести какой-то показатель(heart attack,heart failure...) по конкретному штату(лучшее, i-тое, худшее) rankhospital <- function(state, outcome_name, num = "best") { setwd("~/Documents/prog/coursera/course2/pa3/rprog-data-ProgAssignment3-data") outcome <- read.csv("outcome-of-care-measures...
/coursera/rankhospital.R
no_license
1um/R
R
false
false
1,207
r
# Нужно по больницам было вывести какой-то показатель(heart attack,heart failure...) по конкретному штату(лучшее, i-тое, худшее) rankhospital <- function(state, outcome_name, num = "best") { setwd("~/Documents/prog/coursera/course2/pa3/rprog-data-ProgAssignment3-data") outcome <- read.csv("outcome-of-care-measures...
## This R function is able to cache potentially time-consuming computations. ## A very long vector may take too lopng to compute the mean, especially if ## it has to be computed repeatedly. If the contents of a vector are not changing, ## it will cache the value of the mean so that it can be looked up in the cache ## ...
/cachematrix.R
no_license
alant4ng/ProgrammingAssignment2
R
false
false
1,831
r
## This R function is able to cache potentially time-consuming computations. ## A very long vector may take too lopng to compute the mean, especially if ## it has to be computed repeatedly. If the contents of a vector are not changing, ## it will cache the value of the mean so that it can be looked up in the cache ## ...
inat <- read.csv(file = "data/pheno_mismatch/inat_adults_cats_ENA.csv", header = TRUE, stringsAsFactors = FALSE) estimate_cat_pheno <- function(binomial, yearofinterest){ lifes <- inat %>% filter(scientific_name == binomial, life_stage == "caterpillar") group <- lifes %>% group_by (lat_bin, lon_bin, ye...
/scripts/adult_vs_cat_comparisions.R
no_license
mbelitz/Pollard-Incidental_Comparisons
R
false
false
3,026
r
inat <- read.csv(file = "data/pheno_mismatch/inat_adults_cats_ENA.csv", header = TRUE, stringsAsFactors = FALSE) estimate_cat_pheno <- function(binomial, yearofinterest){ lifes <- inat %>% filter(scientific_name == binomial, life_stage == "caterpillar") group <- lifes %>% group_by (lat_bin, lon_bin, ye...
#' FB audience state breakdown #' #' Function that returns a data frame with the total audience by state (excludes Washington, DC) for a selected interest. #' @param id_vector: Vector of one or more facebook API interests #' @param name_vector: Vector of one or more facebook API names #' @param platform: "instagram", "...
/R/state_ads_breakdown.R
no_license
Cyranka/fb_audience_analysis
R
false
false
2,462
r
#' FB audience state breakdown #' #' Function that returns a data frame with the total audience by state (excludes Washington, DC) for a selected interest. #' @param id_vector: Vector of one or more facebook API interests #' @param name_vector: Vector of one or more facebook API names #' @param platform: "instagram", "...
install.packages('arules') library(arules) data("Groceries") g0 <- Groceries gfrm0 <- as(g0, 'data.frame') gdat1 <- itemFrequency(g0) itemFrequencyPlot(g0) Groceries r1 <-apriori(g0, parameter = list(confidence=0.5, support=0.01)) r3 <- sort(r1, d=T, by='confidence') inspect(r3) r4 <-apriori(g0, parameter = list(con...
/first_term/Rfile/arules.R
no_license
ducksfrogs/AIQuest
R
false
false
469
r
install.packages('arules') library(arules) data("Groceries") g0 <- Groceries gfrm0 <- as(g0, 'data.frame') gdat1 <- itemFrequency(g0) itemFrequencyPlot(g0) Groceries r1 <-apriori(g0, parameter = list(confidence=0.5, support=0.01)) r3 <- sort(r1, d=T, by='confidence') inspect(r3) r4 <-apriori(g0, parameter = list(con...
#' Newton-Raphson method for computing MLE under logistic regression model #' #' For a simple logistic regression model with an intercept and one slope parameter, this function returns their respective MLE's. Iterations stop once the improvement in successive steps falls under a certain tolerance level. #' #' #' We can...
/R/NR_logit.R
no_license
dchiu911/naim
R
false
false
3,198
r
#' Newton-Raphson method for computing MLE under logistic regression model #' #' For a simple logistic regression model with an intercept and one slope parameter, this function returns their respective MLE's. Iterations stop once the improvement in successive steps falls under a certain tolerance level. #' #' #' We can...
ipython = setRefClass("ipython", fields = list(kernel = "character", ipyexec = "character", message="logical", debug="logical", kill.on.exit="logical")) ipython$methods( initialize = function(kernel=NULL, message=TRUE, debug=FALSE, kill.on.exit=is.null(kernel)) { .se...
/R/ipython.R
permissive
adolfoeliazat/ipython_from_R
R
false
false
4,456
r
ipython = setRefClass("ipython", fields = list(kernel = "character", ipyexec = "character", message="logical", debug="logical", kill.on.exit="logical")) ipython$methods( initialize = function(kernel=NULL, message=TRUE, debug=FALSE, kill.on.exit=is.null(kernel)) { .se...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 2882 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 1970 c c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 1970 c c Input Parameter (command line, fil...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Kronegger-Pfandler-Pichler/dungeon/dungeon_i10-m5-u10-v0.pddl_planlen=5/dungeon_i10-m5-u10-v0.pddl_planlen=5.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
4,480
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 2882 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 1970 c c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 1970 c c Input Parameter (command line, fil...
#' @title HardThr - Iterative Hard Thresholding Algorithm #' @description The function aims to solve \eqn{l_{2,0}} regularized least squares. #' @param A Gene expression data of transcriptome factors (i.e. feature matrix in machine learning). #' The dimension of A is n * t. #' @param B Gene expression data of targe...
/code/R/R/HardThr.R
no_license
JingQinlab/GSO
R
false
false
1,675
r
#' @title HardThr - Iterative Hard Thresholding Algorithm #' @description The function aims to solve \eqn{l_{2,0}} regularized least squares. #' @param A Gene expression data of transcriptome factors (i.e. feature matrix in machine learning). #' The dimension of A is n * t. #' @param B Gene expression data of targe...
#' drawSigma #' #' Draw Sigma (covariance) from posterior distribution #' #' @param X: Matrix, design matrix #' @param Y: Vector, outcomes #' @param mu: Vector, prior mean of beta #' @param nu: Inverse Wishart spread hypeparameter #' @param V: Inverse Wishart location hyperparameter #' @param K: Number of groups #' #' ...
/R/draw_Sigma.R
no_license
haoshu2017/bayestraj
R
false
false
505
r
#' drawSigma #' #' Draw Sigma (covariance) from posterior distribution #' #' @param X: Matrix, design matrix #' @param Y: Vector, outcomes #' @param mu: Vector, prior mean of beta #' @param nu: Inverse Wishart spread hypeparameter #' @param V: Inverse Wishart location hyperparameter #' @param K: Number of groups #' #' ...
## Preprocess data, write TAF data tables ## Before: ## After: library(icesTAF) library(sf) mkdir("data") # read in position data positions <- read.taf("bootstrap/data/surveyPositions/positions.csv") # convert to sf datras_sf <- st_as_sf(positions, coords = c("ShootLong", "ShootLat"), crs = 4326) datras_sf[1:3, ] ...
/data.R
no_license
colinpmillar/ICES-data-in-the-NEA
R
false
false
446
r
## Preprocess data, write TAF data tables ## Before: ## After: library(icesTAF) library(sf) mkdir("data") # read in position data positions <- read.taf("bootstrap/data/surveyPositions/positions.csv") # convert to sf datras_sf <- st_as_sf(positions, coords = c("ShootLong", "ShootLat"), crs = 4326) datras_sf[1:3, ] ...
library(dplyr) library(DESeq2) library(bigWig) library(ggplot2) setwd("/media/wa3j/Seagate2/Documents/PRO/adipogenesis/package/SM/degpca") setwd(dir) ############################################################ ## load data objects and functions ## see pro_norm.R for basic normalization ## and TUmap_analysis.R for ...
/primaryTranscriptAnnotation_code/pro_time_deg_tu.R
no_license
WarrenDavidAnderson/manuscriptCode
R
false
false
3,683
r
library(dplyr) library(DESeq2) library(bigWig) library(ggplot2) setwd("/media/wa3j/Seagate2/Documents/PRO/adipogenesis/package/SM/degpca") setwd(dir) ############################################################ ## load data objects and functions ## see pro_norm.R for basic normalization ## and TUmap_analysis.R for ...
# eval_rnaseq_map.helpers # ~~~~~~~~~~~~~~~~~~~~~~~ # # This module procided some utiilty helpers for quant step library(tidyverse) utl <- new.env(); source(here::here("scripts/utils/base.R"), utl) PATTERNS <- list( transcript = c( cuffdiff = "conv_cuffdiff_to_raw/count_matrix_transcript.tsv", any = "conv...
/scripts/helpers/quant_helper.R
no_license
hmdlab/eval_rnaseqde_map
R
false
false
6,376
r
# eval_rnaseq_map.helpers # ~~~~~~~~~~~~~~~~~~~~~~~ # # This module procided some utiilty helpers for quant step library(tidyverse) utl <- new.env(); source(here::here("scripts/utils/base.R"), utl) PATTERNS <- list( transcript = c( cuffdiff = "conv_cuffdiff_to_raw/count_matrix_transcript.tsv", any = "conv...
library(tidyverse) library(stringr) #q1 words[str_detect(words, "^a") & str_detect(words, "a$")] words[str_detect(words, "^[aiueo]") & str_detect(words, "[^aiueo]$")] words[str_detect(words, "a") & str_detect(words, "i") & str_detect(words, "u") & str_detect(words, "e") & str_detect(words, "o")] #q2 df <- ti...
/chapter 14.4.2 exercise.r
no_license
lawrencekurniawan/r4ds
R
false
false
798
r
library(tidyverse) library(stringr) #q1 words[str_detect(words, "^a") & str_detect(words, "a$")] words[str_detect(words, "^[aiueo]") & str_detect(words, "[^aiueo]$")] words[str_detect(words, "a") & str_detect(words, "i") & str_detect(words, "u") & str_detect(words, "e") & str_detect(words, "o")] #q2 df <- ti...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_jagscode.R \encoding{UTF-8} \name{sd_to_prec} \alias{sd_to_prec} \title{Transform a prior from SD to precision.} \usage{ sd_to_prec(prior_str) } \arguments{ \item{prior_str}{String. A JAGS prior. Can be truncated, e.g. \verb{dt(3, 2, 1) T...
/man/sd_to_prec.Rd
no_license
lindeloev/mcp
R
false
true
768
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_jagscode.R \encoding{UTF-8} \name{sd_to_prec} \alias{sd_to_prec} \title{Transform a prior from SD to precision.} \usage{ sd_to_prec(prior_str) } \arguments{ \item{prior_str}{String. A JAGS prior. Can be truncated, e.g. \verb{dt(3, 2, 1) T...
library(dplyr) library(tidyverse) library(ggplot2) library(plotly) link = "https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_daily_reports/06-27-2021.csv" df <- read.csv(link, header = TRUE) country <- df %>% group_by(Country_Region) country <- country %>% summarise(Rec...
/do_an_R/R_14.R
no_license
toan27062002/do_an_hk2
R
false
false
1,083
r
library(dplyr) library(tidyverse) library(ggplot2) library(plotly) link = "https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_daily_reports/06-27-2021.csv" df <- read.csv(link, header = TRUE) country <- df %>% group_by(Country_Region) country <- country %>% summarise(Rec...
# Polynomial Regression # Importing the dataset dataset = read.csv('Position_Salaries.csv') dataset = dataset[2:3] # Splitting the dataset into the Training set and Test set # # install.packages('caTools') # library(caTools) # set.seed(123) # split = sample.split(dataset$Salary, SplitRatio = 2/3) # trainin...
/02 Regression/2.3 Polynomial Regression/polynomial_regression.R
no_license
rafaelgustavofurlan/machinelearningmodelsinr
R
false
false
2,757
r
# Polynomial Regression # Importing the dataset dataset = read.csv('Position_Salaries.csv') dataset = dataset[2:3] # Splitting the dataset into the Training set and Test set # # install.packages('caTools') # library(caTools) # set.seed(123) # split = sample.split(dataset$Salary, SplitRatio = 2/3) # trainin...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/overlapOutput.R \name{overlapOutput} \alias{overlapOutput} \title{A overlapOutput Function} \usage{ overlapOutput(toAnalyze, mainPageList, analyzedFrom, analyzedTo, backgroundFrom, backgroundTo, comments = "F") } \arguments{ \item{love}{Do ...
/man/overlapOutput.Rd
no_license
josefslerka/sugar
R
false
true
483
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/overlapOutput.R \name{overlapOutput} \alias{overlapOutput} \title{A overlapOutput Function} \usage{ overlapOutput(toAnalyze, mainPageList, analyzedFrom, analyzedTo, backgroundFrom, backgroundTo, comments = "F") } \arguments{ \item{love}{Do ...
source('../auxRoughSets.R') source('../obtenConjuntos.R') source('../auxFun.R') source('../evaluaReglas.R') ##============================================================================================== ## VARIABLES GLOBALES ## ## PARA EL MÓDULO 'obtenConjuntos.R' arch_csv = "../entrena_prueba.csv" ruta_entrena = ".....
/experimentos/AQ/AQ.R
no_license
davidrmh/article_msc_degree
R
false
false
10,865
r
source('../auxRoughSets.R') source('../obtenConjuntos.R') source('../auxFun.R') source('../evaluaReglas.R') ##============================================================================================== ## VARIABLES GLOBALES ## ## PARA EL MÓDULO 'obtenConjuntos.R' arch_csv = "../entrena_prueba.csv" ruta_entrena = ".....
#' Add summary rows using aggregation functions #' #' Add groupwise summary rows (with `summary_rows()`) to one or more row groups #' by using the input data already provided in the [gt()] function alongside any #' suitable aggregation functions. Or, add a grand summary (with #' `grand_summary_rows()`) that incorporate...
/R/summary_rows.R
permissive
gracelawley/gt
R
false
false
10,162
r
#' Add summary rows using aggregation functions #' #' Add groupwise summary rows (with `summary_rows()`) to one or more row groups #' by using the input data already provided in the [gt()] function alongside any #' suitable aggregation functions. Or, add a grand summary (with #' `grand_summary_rows()`) that incorporate...
# author: dani cosme # email: dcosme@uoregon.edu # version: 0.1 # date: 2017-03-03 # This script loads manually coded rp_txt files for each subject and run, concatenates them, # and returns a csv file 'study_manuallyCoded.csv' #------------------------------------------------------ # load packages #------------------...
/fMRI/fx/motion/auto-motion/merge_manually_coded.R
no_license
dsnlab/TDS_scripts
R
false
false
2,293
r
# author: dani cosme # email: dcosme@uoregon.edu # version: 0.1 # date: 2017-03-03 # This script loads manually coded rp_txt files for each subject and run, concatenates them, # and returns a csv file 'study_manuallyCoded.csv' #------------------------------------------------------ # load packages #------------------...
# This file is a generated template, your changes will not be overwritten dataMBInpindClass <- if (requireNamespace('jmvcore')) R6::R6Class( "dataMBInpindClass", inherit = dataMBInpindBase, private = list( .init = function() { table <- self$results$ttest EffSize <- ...
/mbir/R/datambinpind.b.R
no_license
arcaldwell49/mbir-1
R
false
false
11,571
r
# This file is a generated template, your changes will not be overwritten dataMBInpindClass <- if (requireNamespace('jmvcore')) R6::R6Class( "dataMBInpindClass", inherit = dataMBInpindBase, private = list( .init = function() { table <- self$results$ttest EffSize <- ...
##' Adaptations of common summary functions to return NA if all elements are NA ##' ##' Adaptations of common summary statistical functions ##' to return \code{NA} if all elements of \code{x} are \code{NA}. The prefix 'sp' could ##' be thought of as 'special'. These are internal functions used by ##' \code{\link{summ...
/R/utility_functions.R
no_license
Tubbz-alt/qFeature
R
false
false
2,058
r
##' Adaptations of common summary functions to return NA if all elements are NA ##' ##' Adaptations of common summary statistical functions ##' to return \code{NA} if all elements of \code{x} are \code{NA}. The prefix 'sp' could ##' be thought of as 'special'. These are internal functions used by ##' \code{\link{summ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/methods-CellDataSet.R \docType{methods} \name{cellPairwiseDistances} \alias{cellPairwiseDistances} \title{Get the matrix of pairwise distances between cells} \usage{ cellPairwiseDistances(cds) } \arguments{ \item{cds}{expression data matrix f...
/man/cellPairwiseDistances.Rd
no_license
Albluca/monocle-release
R
false
true
616
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/methods-CellDataSet.R \docType{methods} \name{cellPairwiseDistances} \alias{cellPairwiseDistances} \title{Get the matrix of pairwise distances between cells} \usage{ cellPairwiseDistances(cds) } \arguments{ \item{cds}{expression data matrix f...
########################### # SIVFiles<-list.files("ProcessedData/CSV/",pattern="csv") read.csv("ProcessedData/PositionsSameStock.csv")->PositionsToUse no_df<-data.frame("pos"=PositionsToUse$x) read.csv("ProcessedData/RefPositionsSameStock.csv")->RefPositionsToUse print(nrow(RefPositionsToUse)) for (i in 1:length(SI...
/Rscripts/3B.createFrequenciesSeqDataAllSamples.R
no_license
pleunipennings/R21_Macaques_Mac251
R
false
false
1,462
r
########################### # SIVFiles<-list.files("ProcessedData/CSV/",pattern="csv") read.csv("ProcessedData/PositionsSameStock.csv")->PositionsToUse no_df<-data.frame("pos"=PositionsToUse$x) read.csv("ProcessedData/RefPositionsSameStock.csv")->RefPositionsToUse print(nrow(RefPositionsToUse)) for (i in 1:length(SI...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/iam_operations.R \name{iam_update_role} \alias{iam_update_role} \title{Updates the description or maximum session duration setting of a role} \usage{ iam_update_role(RoleName, Description, MaxSessionDuration) } \arguments{ \item{RoleName}{[re...
/cran/paws.security.identity/man/iam_update_role.Rd
permissive
TWarczak/paws
R
false
true
1,771
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/iam_operations.R \name{iam_update_role} \alias{iam_update_role} \title{Updates the description or maximum session duration setting of a role} \usage{ iam_update_role(RoleName, Description, MaxSessionDuration) } \arguments{ \item{RoleName}{[re...
library(ape) testtree <- read.tree("3487_6.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="3487_6_unrooted.txt")
/codeml_files/newick_trees_processed/3487_6/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("3487_6.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="3487_6_unrooted.txt")
setGeneric( "assayColorMap", function(x, i, ..., discrete=FALSE) standardGeneric("assayColorMap") ) setGeneric("assayColorMap<-", signature=c("x", "i"), function(x, i, ..., value) standardGeneric("assayColorMap<-")) setGeneric( "colDataColorMap", function(x, i, ..., discrete=FALSE) standardGeneri...
/R/AllGenerics.R
permissive
dcassol/iSEE
R
false
false
60,601
r
setGeneric( "assayColorMap", function(x, i, ..., discrete=FALSE) standardGeneric("assayColorMap") ) setGeneric("assayColorMap<-", signature=c("x", "i"), function(x, i, ..., value) standardGeneric("assayColorMap<-")) setGeneric( "colDataColorMap", function(x, i, ..., discrete=FALSE) standardGeneri...
library(SummarizedExperiment) library(Matrix) library(BiocParallel) library(chromVAR) library(gchromVAR) library(BSgenome.Hsapiens.UCSC.hg19) library(BuenColors) library(reshape2) library(data.table) library(dplyr) if(FALSE){ # Run weighted deviations lapply(1:100, function(i){ print(i) SE <- readRDS("....
/figures/Figure4/01_rungchromVAR.R
no_license
fl-yu/singlecell_bloodtraits
R
false
false
1,303
r
library(SummarizedExperiment) library(Matrix) library(BiocParallel) library(chromVAR) library(gchromVAR) library(BSgenome.Hsapiens.UCSC.hg19) library(BuenColors) library(reshape2) library(data.table) library(dplyr) if(FALSE){ # Run weighted deviations lapply(1:100, function(i){ print(i) SE <- readRDS("....
# args = commandArgs(trailingOnly=TRUE) if (length(args)!=2) { stop("Usage: Rscript make_coverage_corr.R <first_impute_dir> <second_impute_dir>") } # creating a new directory to hold the output newDirName <- paste("coverage_corr",paste(args[1],args[2],sep="_"),sep="_") dir.create(newDirName) totalCorr<-0 for (chr...
/code/make_coverage_corr_no_abline.R
no_license
noambar/BSc-Imputation
R
false
false
1,785
r
# args = commandArgs(trailingOnly=TRUE) if (length(args)!=2) { stop("Usage: Rscript make_coverage_corr.R <first_impute_dir> <second_impute_dir>") } # creating a new directory to hold the output newDirName <- paste("coverage_corr",paste(args[1],args[2],sep="_"),sep="_") dir.create(newDirName) totalCorr<-0 for (chr...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/getErddapURL.R \name{getErddapURL} \alias{getErddapURL} \title{Download Data using an ERDDAP URL} \usage{ getErddapURL(myURL, destfile, verbose = FALSE) } \arguments{ \item{myURL}{A character string containing the full ERDDAP URL} \i...
/man/getErddapURL.Rd
permissive
marlenne/xtractomatic
R
false
false
724
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/getErddapURL.R \name{getErddapURL} \alias{getErddapURL} \title{Download Data using an ERDDAP URL} \usage{ getErddapURL(myURL, destfile, verbose = FALSE) } \arguments{ \item{myURL}{A character string containing the full ERDDAP URL} \i...
library(testthat) library(mixturedist) test_check("mixturedist")
/tests/testthat.R
no_license
bertcarnell/mixturedist
R
false
false
66
r
library(testthat) library(mixturedist) test_check("mixturedist")
misc::clean_up() library(SSGLM) datalib = "/Users/jacob/Library/Mobile Documents/com~apple~CloudDocs/GitHub/Source/R/packages/SSGLM/data/" plotlib = "/Users/jacob/Library/Mobile Documents/com~apple~CloudDocs/GitHub/Source/R/packages/SSGLM/plots/" plotlib = "/Users/jacob/Library/Mobile Documents/com~apple~CloudDocs/GitH...
/analysis/kernel plots for glm izh analysis.R
permissive
jacobostergaard/SSGLM
R
false
false
3,875
r
misc::clean_up() library(SSGLM) datalib = "/Users/jacob/Library/Mobile Documents/com~apple~CloudDocs/GitHub/Source/R/packages/SSGLM/data/" plotlib = "/Users/jacob/Library/Mobile Documents/com~apple~CloudDocs/GitHub/Source/R/packages/SSGLM/plots/" plotlib = "/Users/jacob/Library/Mobile Documents/com~apple~CloudDocs/GitH...
# Initialize an HTML object with whichever # `type`, `mode`, or `text` is required #' @importFrom dplyr tibble initialize_object <- function(x, type, mode, level, text) { list( stmts = dplyr::...
/R/utils.R
permissive
rich-iannone/hyper
R
false
false
8,331
r
# Initialize an HTML object with whichever # `type`, `mode`, or `text` is required #' @importFrom dplyr tibble initialize_object <- function(x, type, mode, level, text) { list( stmts = dplyr::...
context("runModel.getModelVectors") family <- "gaussian" yvec <- c(-1, 0, 0.5, 1, 2, NA, NaN, Inf) wvec <- c(1, 1, -0.5, 1, 1, 1, 1, 1) ovec <- c(NA, 1, -0.5, 1, 1, 1, 1, 1) gdta <- data.frame(y=yvec, wgts=wvec, offset=ovec) modeldata <- list(gdta=gdta, designSubOrder=1:length(yvec), ...
/RPackageSource/tests/testthat/test-getModelVectors.R
no_license
CBIIT/R-cometsAnalytics
R
false
false
1,175
r
context("runModel.getModelVectors") family <- "gaussian" yvec <- c(-1, 0, 0.5, 1, 2, NA, NaN, Inf) wvec <- c(1, 1, -0.5, 1, 1, 1, 1, 1) ovec <- c(NA, 1, -0.5, 1, 1, 1, 1, 1) gdta <- data.frame(y=yvec, wgts=wvec, offset=ovec) modeldata <- list(gdta=gdta, designSubOrder=1:length(yvec), ...
# LOAD DATA load("rda/covid_us_sum.rda") load("rda/ind_tywm_date.rda") ### USA TABLE TBL_USA_Daily <- covid_us_sum %>% select(date, new_cases, new_tests, percent_pos, new_death) %>% filter(date %in% ind_tywm_date) %>% gt() %>% ## LABELS STUB / TITLE / SUBTITLE tab_options...
/101-USA-table.R
no_license
data-stache/covid-tracking
R
false
false
1,461
r
# LOAD DATA load("rda/covid_us_sum.rda") load("rda/ind_tywm_date.rda") ### USA TABLE TBL_USA_Daily <- covid_us_sum %>% select(date, new_cases, new_tests, percent_pos, new_death) %>% filter(date %in% ind_tywm_date) %>% gt() %>% ## LABELS STUB / TITLE / SUBTITLE tab_options...
library(ggvis) library(shiny) shinyUI( navbarPage("ADSPedia", tabPanel("Explore", fluidPage( p(strong("Candidate"), "variants to make APOE4-sensitized mouse model for Alzheimer's disease."), hr(), fluidRow( column(2, selectInput("x", "X-axis...
/shiny/release_V2/ui.R
no_license
xulong82/wgs
R
false
false
1,217
r
library(ggvis) library(shiny) shinyUI( navbarPage("ADSPedia", tabPanel("Explore", fluidPage( p(strong("Candidate"), "variants to make APOE4-sensitized mouse model for Alzheimer's disease."), hr(), fluidRow( column(2, selectInput("x", "X-axis...
library(spaa) ### Name: sub.sp.matrix ### Title: Subset species matrix according to relative frequency ### Aliases: sub.sp.matrix ### Keywords: sub matrix frequency ### ** Examples library(vegan) data(BCI) ## Select the species whose relative frequency ## more than 0.5, from BCI data sub <- sub.sp.matrix(BCI, fr...
/data/genthat_extracted_code/spaa/examples/sub.sp.matrix.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
434
r
library(spaa) ### Name: sub.sp.matrix ### Title: Subset species matrix according to relative frequency ### Aliases: sub.sp.matrix ### Keywords: sub matrix frequency ### ** Examples library(vegan) data(BCI) ## Select the species whose relative frequency ## more than 0.5, from BCI data sub <- sub.sp.matrix(BCI, fr...
# PLLLocalThreadedTask <- R6Class("PLLLocalThreadedTask", # inherit = PLLTask, # # public = list( # execute = function(...) { # stop("PLLLocalThreadedTask has not yet been implemented") # return(self) # } # ) # )
/R/pll_local_threaded_task.R
no_license
pieterjongsma/r-parallel
R
false
false
238
r
# PLLLocalThreadedTask <- R6Class("PLLLocalThreadedTask", # inherit = PLLTask, # # public = list( # execute = function(...) { # stop("PLLLocalThreadedTask has not yet been implemented") # return(self) # } # ) # )
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/game_excitement_index.R \name{game_excitement_index} \alias{game_excitement_index} \title{Game Excitement Index} \usage{ game_excitement_index(pbp_data) } \arguments{ \item{.data}{play-by-play data frame returned from w_get_pbp_game function}...
/man/game_excitement_index.Rd
permissive
MU-DATA390/wncaahoopR
R
false
true
424
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/game_excitement_index.R \name{game_excitement_index} \alias{game_excitement_index} \title{Game Excitement Index} \usage{ game_excitement_index(pbp_data) } \arguments{ \item{.data}{play-by-play data frame returned from w_get_pbp_game function}...
# Read in the File sitting in my home folder path_rf <- file.path("/Users/aloktandon/" , "UCI HAR Dataset") files <- list.files(path_rf, recursive=TRUE) # Take care of Activity Variables dataActivityTest <- read.table(file.path(path_rf, "test" , "Y_test.txt" ),header = FALSE) dataActivityTrain <- read.table(file.path...
/run_analysis.R
no_license
aloktandon/Getting_and_Cleaning_Data
R
false
false
2,192
r
# Read in the File sitting in my home folder path_rf <- file.path("/Users/aloktandon/" , "UCI HAR Dataset") files <- list.files(path_rf, recursive=TRUE) # Take care of Activity Variables dataActivityTest <- read.table(file.path(path_rf, "test" , "Y_test.txt" ),header = FALSE) dataActivityTrain <- read.table(file.path...
################################################### ### code chunk number 22: testing ################################################### U.model <- array(list(), dim = c(1, 1, length(rockfish[, "Year"]))) U.model[1, 1, rockfish[, "Year"] < 1980] <- "pre-1980" U.model[1, 1, rockfish[, "Year"] >= 1980] <- "post-1980" mo...
/inst/userguide/figures/CS8--testing.R
permissive
nwfsc-timeseries/MARSS
R
false
false
683
r
################################################### ### code chunk number 22: testing ################################################### U.model <- array(list(), dim = c(1, 1, length(rockfish[, "Year"]))) U.model[1, 1, rockfish[, "Year"] < 1980] <- "pre-1980" U.model[1, 1, rockfish[, "Year"] >= 1980] <- "post-1980" mo...
# This function is to generate a data.frame given N, ni, d.ea, param, var1 and var2 gen.df <- function(N, ni, d.ea, param='WEI3', var1, var2, b1_0, b1_bet, b1_wit, b2_0, b2_bet, b2_wit) { subject <- factor(rep(1:N, each=ni)) b1 <- c(b1_0, b1_bet, b1_wit) b2 <- c(b2_0, b2_bet, b2_wit) y.fai...
/gen.df.R
no_license
fhernanb/utilitario
R
false
false
1,582
r
# This function is to generate a data.frame given N, ni, d.ea, param, var1 and var2 gen.df <- function(N, ni, d.ea, param='WEI3', var1, var2, b1_0, b1_bet, b1_wit, b2_0, b2_bet, b2_wit) { subject <- factor(rep(1:N, each=ni)) b1 <- c(b1_0, b1_bet, b1_wit) b2 <- c(b2_0, b2_bet, b2_wit) y.fai...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ramlegacy.R \name{QueryRAM} \alias{QueryRAM} \title{A function to send SQL queries to the RAM legacy stock assessment database} \usage{ QueryRAM(query, con.drv = NULL) } \arguments{ \item{query}{a valid SQL query executable against RAM Legacy...
/man/QueryRAM.Rd
permissive
ashander/RAMlegacyr
R
false
true
963
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ramlegacy.R \name{QueryRAM} \alias{QueryRAM} \title{A function to send SQL queries to the RAM legacy stock assessment database} \usage{ QueryRAM(query, con.drv = NULL) } \arguments{ \item{query}{a valid SQL query executable against RAM Legacy...
# PURPOSE: Create overfitting simulation figures # Access packages library(tidyverse) library(cowplot) library(latex2exp) # Load the simulation results overfit_sims_data <- read_csv("data/si_simulations/overfit_sims.csv") overfit_fdp <- overfit_sims_data %>% filter(alpha %in% c(0.05, 0.1)) %>% mutate(alpha_label...
/R/si_simulations/create_sf30_overfit_plot.R
no_license
SitaZhou/AdaPT-GWAS-manuscript-code
R
false
false
2,543
r
# PURPOSE: Create overfitting simulation figures # Access packages library(tidyverse) library(cowplot) library(latex2exp) # Load the simulation results overfit_sims_data <- read_csv("data/si_simulations/overfit_sims.csv") overfit_fdp <- overfit_sims_data %>% filter(alpha %in% c(0.05, 0.1)) %>% mutate(alpha_label...
# installDeps ------------------------------------------------------------------ InstallDeps <- R6Class( "InstallDeps", inherit = TicStep, public = list( initialize = function(repos = repo_default(), type = getOption("pkgType")) { private$repos <- repos private$type <- ...
/R/steps-install.R
no_license
MarkEdmondson1234/tic
R
false
false
4,548
r
# installDeps ------------------------------------------------------------------ InstallDeps <- R6Class( "InstallDeps", inherit = TicStep, public = list( initialize = function(repos = repo_default(), type = getOption("pkgType")) { private$repos <- repos private$type <- ...
################################################################################ context("READ_BGEN") skip_if_not_installed("dplyr") skip_if_not_installed("dbplyr") skip_if_not_installed("RSQLite") ################################################################################ # need to write bgen/bgi files becaus...
/tests/testthat/test-1-readBGEN.R
no_license
privefl/bigsnpr
R
false
false
6,648
r
################################################################################ context("READ_BGEN") skip_if_not_installed("dplyr") skip_if_not_installed("dbplyr") skip_if_not_installed("RSQLite") ################################################################################ # need to write bgen/bgi files becaus...
\name{geom_smooth} \alias{GeomSmoothtern} \alias{geom_smooth} \title{Add a smoothed conditional mean (MODIFIED)} \usage{ geom_smooth(mapping = NULL, data = NULL, stat = "smoothtern", position = "identity", limitarea = TRUE, fullrange = FALSE, ...) } \arguments{ \item{limitarea}{logical value to indicate whether s...
/man/geom_smooth.Rd
no_license
katsurakob/ggtern
R
false
false
1,659
rd
\name{geom_smooth} \alias{GeomSmoothtern} \alias{geom_smooth} \title{Add a smoothed conditional mean (MODIFIED)} \usage{ geom_smooth(mapping = NULL, data = NULL, stat = "smoothtern", position = "identity", limitarea = TRUE, fullrange = FALSE, ...) } \arguments{ \item{limitarea}{logical value to indicate whether s...
#' Directed geometric graph #' #' Compute the geometric graph \deqn{x_i ~ x_j \Leftrightarrow ||x_i-x_j|| < r \& -\theta < angle(x_j-x_i) < \theta}{x1 ~ x2 <=> ||x1-x2||< r & -theta < angle(x2-x1, u) < theta} #' #' @param x matrix of location coordinates #' @param u unit vector of direction #' @param theta angle for t...
/R/directed_geom.R
no_license
antiphon/Kdirectional
R
false
false
1,382
r
#' Directed geometric graph #' #' Compute the geometric graph \deqn{x_i ~ x_j \Leftrightarrow ||x_i-x_j|| < r \& -\theta < angle(x_j-x_i) < \theta}{x1 ~ x2 <=> ||x1-x2||< r & -theta < angle(x2-x1, u) < theta} #' #' @param x matrix of location coordinates #' @param u unit vector of direction #' @param theta angle for t...
library(openxlsx) library(ggplot2) library(ggpubr) library(VennDiagram) library(stringr) # venn plot ## preparing the table miRNA_exp <- read.xlsx("svanoval_DESeq2_rmnoval_morethan10_FDRadj.xlsx",sheet = "DESeq2_result") miRNA_exp <- miRNA_exp[,c(1,3,4,8,9,10:16,19)] colnames(miRNA_exp) <- c("mature_mirbase_id","miRNA...
/scripts/05_VennPieSigtest_of_H3K36me3andmiRNA.R
no_license
YucanChen/Multi-omics_analysis
R
false
false
10,541
r
library(openxlsx) library(ggplot2) library(ggpubr) library(VennDiagram) library(stringr) # venn plot ## preparing the table miRNA_exp <- read.xlsx("svanoval_DESeq2_rmnoval_morethan10_FDRadj.xlsx",sheet = "DESeq2_result") miRNA_exp <- miRNA_exp[,c(1,3,4,8,9,10:16,19)] colnames(miRNA_exp) <- c("mature_mirbase_id","miRNA...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_3D_cell_prob.R \name{get_3D_cell_prob} \alias{get_3D_cell_prob} \title{A calista Function} \usage{ get_3D_cell_prob(Results, Parameters, DATA) } \description{ A calista Function } \examples{ get_3D_cell_prob() } \keyword{calista}
/CALISTA-R/calista/man/get_3D_cell_prob.Rd
permissive
CABSEL/CALISTA
R
false
true
312
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_3D_cell_prob.R \name{get_3D_cell_prob} \alias{get_3D_cell_prob} \title{A calista Function} \usage{ get_3D_cell_prob(Results, Parameters, DATA) } \description{ A calista Function } \examples{ get_3D_cell_prob() } \keyword{calista}
############################################################################# # # XLConnect # Copyright (C) 2010-2018 Mirai Solutions GmbH # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation...
/R/includeRownames.R
no_license
gnbrganchan/xlconnect
R
false
false
1,828
r
############################################################################# # # XLConnect # Copyright (C) 2010-2018 Mirai Solutions GmbH # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation...
/exer1/0183479.R
no_license
JIEYAN-CHEN/ISL
R
false
false
2,865
r
### Figure: MSE vs. sample size (|Omega|), under various rank## source("../../functions.R") set.seed(1) Output=NULL d=rep(20,3) rlist=c(3,5,8) ntotal=30 rholist=seq(from=0.3,to=1,by=0.1) #ntotal=1 #rholist=seq(from=0.9,to=1,by=0.02) MSE_raw=array(0,dim=c(length(rlist),length(rholist),ntotal)) for(j in 1:length(rlist)...
/data analysis/simulation_code/Figure4/Figure4.R
no_license
Miaoyanwang/ordinal_tensor
R
false
false
1,721
r
### Figure: MSE vs. sample size (|Omega|), under various rank## source("../../functions.R") set.seed(1) Output=NULL d=rep(20,3) rlist=c(3,5,8) ntotal=30 rholist=seq(from=0.3,to=1,by=0.1) #ntotal=1 #rholist=seq(from=0.9,to=1,by=0.02) MSE_raw=array(0,dim=c(length(rlist),length(rholist),ntotal)) for(j in 1:length(rlist)...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/int_approx.R \name{int_approx} \alias{int_approx} \title{int_approx} \usage{ int_approx(vec, n) } \arguments{ \item{vec}{non-decreasing non-negative numeric vector} \item{n}{A positive integer to which vector should sum to. Default value is ...
/man/int_approx.Rd
no_license
talegari/sidekicks
R
false
true
941
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/int_approx.R \name{int_approx} \alias{int_approx} \title{int_approx} \usage{ int_approx(vec, n) } \arguments{ \item{vec}{non-decreasing non-negative numeric vector} \item{n}{A positive integer to which vector should sum to. Default value is ...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/simcamres.R \name{summary.simcamres} \alias{summary.simcamres} \title{Summary method for SIMCAM results object} \usage{ \method{summary}{simcamres}(object, ...) } \arguments{ \item{object}{SIMCAM results (object of class \code{simcamr...
/man/summary.simcamres.Rd
no_license
zeehio/mdatools
R
false
false
420
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/simcamres.R \name{summary.simcamres} \alias{summary.simcamres} \title{Summary method for SIMCAM results object} \usage{ \method{summary}{simcamres}(object, ...) } \arguments{ \item{object}{SIMCAM results (object of class \code{simcamr...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spectral_indices.r \name{TCARI_over_OSAVI} \alias{TCARI_over_OSAVI} \title{Transformed Chlorophyll Absorption in Reflectance Index Over Optimised Soil-Adjusted Vegetation Index} \usage{ TCARI_over_OSAVI(df, outp_fname = NULL, ...) } \argument...
/man/TCARI_over_OSAVI.Rd
no_license
MartinezLaura/CanHeMonR
R
false
true
1,090
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spectral_indices.r \name{TCARI_over_OSAVI} \alias{TCARI_over_OSAVI} \title{Transformed Chlorophyll Absorption in Reflectance Index Over Optimised Soil-Adjusted Vegetation Index} \usage{ TCARI_over_OSAVI(df, outp_fname = NULL, ...) } \argument...
## ========================================= ## Exercise: 1-05 ## < Server > ## ========================================= server <- function(input, output) { df <- reactive({ df <- read.csv(glue("../../../Data/HistSpotMonthlyAve_{input$market}.csv")) df$Month <- as.Date(df$Month, "%m/%d/%Y") df ...
/Exercises/Solutions/App1.05_DynamicUI/server.r
no_license
TEA-Analytics/ShinyWorkshop
R
false
false
751
r
## ========================================= ## Exercise: 1-05 ## < Server > ## ========================================= server <- function(input, output) { df <- reactive({ df <- read.csv(glue("../../../Data/HistSpotMonthlyAve_{input$market}.csv")) df$Month <- as.Date(df$Month, "%m/%d/%Y") df ...