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
model{ # priors B_occ[1] ~ dlogis(0,1) B_occ[2] ~ dlogis(0,1) B_det[1] ~ dlogis(0,1) B_det[2] ~ dlogis(0,1) # latent state model for(i in 1:nsite){ logit(psi[i]) <- inprod(B_occ, X_occ[i,]) z[i] ~ dbern(psi[i]) } # detection model, the important part # is just indexing what site the yth dat...
/ragged_occupancy.R
no_license
adamlilith/jags-ragged-array
R
false
false
467
r
model{ # priors B_occ[1] ~ dlogis(0,1) B_occ[2] ~ dlogis(0,1) B_det[1] ~ dlogis(0,1) B_det[2] ~ dlogis(0,1) # latent state model for(i in 1:nsite){ logit(psi[i]) <- inprod(B_occ, X_occ[i,]) z[i] ~ dbern(psi[i]) } # detection model, the important part # is just indexing what site the yth dat...
library(shiny) # Define server logic required to draw the plots shinyServer(function(input, output) { #Create prior plot output output$priorPlot<-renderPlot({ #Plotting sequence x <- seq(from=0,to=1,by=0.01) #get alpha and beta values from input alphaval<-input$alpha b...
/server.R
permissive
jbpost2/BasicBayes
R
false
false
2,730
r
library(shiny) # Define server logic required to draw the plots shinyServer(function(input, output) { #Create prior plot output output$priorPlot<-renderPlot({ #Plotting sequence x <- seq(from=0,to=1,by=0.01) #get alpha and beta values from input alphaval<-input$alpha b...
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function ## This function creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function(x = matrix()) { i <- NULL set <- function(y) { ...
/cachematrix.R
no_license
karlinmilk/ProgrammingAssignment2
R
false
false
1,199
r
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function ## This function creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function(x = matrix()) { i <- NULL set <- function(y) { ...
#' Load in Patients #' #' Returns information based on the condition filtered and returns them in #' between a start date and an end date. It joins the condition_occurrence, #' person, concept, and visit_occurrence tables to retrieve the information #' about the person and the condition diagnosed. #' #' #' @param proj...
/R/LoadCohortSubjects.R
permissive
jlazaruss/CohortCreationLibrary
R
false
false
2,805
r
#' Load in Patients #' #' Returns information based on the condition filtered and returns them in #' between a start date and an end date. It joins the condition_occurrence, #' person, concept, and visit_occurrence tables to retrieve the information #' about the person and the condition diagnosed. #' #' #' @param proj...
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Classifier/urinary_tract.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.01,family="gaussian",standardize=TRUE) sink('./urinary_tract_007.txt'...
/Model/EN/Classifier/urinary_tract/urinary_tract_007.R
no_license
esbgkannan/QSMART
R
false
false
363
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Classifier/urinary_tract.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.01,family="gaussian",standardize=TRUE) sink('./urinary_tract_007.txt'...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Skala_med_toglengd.R \name{Skala.med.toglengd} \alias{Skala.med.toglengd} \title{XXX} \usage{ Skala.med.toglengd(lengdir, Stodvar, std.toglengd) } \arguments{ \item{lengdir}{XXX} \item{Stodvar}{XXX} \item{std.toglengd}{XXX} } \description{ ...
/man/Skala.med.toglengd.Rd
no_license
fishvice/husky
R
false
true
389
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Skala_med_toglengd.R \name{Skala.med.toglengd} \alias{Skala.med.toglengd} \title{XXX} \usage{ Skala.med.toglengd(lengdir, Stodvar, std.toglengd) } \arguments{ \item{lengdir}{XXX} \item{Stodvar}{XXX} \item{std.toglengd}{XXX} } \description{ ...
library(tidyverse) library(edgeR) library(RUVSeq) ## read in reference data for batch correction rse <- readRDS(file = "data/rse_reference.Rds") ## filter out low counts to ease computation low_counts <- apply(assay(rse, "counts"), MARGIN = 1, FUN = function(x){all(x < 1000)}) rse <- rse[-which(low_counts), ] ## cre...
/preprocessing/RUVSeq_rse.R
no_license
zachbrehm/celltypes
R
false
false
1,303
r
library(tidyverse) library(edgeR) library(RUVSeq) ## read in reference data for batch correction rse <- readRDS(file = "data/rse_reference.Rds") ## filter out low counts to ease computation low_counts <- apply(assay(rse, "counts"), MARGIN = 1, FUN = function(x){all(x < 1000)}) rse <- rse[-which(low_counts), ] ## cre...
library(pense) library(testthat) test_that("Using a parallel cluster", { library(parallel) cl <- makePSOCKcluster(1) on.exit(stopCluster(cl), add = TRUE, after = FALSE) # User messes with cluster... clusterEvalQ(cl, { x <- "x" y <- "y" std_data <- "standardized data" }) # Generate dummy dat...
/tests/testthat/test_parallel_clusters.R
no_license
cran/pense
R
false
false
798
r
library(pense) library(testthat) test_that("Using a parallel cluster", { library(parallel) cl <- makePSOCKcluster(1) on.exit(stopCluster(cl), add = TRUE, after = FALSE) # User messes with cluster... clusterEvalQ(cl, { x <- "x" y <- "y" std_data <- "standardized data" }) # Generate dummy dat...
#' Interconvert data structures #' #' Interconvert an array, a raw data frame, and frequency distribution #' data.frame. #' #' Multivariate categorical data can be represented in several ways. Three comon #' ways are : a contingency table, a data frame of raw observations (1 row = 1 #' subject), and a long data frame w...
/R/teshape.r
no_license
GrantInnerst/algstat
R
false
false
4,046
r
#' Interconvert data structures #' #' Interconvert an array, a raw data frame, and frequency distribution #' data.frame. #' #' Multivariate categorical data can be represented in several ways. Three comon #' ways are : a contingency table, a data frame of raw observations (1 row = 1 #' subject), and a long data frame w...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/jamba.r \name{groupedAxis} \alias{groupedAxis} \title{Draw grouped axis labels} \usage{ groupedAxis( side = 1, x, group_style = c("partial_grouped", "grouped", "centered"), las = 2, returnFractions = TRUE, nudge = 0.2, do_abline...
/man/groupedAxis.Rd
permissive
jmw86069/jamba
R
false
true
3,715
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/jamba.r \name{groupedAxis} \alias{groupedAxis} \title{Draw grouped axis labels} \usage{ groupedAxis( side = 1, x, group_style = c("partial_grouped", "grouped", "centered"), las = 2, returnFractions = TRUE, nudge = 0.2, do_abline...
gen_t <- function(x, df = 4, mu, sig, log = TRUE) { tmp <- ((gamma((df + 1) / 2) / gamma(df / 2) / sqrt(pi * df) / sig) * (1 + (x - mu)^2 / sig^2 / df) ^ (- (df + 1) / 2)) if (log) { tmp <- log(tmp) } return(tmp) }
/R/gen_t.R
no_license
adamber6/mrclust
R
false
false
237
r
gen_t <- function(x, df = 4, mu, sig, log = TRUE) { tmp <- ((gamma((df + 1) / 2) / gamma(df / 2) / sqrt(pi * df) / sig) * (1 + (x - mu)^2 / sig^2 / df) ^ (- (df + 1) / 2)) if (log) { tmp <- log(tmp) } return(tmp) }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/wglm.R \name{information.wglm} \alias{information.wglm} \title{Information for IPCW Logistic Regressions} \usage{ information.wglm(x, times = NULL, simplifies = TRUE, ...) } \arguments{ \item{x}{a wglm object.} \item{times}{[numeric vector] ...
/man/information.wglm.Rd
no_license
erikvona/riskRegression
R
false
true
694
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/wglm.R \name{information.wglm} \alias{information.wglm} \title{Information for IPCW Logistic Regressions} \usage{ information.wglm(x, times = NULL, simplifies = TRUE, ...) } \arguments{ \item{x}{a wglm object.} \item{times}{[numeric vector] ...
# Creating data frames install.packages("tidyverse") library(tidyverse) names <- c("sherry", "justin", "edmar", "jasmine") age <- c(21, 19, 23, 42) people <- data.frame(names, age) head(people) mutate(people, age_in_5 = age + 5) fruit <- c("lychee", "dragonfruit", "starfruit", "Watermelon") r...
/Data_Frames_For_Fun.R
no_license
Justintime8/R_Scripts
R
false
false
403
r
# Creating data frames install.packages("tidyverse") library(tidyverse) names <- c("sherry", "justin", "edmar", "jasmine") age <- c(21, 19, 23, 42) people <- data.frame(names, age) head(people) mutate(people, age_in_5 = age + 5) fruit <- c("lychee", "dragonfruit", "starfruit", "Watermelon") r...
###################### ## Cargar librerías ## ###################### library(readr) # Cargar datos library(dplyr) # Manejo de datos ################## ## Cargar datos ## ################## datosONU_tidy <- read_csv("../datos/DatosONU_tidy.csv") %>% rename( "co2_emissions" = "co2_emissions_metric_tons_per_capita...
/M2C2/Ejercicios/EjercicioDosTablas.R
no_license
sergioangulo/Diplomado-CDPP
R
false
false
3,018
r
###################### ## Cargar librerías ## ###################### library(readr) # Cargar datos library(dplyr) # Manejo de datos ################## ## Cargar datos ## ################## datosONU_tidy <- read_csv("../datos/DatosONU_tidy.csv") %>% rename( "co2_emissions" = "co2_emissions_metric_tons_per_capita...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/miRBaseConvert.R \name{checkMiRNAFamliy} \alias{checkMiRNAFamliy} \title{Check the miRNA family} \usage{ checkMiRNAFamliy(Accessions) } \arguments{ \item{Accessions}{A character vector representing the miRNA Accessions in miRBase.} } \value{ ...
/man/checkMiRNAFamliy.Rd
no_license
xtsvm/discard-miRBaseConverter-
R
false
true
1,233
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/miRBaseConvert.R \name{checkMiRNAFamliy} \alias{checkMiRNAFamliy} \title{Check the miRNA family} \usage{ checkMiRNAFamliy(Accessions) } \arguments{ \item{Accessions}{A character vector representing the miRNA Accessions in miRBase.} } \value{ ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rds_operations.R \name{rds_describe_db_parameter_groups} \alias{rds_describe_db_parameter_groups} \title{Returns a list of DBParameterGroup descriptions} \usage{ rds_describe_db_parameter_groups( DBParameterGroupName = NULL, Filters = NUL...
/cran/paws.database/man/rds_describe_db_parameter_groups.Rd
permissive
paws-r/paws
R
false
true
1,552
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rds_operations.R \name{rds_describe_db_parameter_groups} \alias{rds_describe_db_parameter_groups} \title{Returns a list of DBParameterGroup descriptions} \usage{ rds_describe_db_parameter_groups( DBParameterGroupName = NULL, Filters = NUL...
\name{updateable} \alias{updateable} \alias{updateable2} \alias{get_call} \alias{uGamm} \alias{MuMIn-gamm} \alias{gamm-wrapper} \encoding{utf-8} \title{Make a function return updateable result} \description{ Creates a function wrapper that stores a call in the object returned by its argument \code{FUN}. } \usage{ upd...
/man/updateable.Rd
no_license
funkhou9/MuMIn
R
false
false
4,974
rd
\name{updateable} \alias{updateable} \alias{updateable2} \alias{get_call} \alias{uGamm} \alias{MuMIn-gamm} \alias{gamm-wrapper} \encoding{utf-8} \title{Make a function return updateable result} \description{ Creates a function wrapper that stores a call in the object returned by its argument \code{FUN}. } \usage{ upd...
context("mcWeights") skip("readAntares empty when mcYears is NULL") setSimulationPath(studyPathSV8) sapply(c("hourly", "daily", "weekly", "monthly", "annual"), function(tim){ correct_mc_weights <- 1:2 output_correct_weights_hourly <- readAntares(areas = "all", links = "all", clusters = "all", mcYears = "...
/tests/testthat/test-ponderate.R
no_license
cran/antaresRead
R
false
false
2,849
r
context("mcWeights") skip("readAntares empty when mcYears is NULL") setSimulationPath(studyPathSV8) sapply(c("hourly", "daily", "weekly", "monthly", "annual"), function(tim){ correct_mc_weights <- 1:2 output_correct_weights_hourly <- readAntares(areas = "all", links = "all", clusters = "all", mcYears = "...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/qq_plot.R \name{qq_plot} \alias{qq_plot} \title{Essentially a wrapper for the stat_qq and stat_qq_line functions in ggplot2} \usage{ qq_plot( x, color = "blue", xlab = expression(Expected ~ ~-log[10](italic(P))), ylab = expression(Obs...
/man/qq_plot.Rd
no_license
kopalgarg/gwas-vis
R
false
true
558
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/qq_plot.R \name{qq_plot} \alias{qq_plot} \title{Essentially a wrapper for the stat_qq and stat_qq_line functions in ggplot2} \usage{ qq_plot( x, color = "blue", xlab = expression(Expected ~ ~-log[10](italic(P))), ylab = expression(Obs...
# INDEPENDENCE/ DEMOGRAPHIC PARITY library('fairness') # Preprocessing # OTT # Postprocessing based on final classification (not their propabilities) data(compas) indep <- dem_parity(data = compas, group ='ethnicity',probs = NULL, preds ='predicted',cutoff = 0.5, base ='Caucasian') while (condition) { }
/old/12_independence.R
no_license
JohannesJacob/fairCreditScoring
R
false
false
314
r
# INDEPENDENCE/ DEMOGRAPHIC PARITY library('fairness') # Preprocessing # OTT # Postprocessing based on final classification (not their propabilities) data(compas) indep <- dem_parity(data = compas, group ='ethnicity',probs = NULL, preds ='predicted',cutoff = 0.5, base ='Caucasian') while (condition) { }
setwd("C:/Users/Imtiyaz/Desktop/Research_computing/Data Sets") random_search <- read.csv("Final_dataset.csv", header=T, na.strings=c(""), stringsAsFactors = T) str(random_search) summary(random_search) random_search <- random_search[ ,-c(1,14,15,17)] sapply(random_search,function(x) sum(is.na(x))) random_search$Age_Gr...
/Machine Learning Projects/Relationship between Air Pollution and Asthama/R.code/Modelling/elasticnet_regression.R
no_license
jyotichavda/Projects
R
false
false
2,542
r
setwd("C:/Users/Imtiyaz/Desktop/Research_computing/Data Sets") random_search <- read.csv("Final_dataset.csv", header=T, na.strings=c(""), stringsAsFactors = T) str(random_search) summary(random_search) random_search <- random_search[ ,-c(1,14,15,17)] sapply(random_search,function(x) sum(is.na(x))) random_search$Age_Gr...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/df.R \name{df} \alias{df} \title{Describe Files} \usage{ df(dir = ".", all.files = TRUE, ...) } \arguments{ \item{dir}{the directory containing the files to describe} \item{all.files}{logical, include hidden files and folders} ...
/man/df.Rd
no_license
cran/files
R
false
true
527
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/df.R \name{df} \alias{df} \title{Describe Files} \usage{ df(dir = ".", all.files = TRUE, ...) } \arguments{ \item{dir}{the directory containing the files to describe} \item{all.files}{logical, include hidden files and folders} ...
library(naivebayes) binary <- read.csv("C:/Users/tit0v/R/PTUXIAKH/binary.csv") binary$admit <- as.factor(binary$admit) binary$rank <- as.factor(binary$rank) set.seed(1234) ind <- sample(2,nrow(binary),replace=T,prob=c(0.8,0.2)) train<- binary[ind==1,] test <- binary[ind==2,] nb_model <- naive_bayes(admi...
/Naive bayes/naivebayes.R
no_license
stavoikono/Thesis
R
false
false
953
r
library(naivebayes) binary <- read.csv("C:/Users/tit0v/R/PTUXIAKH/binary.csv") binary$admit <- as.factor(binary$admit) binary$rank <- as.factor(binary$rank) set.seed(1234) ind <- sample(2,nrow(binary),replace=T,prob=c(0.8,0.2)) train<- binary[ind==1,] test <- binary[ind==2,] nb_model <- naive_bayes(admi...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SampleToSum.R \name{SampleToSum} \alias{SampleToSum} \title{Sample from a Specific Range with a Target Vector Sum} \usage{ SampleToSum( Target = 100, VecLen = 10, InRange = 1:100, Tolerance = 2, showSum = TRUE ) } \arguments{ \item{...
/man/SampleToSum.Rd
no_license
mrdwab/SOfun
R
false
true
1,282
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SampleToSum.R \name{SampleToSum} \alias{SampleToSum} \title{Sample from a Specific Range with a Target Vector Sum} \usage{ SampleToSum( Target = 100, VecLen = 10, InRange = 1:100, Tolerance = 2, showSum = TRUE ) } \arguments{ \item{...
## Below two functions that are used to create a special object that stores a Matrix and cache's its inverese ## The makeCacheMatrix function creates R object. ## The R object is composed from a data set(Matrix) initialy passed as an argument(x) and a value connected to that matrix (called 'ans' in the function) ## T...
/cachematrix.R
no_license
yaniv-p/ProgrammingAssignment2
R
false
false
2,240
r
## Below two functions that are used to create a special object that stores a Matrix and cache's its inverese ## The makeCacheMatrix function creates R object. ## The R object is composed from a data set(Matrix) initialy passed as an argument(x) and a value connected to that matrix (called 'ans' in the function) ## T...
# script to read different samples of ipcc scenarios and summarise power info library(tidyverse) library(readxl) library(viridis) library(cowplot) #library(plotly) library(gganimate) library(grid) source("../ember_theme/theme_ember.R") # New comment # temp category colour scheme temp_cols <- c("Below 1.5C"="steelblu...
/scenario_analyse.R
no_license
ckrosslowe/sr15-scenarios
R
false
false
164,135
r
# script to read different samples of ipcc scenarios and summarise power info library(tidyverse) library(readxl) library(viridis) library(cowplot) #library(plotly) library(gganimate) library(grid) source("../ember_theme/theme_ember.R") # New comment # temp category colour scheme temp_cols <- c("Below 1.5C"="steelblu...
# Exercise 3: writing and executing functions # Define a function `add_three` that takes a single argument and # returns a value 3 greater than the input add_three <- function(input){add_three <- paste(input+3) print(add_three)} # Create a variable `ten` that is the result of passing 7 to your `add_three` # function...
/exercise-3/exercise.R
permissive
ursulamichelle/ch6-functions
R
false
false
805
r
# Exercise 3: writing and executing functions # Define a function `add_three` that takes a single argument and # returns a value 3 greater than the input add_three <- function(input){add_three <- paste(input+3) print(add_three)} # Create a variable `ten` that is the result of passing 7 to your `add_three` # function...
dir.create("./Assignment 1") fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" download.file(fileUrl, destfile = "./Assignment 1/data.zip", method = "auto") unzip("./Assignment 1/data.zip", exdir = "./Assignment 1") setwd("./Assignment 1") data <- readLines("household_p...
/plot3.R
no_license
Alicja1990/ExData_Plotting1
R
false
false
973
r
dir.create("./Assignment 1") fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" download.file(fileUrl, destfile = "./Assignment 1/data.zip", method = "auto") unzip("./Assignment 1/data.zip", exdir = "./Assignment 1") setwd("./Assignment 1") data <- readLines("household_p...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/autoplot.R \name{autoplot.inp} \alias{autoplot.inp} \title{Plot a swmm model structure using ggplot2} \usage{ autoplot.inp(x, ...) } \arguments{ \item{x}{An inp object} \item{...}{currently ignored} } \description{ This function reads an obj...
/man/plot.Rd
no_license
SumathyS/swmmr
R
false
true
637
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/autoplot.R \name{autoplot.inp} \alias{autoplot.inp} \title{Plot a swmm model structure using ggplot2} \usage{ autoplot.inp(x, ...) } \arguments{ \item{x}{An inp object} \item{...}{currently ignored} } \description{ This function reads an obj...
#CONCOR and needed functions #created 11/26/18 #By Tyme Suda concor1 <- function(m_stack, cutoff = .9999999, max_iter = 50) { if (ncol(m_stack) < 2){ return(cor(m_stack, use = "pairwise.complete.obs")) } cor_i <- cor(m_stack, use = "pairwise.complete.obs") iter <- 0 while (any(abs(cor_i) <= cutoff,...
/R/CONCOR.R
no_license
Zeldoxsis/concorR
R
false
false
6,232
r
#CONCOR and needed functions #created 11/26/18 #By Tyme Suda concor1 <- function(m_stack, cutoff = .9999999, max_iter = 50) { if (ncol(m_stack) < 2){ return(cor(m_stack, use = "pairwise.complete.obs")) } cor_i <- cor(m_stack, use = "pairwise.complete.obs") iter <- 0 while (any(abs(cor_i) <= cutoff,...
#----------------------------------------------------------------------------------------------# # Call SIPs in K562 HiChIP data # requires K562 MAPS HiChIP data and gencode promoters # defines SIPS, outputs K562_SIPs.txt # computes basic SIP properties and tests if SIPs are more likely to be enhancers than non-SIPs #-...
/revision/rep_run_SIP.R
no_license
Jia21/SIP
R
false
false
6,450
r
#----------------------------------------------------------------------------------------------# # Call SIPs in K562 HiChIP data # requires K562 MAPS HiChIP data and gencode promoters # defines SIPS, outputs K562_SIPs.txt # computes basic SIP properties and tests if SIPs are more likely to be enhancers than non-SIPs #-...
## TODO: load data tree here require(lmerTest) load(system.file("testdata", "tree.RData", package="lmerTest")) modelCarrots.treat <- lme4::lmer(Preference ~ sens2*sens1*Homesize*Age + (1 | product) + (1 ...
/tests/testContrasts.R
no_license
atyre2/lmerTest
R
false
false
2,792
r
## TODO: load data tree here require(lmerTest) load(system.file("testdata", "tree.RData", package="lmerTest")) modelCarrots.treat <- lme4::lmer(Preference ~ sens2*sens1*Homesize*Age + (1 | product) + (1 ...
#' Map latitude/longitude coordinates onto an ellipsoid. Vectorised. #' #' @param lat latitude coordinates (scalar or vector, in radians) #' @param long longitude coordinates (same length as \code{lat}, in radians) #' @param a semi-principal axis length #' @param b semi-principal axis length #' @param c semi-principal ...
/R/dem2stl.R
permissive
kevinstadler/dem2stl
R
false
false
10,232
r
#' Map latitude/longitude coordinates onto an ellipsoid. Vectorised. #' #' @param lat latitude coordinates (scalar or vector, in radians) #' @param long longitude coordinates (same length as \code{lat}, in radians) #' @param a semi-principal axis length #' @param b semi-principal axis length #' @param c semi-principal ...
data <- read.csv("input-2020-11", header = F) # Part 1 data <- data.frame(do.call("rbind", strsplit(as.character(data$V1), "", fixed = TRUE))) evolve <- function(data) { data_out <- data for (i in 1:nrow(data)) { for (j in 1:ncol(data)) { a<-as.character(data[i-1,j]); b<-as.character(data[i-1,j...
/day11/day11.R
no_license
cortinah/aoc2020
R
false
false
1,891
r
data <- read.csv("input-2020-11", header = F) # Part 1 data <- data.frame(do.call("rbind", strsplit(as.character(data$V1), "", fixed = TRUE))) evolve <- function(data) { data_out <- data for (i in 1:nrow(data)) { for (j in 1:ncol(data)) { a<-as.character(data[i-1,j]); b<-as.character(data[i-1,j...
d=read.csv("D:\\R Course\\PROJECT DATASET DATA SCIENCE\\MedianImpData.csv") #####LOGISTIC library(caret) set.seed(2019) intrain=createDataPartition(y=d$TenYearCHD,p=0.7,list = F) training=d[intrain,] validation=d[-intrain,] fit.lg <- glm(TenYearCHD~ . , data = training , family = binomial()) ...
/LogisticRegression.R
no_license
nikitasraut/data-science-project
R
false
false
823
r
d=read.csv("D:\\R Course\\PROJECT DATASET DATA SCIENCE\\MedianImpData.csv") #####LOGISTIC library(caret) set.seed(2019) intrain=createDataPartition(y=d$TenYearCHD,p=0.7,list = F) training=d[intrain,] validation=d[-intrain,] fit.lg <- glm(TenYearCHD~ . , data = training , family = binomial()) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/myncurve.R \name{myncurve} \alias{myncurve} \title{My normal distribution plotter} \usage{ myncurve(mu, sigma, a) } \arguments{ \item{mu}{a number, the mean of the normal distribution} \item{sigma}{a number, the standard deviation of the nor...
/man/myncurve.Rd
no_license
Nat-Geo/math4753
R
false
true
824
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/myncurve.R \name{myncurve} \alias{myncurve} \title{My normal distribution plotter} \usage{ myncurve(mu, sigma, a) } \arguments{ \item{mu}{a number, the mean of the normal distribution} \item{sigma}{a number, the standard deviation of the nor...
testlist <- list(a = 0L, b = 0L, x = c(822750207L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L)) result <- do.call(grattan:::anyOutside,testlist) str(result)
/grattan/inst/testfiles/anyOutside/libFuzzer_anyOutside/anyOutside_valgrind_files/1610056265-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
185
r
testlist <- list(a = 0L, b = 0L, x = c(822750207L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L)) result <- do.call(grattan:::anyOutside,testlist) str(result)
# Database Management System ---------------------------------------------- #' @title Database Management System for Interfacing between Presentation Layer and Functional Layer #' @field path (`character`) A path to the database location. #' @param artifact (`?`) An object. #' @param tags (`character`) A character vect...
/R/DBMS.R
permissive
harell/caret.explainer
R
false
false
2,030
r
# Database Management System ---------------------------------------------- #' @title Database Management System for Interfacing between Presentation Layer and Functional Layer #' @field path (`character`) A path to the database location. #' @param artifact (`?`) An object. #' @param tags (`character`) A character vect...
#### patient selection #### ## use patients with dose 40 dose40_df <- df[df$StatinDose == 40,] sim_pat <- dose40_df[dose40_df$StatinType == "Simvastatin",] atv_pat <- dose40_df[dose40_df$StatinType == "Atorvastatin",] atv.cobas <- atv_pat[atv_pat$COBAS_hsCRP > 0,] x20hatv_qnt <- quantile(atv_pat$X2OHATV12h, probs = c(0...
/stratification.R
no_license
MattMyint/ClinicalPatientChar
R
false
false
1,650
r
#### patient selection #### ## use patients with dose 40 dose40_df <- df[df$StatinDose == 40,] sim_pat <- dose40_df[dose40_df$StatinType == "Simvastatin",] atv_pat <- dose40_df[dose40_df$StatinType == "Atorvastatin",] atv.cobas <- atv_pat[atv_pat$COBAS_hsCRP > 0,] x20hatv_qnt <- quantile(atv_pat$X2OHATV12h, probs = c(0...
#' cv_rd UI Function #' #' @description A shiny Module. #' #' @param id,input,output,session Internal parameters for {shiny}. #' #' @noRd #' #' @importFrom shiny NS tagList mod_cv_rd_ui <- function(id){ ns <- NS(id) tagList( tabBoxPrmdt( id = ns("Boxrd"), tabPanel(title = p(labelInput("selePar...
/R/mod_cv_rd.R
no_license
cran/regressoR
R
false
false
8,367
r
#' cv_rd UI Function #' #' @description A shiny Module. #' #' @param id,input,output,session Internal parameters for {shiny}. #' #' @noRd #' #' @importFrom shiny NS tagList mod_cv_rd_ui <- function(id){ ns <- NS(id) tagList( tabBoxPrmdt( id = ns("Boxrd"), tabPanel(title = p(labelInput("selePar...
library(dplyr) library(ggplot2) library(reshape2) library(GGally) pf = read.csv('pseudo_facebook.tsv', sep='\t') # Third Qualitative Variable pf.fc_by_age_gender <- pf %>% group_by(age, gender) %>% summarise(mean_friend_count = mean(friend_count), median_friend_count = median(friend_count) * 1.0, ...
/proj3/lesson5.R
no_license
tikazyq/udacity-dand
R
false
false
3,649
r
library(dplyr) library(ggplot2) library(reshape2) library(GGally) pf = read.csv('pseudo_facebook.tsv', sep='\t') # Third Qualitative Variable pf.fc_by_age_gender <- pf %>% group_by(age, gender) %>% summarise(mean_friend_count = mean(friend_count), median_friend_count = median(friend_count) * 1.0, ...
#' Highlight & Downplay Proxy #' #' Proxies to highlight and downplay series. #' #' @param proxy An echarts4r proxy as returned by \code{\link{echarts4rProxy}}. #' @param series_index Series index, can be a vector. #' @param series_name Series Name, can be vector. #' #' @examples #' \dontrun{ #' library(shiny) #'...
/R/proxies.R
permissive
y9c/echarts4r
R
false
false
11,692
r
#' Highlight & Downplay Proxy #' #' Proxies to highlight and downplay series. #' #' @param proxy An echarts4r proxy as returned by \code{\link{echarts4rProxy}}. #' @param series_index Series index, can be a vector. #' @param series_name Series Name, can be vector. #' #' @examples #' \dontrun{ #' library(shiny) #'...
# Load data data <- read.csv("household_power_consumption.txt", sep=";", na.strings = "?", stringsAsFactors = FALSE) data$Datetime <- strptime(paste(data$Date, data$Time), format="%d/%m/%Y %H:%M:%S", tz="Europe/Paris") data$Date <- as.Date(data$Date, format="%d/%m/%Y") selectedData <- data[data$Date == "2007-02-01" ...
/plot3.R
no_license
lbcommer/ExData_Plotting1
R
false
false
1,132
r
# Load data data <- read.csv("household_power_consumption.txt", sep=";", na.strings = "?", stringsAsFactors = FALSE) data$Datetime <- strptime(paste(data$Date, data$Time), format="%d/%m/%Y %H:%M:%S", tz="Europe/Paris") data$Date <- as.Date(data$Date, format="%d/%m/%Y") selectedData <- data[data$Date == "2007-02-01" ...
# # 15th April 2019 # risk factor selection for multivariable MR based on Bayes Factors # computation is based on summary data which speeds up computation # # functions # summarymvMR_SSS: main function # summary_stochastic_search: shotgun stochastic search # create_environment: create new environment to search # ...
/summary_mvMR_SSS.R
permissive
Ciarrah/demo_AMD
R
false
false
12,908
r
# # 15th April 2019 # risk factor selection for multivariable MR based on Bayes Factors # computation is based on summary data which speeds up computation # # functions # summarymvMR_SSS: main function # summary_stochastic_search: shotgun stochastic search # create_environment: create new environment to search # ...
`%||%` <- function (x, y) { if ( is.null(x) ) { y } else { x } } dropNulls <- getFromNamespace("dropNulls", "shiny") drop_empty <- function(x){ x <- lapply(x, nchar) x <- lapply(x, sum) x[!as.numeric(x) ==0] } `%/%` <- function(a, b){ file.path(a, b) } #' @importFrom shinyalert shinyalert save...
/R/utils.R
permissive
pzhaonet/backyard
R
false
false
858
r
`%||%` <- function (x, y) { if ( is.null(x) ) { y } else { x } } dropNulls <- getFromNamespace("dropNulls", "shiny") drop_empty <- function(x){ x <- lapply(x, nchar) x <- lapply(x, sum) x[!as.numeric(x) ==0] } `%/%` <- function(a, b){ file.path(a, b) } #' @importFrom shinyalert shinyalert save...
setwd("/home/abelia/RProgrames/project_Data/Project Programs/programs/clustering") library(rjson) library(RJSONIO) library(tm) iTweets=fromJSON("samsung_Processed_tweets.json") mycor=Corpus(VectorSource(iTweets)) mycor=tm_map(mycor,tolower) mycor=tm_map(mycor, removePunctuation) #mycor=tm_map(mycor, removeNumbers) reUR...
/project_Data/Project Programs/clustering k-means & mediods/samsungCluster.R
no_license
neerajsh2008/RProgrames
R
false
false
2,368
r
setwd("/home/abelia/RProgrames/project_Data/Project Programs/programs/clustering") library(rjson) library(RJSONIO) library(tm) iTweets=fromJSON("samsung_Processed_tweets.json") mycor=Corpus(VectorSource(iTweets)) mycor=tm_map(mycor,tolower) mycor=tm_map(mycor, removePunctuation) #mycor=tm_map(mycor, removeNumbers) reUR...
#Model 4 - Linear with complex contamination function cat('\f') rm(list=ls()) #Retrieve functions setwd('C:/Users/dburm/Desktop/School/MATH 4F90/') source('MSEdesign.R') source('Computexj.R') source('kaccept.R') source('Optp.R') source('resultstable.R') source('kL2.R') library(xtable) #####Determine k...
/Regression/Model4.R
no_license
burmd1999/Cluster_Design
R
false
false
6,659
r
#Model 4 - Linear with complex contamination function cat('\f') rm(list=ls()) #Retrieve functions setwd('C:/Users/dburm/Desktop/School/MATH 4F90/') source('MSEdesign.R') source('Computexj.R') source('kaccept.R') source('Optp.R') source('resultstable.R') source('kL2.R') library(xtable) #####Determine k...
plot4 <- function() { # JHU4:Week 1 - Peer Graded Assignment: Course Project 1 # This script downloads a file of individual household electric power consumption data, # limits it to two days worth of data, and creates a Line plot from the data. #STEP001 - Load the libraries to be used in this script library(data.t...
/plot4.R
no_license
ggv524/ExData_Plotting1
R
false
false
2,496
r
plot4 <- function() { # JHU4:Week 1 - Peer Graded Assignment: Course Project 1 # This script downloads a file of individual household electric power consumption data, # limits it to two days worth of data, and creates a Line plot from the data. #STEP001 - Load the libraries to be used in this script library(data.t...
# D. 프로세스별 데이터셋 구성 및 분석단계 가이드 # Part 2 ## D.2. 통계적 기계 학습 # 통계적 학습(statistical learning)이란 데이터 내 구조를 이해하기 위한 다양한 도구를 통칭한다. 크게 지도학습과 자율학습으로 분류 ### D.2.1 지도학습에 의한 분류 #### 로지스틱 회귀 이용법 # 데이터 불러오기 credit <- read.csv("./Data/germancredit.csv", fileEncoding="UTF-8") dim(credit) # 불러온 자료에 포함된 몇몇 변수에 대해 알기...
/stat_anal_base_D.Part2_StatML(198line).R
no_license
gezgoing/NIA_R_2_Stat
R
false
false
6,028
r
# D. 프로세스별 데이터셋 구성 및 분석단계 가이드 # Part 2 ## D.2. 통계적 기계 학습 # 통계적 학습(statistical learning)이란 데이터 내 구조를 이해하기 위한 다양한 도구를 통칭한다. 크게 지도학습과 자율학습으로 분류 ### D.2.1 지도학습에 의한 분류 #### 로지스틱 회귀 이용법 # 데이터 불러오기 credit <- read.csv("./Data/germancredit.csv", fileEncoding="UTF-8") dim(credit) # 불러온 자료에 포함된 몇몇 변수에 대해 알기...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utility.R \name{countOverlapsAnyRev} \alias{countOverlapsAnyRev} \title{Just a reverser. Reverses the order of arguments and passes them untouched to countOverlapsAny -- so you can use it with lapply.} \usage{ countOverlapsAnyRev(subj, quer) ...
/man/countOverlapsAnyRev.Rd
no_license
demuellae/LOLA
R
false
true
560
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utility.R \name{countOverlapsAnyRev} \alias{countOverlapsAnyRev} \title{Just a reverser. Reverses the order of arguments and passes them untouched to countOverlapsAny -- so you can use it with lapply.} \usage{ countOverlapsAnyRev(subj, quer) ...
library(shiny) library(DT) shinyApp( ui = fluidPage( title = 'Radio buttons in a table', DT::dataTableOutput('foo'), verbatimTextOutput('sel') ), server = function(input, output, session) { m = matrix( as.character(1:5), nrow = 12, ncol = 5, byrow = TRUE, dimnames = list(mon...
/test.r
no_license
lancele/DMITDataSurvey
R
false
false
1,153
r
library(shiny) library(DT) shinyApp( ui = fluidPage( title = 'Radio buttons in a table', DT::dataTableOutput('foo'), verbatimTextOutput('sel') ), server = function(input, output, session) { m = matrix( as.character(1:5), nrow = 12, ncol = 5, byrow = TRUE, dimnames = list(mon...
# chapter 4 bigrams tidy_bigrams <- mod_data %>% select(line = id, line_text_mod, everything(), -line_text, -actions, -deleted) %>% unnest_tokens(bigram, line_text_mod, token = "ngrams", n = 2) # get NAs when there is only 1 word in the line # is this ok or do i need to rethink it tidy_bigrams %>% filter(speak...
/chapter4_ngrams.R
no_license
jennaallen/the-office
R
false
false
2,112
r
# chapter 4 bigrams tidy_bigrams <- mod_data %>% select(line = id, line_text_mod, everything(), -line_text, -actions, -deleted) %>% unnest_tokens(bigram, line_text_mod, token = "ngrams", n = 2) # get NAs when there is only 1 word in the line # is this ok or do i need to rethink it tidy_bigrams %>% filter(speak...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/emr_operations.R \name{emr_set_visible_to_all_users} \alias{emr_set_visible_to_all_users} \title{Sets the Cluster$VisibleToAllUsers value, which determines whether the cluster is visible to all IAM users of the AWS account associated with the...
/paws/man/emr_set_visible_to_all_users.Rd
permissive
sanchezvivi/paws
R
false
true
1,663
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/emr_operations.R \name{emr_set_visible_to_all_users} \alias{emr_set_visible_to_all_users} \title{Sets the Cluster$VisibleToAllUsers value, which determines whether the cluster is visible to all IAM users of the AWS account associated with the...
library(sdcTable) ### Name: createArgusInput ### Title: createArgusInput ### Aliases: createArgusInput ### ** Examples # loading micro data from sdcTable data("microData1", package="sdcTable") microData1$num1 <- rnorm(mean=100, sd=25, nrow(microData1)) microData1$num2 <- round(rnorm(mean=500, sd=125, nrow(microData...
/data/genthat_extracted_code/sdcTable/examples/createArgusInput.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
2,509
r
library(sdcTable) ### Name: createArgusInput ### Title: createArgusInput ### Aliases: createArgusInput ### ** Examples # loading micro data from sdcTable data("microData1", package="sdcTable") microData1$num1 <- rnorm(mean=100, sd=25, nrow(microData1)) microData1$num2 <- round(rnorm(mean=500, sd=125, nrow(microData...
#' Infrastructure Tools Package for SomethingCool #' #' This package collects various scripts and templates #' we've found to be useful in organizing projects. #' #' @docType package #' @name SomethingCool NULL
/R/SomethingCool.R
no_license
carriedearest/SomethingCool
R
false
false
211
r
#' Infrastructure Tools Package for SomethingCool #' #' This package collects various scripts and templates #' we've found to be useful in organizing projects. #' #' @docType package #' @name SomethingCool NULL
## Set of graphical methods for phyloseq objects (mainly related to ordination, ## and library size after normalisation) require(gridBase) rarecurve2 <- function (x, step = 1, sample, xlab = "Sample Size", ylab = "Species", label = TRUE, col = "black", ...) ## See documentation for vegan rarecurve, col is now used ...
/Torres-Cortes_etal_2018/Functions/graphical_methods.R
no_license
martialbriand/IRHS_EmerSys
R
false
false
20,424
r
## Set of graphical methods for phyloseq objects (mainly related to ordination, ## and library size after normalisation) require(gridBase) rarecurve2 <- function (x, step = 1, sample, xlab = "Sample Size", ylab = "Species", label = TRUE, col = "black", ...) ## See documentation for vegan rarecurve, col is now used ...
library(bigleaf) ### Name: radiometric.surface.temp ### Title: Radiometric Surface Temperature ### Aliases: radiometric.surface.temp ### ** Examples # determine radiometric surface temperature for the site DE-Tha in June 2014 # assuming an emissivity of 0.98. # (Note that variable 'LW_down' was only included for t...
/data/genthat_extracted_code/bigleaf/examples/radiometric.surface.temp.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
487
r
library(bigleaf) ### Name: radiometric.surface.temp ### Title: Radiometric Surface Temperature ### Aliases: radiometric.surface.temp ### ** Examples # determine radiometric surface temperature for the site DE-Tha in June 2014 # assuming an emissivity of 0.98. # (Note that variable 'LW_down' was only included for t...
#' Get definitions for Eurostat codes #' #' Get definitions for Eurostat codes from Eurostat dictionaries #' #' A string or a factor vector of codes returns a corresponding #' vector of definations. For vectors a dictionary name have to be supplied. #' For data.frames dictonary names are taken from column names. #...
/eurostat_package/label_eurostat.R
no_license
okffi-science/avoin-suomi-2014-shiny
R
false
false
1,809
r
#' Get definitions for Eurostat codes #' #' Get definitions for Eurostat codes from Eurostat dictionaries #' #' A string or a factor vector of codes returns a corresponding #' vector of definations. For vectors a dictionary name have to be supplied. #' For data.frames dictonary names are taken from column names. #...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/load6DR.R \name{.load6DR} \alias{.load6DR} \title{Load data for tcpl6} \usage{ .load6DR(ae) } \arguments{ \item{ae}{String aeid to query on} } \description{ \code{.load6DR} loads dose-response data for tcpl6. }
/man/dot-load6DR.Rd
permissive
USEPA/CompTox-ToxCast-tcpl
R
false
true
289
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/load6DR.R \name{.load6DR} \alias{.load6DR} \title{Load data for tcpl6} \usage{ .load6DR(ae) } \arguments{ \item{ae}{String aeid to query on} } \description{ \code{.load6DR} loads dose-response data for tcpl6. }
#' Get data from the NCES's Common Core of Data for year 2009 to 2016 #' #' #' @param states A string of state names (or name) indicating the states that you want data for. #' @param endyear A numeric year indicated the end year of a school year (e.g., 2016 to get 2015-2016 data). #' @param variables A string of variab...
/R/get_ccd.R
no_license
ramorel/ccdr
R
false
false
3,358
r
#' Get data from the NCES's Common Core of Data for year 2009 to 2016 #' #' #' @param states A string of state names (or name) indicating the states that you want data for. #' @param endyear A numeric year indicated the end year of a school year (e.g., 2016 to get 2015-2016 data). #' @param variables A string of variab...
#' simrec #' #' This function allows simulation of recurrent event data following the multiplicative #' intensity model described in Andersen and Gill [1] with the baseline hazard being a #' function of the total/calendar time. To induce between-subject-heterogeneity a random #' effect covariate (frailty term) can be i...
/R/simrec.R
no_license
cran/simrec
R
false
false
17,173
r
#' simrec #' #' This function allows simulation of recurrent event data following the multiplicative #' intensity model described in Andersen and Gill [1] with the baseline hazard being a #' function of the total/calendar time. To induce between-subject-heterogeneity a random #' effect covariate (frailty term) can be i...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data-freeman.R \docType{data} \name{surfersb} \alias{surfersb} \title{Windsurfers (Interactions)} \format{igraph object} \source{ http://moreno.ss.uci.edu/data.html#beach } \usage{ surfersb } \description{ This was a study of windsurfers on a...
/man/surfersb.Rd
permissive
kjhealy/networkdata
R
false
true
1,182
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data-freeman.R \docType{data} \name{surfersb} \alias{surfersb} \title{Windsurfers (Interactions)} \format{igraph object} \source{ http://moreno.ss.uci.edu/data.html#beach } \usage{ surfersb } \description{ This was a study of windsurfers on a...
########################################################### # # # Create Context-Aware Graphs for LAKE # # # ########################################################### # -------------- MA...
/src/SKE-3-Create-graph-LAKE.R
no_license
SDuari/Supervised-Keyword-Extraction
R
false
false
3,110
r
########################################################### # # # Create Context-Aware Graphs for LAKE # # # ########################################################### # -------------- MA...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{get_project_tree} \alias{get_project_tree} \title{Show example project structure as tree} \usage{ get_project_tree() } \value{ data.tree object } \description{ Use the data.tree package to show an example file structure for shin...
/man/get_project_tree.Rd
no_license
maskegger/cbShinyDemo
R
false
true
336
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{get_project_tree} \alias{get_project_tree} \title{Show example project structure as tree} \usage{ get_project_tree() } \value{ data.tree object } \description{ Use the data.tree package to show an example file structure for shin...
library(testthat) library(simulateGP) test_check("simulateGP")
/tests/testthat.R
permissive
explodecomputer/simulateGP
R
false
false
64
r
library(testthat) library(simulateGP) test_check("simulateGP")
library(plotly) iris$iris_limits <- as.numeric(cut(iris$Sepal.Length,3)) p <- plot_ly(iris, x = ~iris_limits, y = ~Sepal.Length, type = 'bar', name = 'Sepal') %>% layout(yaxis = list(title = 'Count'), barmode = 'group') p
/continuous_to_discrete_grouped_bar_plot.r
no_license
amrrs/SO_Answers
R
false
false
241
r
library(plotly) iris$iris_limits <- as.numeric(cut(iris$Sepal.Length,3)) p <- plot_ly(iris, x = ~iris_limits, y = ~Sepal.Length, type = 'bar', name = 'Sepal') %>% layout(yaxis = list(title = 'Count'), barmode = 'group') p
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sdtm.R \docType{data} \name{sdtm_se} \alias{sdtm_se} \title{sdtm_se} \format{ a data frame with 752 rows and 9 columns. See \url{https://github.com/SafetyGraphics/safetyData/blob/main/data-raw/sdtm/README.md} for more details and full data sp...
/man/sdtm_se.Rd
permissive
Rosie-L/safetyData
R
false
true
985
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sdtm.R \docType{data} \name{sdtm_se} \alias{sdtm_se} \title{sdtm_se} \format{ a data frame with 752 rows and 9 columns. See \url{https://github.com/SafetyGraphics/safetyData/blob/main/data-raw/sdtm/README.md} for more details and full data sp...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/stat-ellipse.R \name{stat_ellipse} \alias{stat_ellipse} \title{Plot data ellipses.} \usage{ stat_ellipse(mapping = NULL, data = NULL, geom = "path", position = "identity", type = "t", level = 0.95, segments = 51, na.rm = FALSE, .....
/man/stat_ellipse.Rd
no_license
larkery/ggplot2
R
false
false
2,646
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/stat-ellipse.R \name{stat_ellipse} \alias{stat_ellipse} \title{Plot data ellipses.} \usage{ stat_ellipse(mapping = NULL, data = NULL, geom = "path", position = "identity", type = "t", level = 0.95, segments = 51, na.rm = FALSE, .....
#=============================================================================== # Name : Plot larval tracking from release_zone to recruitment_zone # Author : Jorge Flores # Date : # Version: # Aim : # URL : #=============================================================================== # setwd("~/Docum...
/R/check_functions/trayectorias_lat_depth.R
no_license
jfloresvaliente/ichthyop_analysis
R
false
false
3,489
r
#=============================================================================== # Name : Plot larval tracking from release_zone to recruitment_zone # Author : Jorge Flores # Date : # Version: # Aim : # URL : #=============================================================================== # setwd("~/Docum...
gnmass<-function(mzrang){# mzrang is a set of mz values for a given pattern of intensities #gnmass finds the length of the first fragment assuming that a gap in mz values separates franments len=length(mzrang); lenpat<-numeric(); j<-1 for(i in 2:len) if((mzrang[i]-mzrang[i-1])>1){lenpat[j]<-(i-1); j<-j+1} lenpat[j...
/R/libcdf.R
no_license
seliv55/cdf2mid
R
false
false
3,688
r
gnmass<-function(mzrang){# mzrang is a set of mz values for a given pattern of intensities #gnmass finds the length of the first fragment assuming that a gap in mz values separates franments len=length(mzrang); lenpat<-numeric(); j<-1 for(i in 2:len) if((mzrang[i]-mzrang[i-1])>1){lenpat[j]<-(i-1); j<-j+1} lenpat[j...
# Set Working Directory setwd("D:/Coursera/Exploratory Data Analysis/Week 1") # Load Dataset hpc <- read.table("household_power_consumption.txt", header = TRUE, sep = ";", na.strings = "?", stringsAsFactors = FALSE) # Subsetting Dataset for timeframe 01/02/2007 - 02/02/2007 hpcsub <- hpc[hpc...
/plot4.R
no_license
wesleyjwk/ExData_Plotting1
R
false
false
1,356
r
# Set Working Directory setwd("D:/Coursera/Exploratory Data Analysis/Week 1") # Load Dataset hpc <- read.table("household_power_consumption.txt", header = TRUE, sep = ";", na.strings = "?", stringsAsFactors = FALSE) # Subsetting Dataset for timeframe 01/02/2007 - 02/02/2007 hpcsub <- hpc[hpc...
library(zoo) library("ggplot2") library(gridExtra) library(grid) library(qdapTools) setwd("C:/Code/climData/glaser2019") #hhi <- read.csv("csv/hhi_summer_1000_2019.csv", sep=",", na = "NA") #half <- read.csv("csv/tmb_folgen_5_10.csv", sep=",") piNew <- read.csv("csv/pm0_4.csv", sep=",") # 1500 quart <- read.csv("...
/source/impact_summer.r
permissive
climdata/playground
R
false
false
1,097
r
library(zoo) library("ggplot2") library(gridExtra) library(grid) library(qdapTools) setwd("C:/Code/climData/glaser2019") #hhi <- read.csv("csv/hhi_summer_1000_2019.csv", sep=",", na = "NA") #half <- read.csv("csv/tmb_folgen_5_10.csv", sep=",") piNew <- read.csv("csv/pm0_4.csv", sep=",") # 1500 quart <- read.csv("...
# Attach packages library(shiny) library(tidyverse) library(palmerpenguins) # Create user interface (UI) ui <- fluidPage( titlePanel("I am adding a TITLE!"), # title for the whole thing sidebarLayout( # sidebar layout with a widget and a graph section sidebarPanel("put my widgets here!", # title ...
/penguins_shiny/app.R
no_license
juliannajollyrenzi/esm244-w2021-lab2
R
false
false
1,410
r
# Attach packages library(shiny) library(tidyverse) library(palmerpenguins) # Create user interface (UI) ui <- fluidPage( titlePanel("I am adding a TITLE!"), # title for the whole thing sidebarLayout( # sidebar layout with a widget and a graph section sidebarPanel("put my widgets here!", # title ...
temp <- tempfile() download.file("http://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?mode=raw&is_datatable=true&acc=GPL96&id=15653&db=GeoDb_blob82",temp) strs1 <- readLines(temp) rowlength1 <- length(strs1) - 16 - 1 GPL96 <- read.csv(temp, header=TRUE, sep="\t",skip = 16, nrows= rowlength1 ) unlink(temp) head(GPL96) GE...
/GSE3189/download and get cor.R
no_license
caipine/GEO_Dataset_Analysis
R
false
false
2,530
r
temp <- tempfile() download.file("http://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?mode=raw&is_datatable=true&acc=GPL96&id=15653&db=GeoDb_blob82",temp) strs1 <- readLines(temp) rowlength1 <- length(strs1) - 16 - 1 GPL96 <- read.csv(temp, header=TRUE, sep="\t",skip = 16, nrows= rowlength1 ) unlink(temp) head(GPL96) GE...
options(max.print = 20000) long_answer_file = read.csv("/Users/Zbynda/Desktop/_0_SUMMER/R/data/long_answer.csv",stringsAsFactors=FALSE) # excludes color-deficient subject long_answer <- long_answer_file[2:34,1:3] long_answer <- long_answer[-c(34),] #long_answer # print
/_r/code/x_unused/long_answer.R
no_license
zbynekstara/capstone
R
false
false
271
r
options(max.print = 20000) long_answer_file = read.csv("/Users/Zbynda/Desktop/_0_SUMMER/R/data/long_answer.csv",stringsAsFactors=FALSE) # excludes color-deficient subject long_answer <- long_answer_file[2:34,1:3] long_answer <- long_answer[-c(34),] #long_answer # print
library(jsonlite) library(tidyverse) rent_json <- fromJSON("https://api.census.gov/data/2019/acs/acs1?get=group(B25063)&for=us") rent <- as.data.frame(t(rent_json[-1,])) colnames(rent) <- t(rent_json[1,]) rent_ests <- rent %>% select(ends_with("E") & starts_with("B")) x <- colnames(rent_ests) cols <- "" for (i in ...
/distribution.R
no_license
abibler/ALX_Housing
R
false
false
1,357
r
library(jsonlite) library(tidyverse) rent_json <- fromJSON("https://api.census.gov/data/2019/acs/acs1?get=group(B25063)&for=us") rent <- as.data.frame(t(rent_json[-1,])) colnames(rent) <- t(rent_json[1,]) rent_ests <- rent %>% select(ends_with("E") & starts_with("B")) x <- colnames(rent_ests) cols <- "" for (i in ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gs_auth.R \name{gs_deauth} \alias{gs_deauth} \title{Suspend authorization} \usage{ gs_deauth(clear_cache = TRUE, verbose = TRUE) } \arguments{ \item{clear_cache}{logical indicating whether to disable the \code{.httr-oauth} file in working dir...
/man/gs_deauth.Rd
no_license
sastoudt/googlesheets
R
false
true
719
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gs_auth.R \name{gs_deauth} \alias{gs_deauth} \title{Suspend authorization} \usage{ gs_deauth(clear_cache = TRUE, verbose = TRUE) } \arguments{ \item{clear_cache}{logical indicating whether to disable the \code{.httr-oauth} file in working dir...
# inti libs<-c("tm", "plyr", "class") lapply(libs, require,character.only=T) # set options options(stringsAsfactors=F) # Set parameters candidates<-c("bush", "weiss") pathname<-"./textMining" # Clean text cleanCorpus<-function(corpus1){ corpus.tm <- tm_map(corpus1, removePunctuation) corpus.tm <- tm_map(c...
/DocumentCalssification.R
no_license
ckameni/FinalProject
R
false
false
2,032
r
# inti libs<-c("tm", "plyr", "class") lapply(libs, require,character.only=T) # set options options(stringsAsfactors=F) # Set parameters candidates<-c("bush", "weiss") pathname<-"./textMining" # Clean text cleanCorpus<-function(corpus1){ corpus.tm <- tm_map(corpus1, removePunctuation) corpus.tm <- tm_map(c...
## Read data data<-read.csv("household_power_consumption.txt",sep=";",na.strings="?") ## Trim data to complete cases data<-data[complete.cases(data),] ## Convert date and trim data to date range of interest data$Date<-as.Date(data$Date,format="%d/%m/%Y") data<-subset(data,Date>=as.Date("2007-02-01",format="%Y-%m-%d")...
/plot2.R
no_license
cjornlin/ExData_Plotting1
R
false
false
658
r
## Read data data<-read.csv("household_power_consumption.txt",sep=";",na.strings="?") ## Trim data to complete cases data<-data[complete.cases(data),] ## Convert date and trim data to date range of interest data$Date<-as.Date(data$Date,format="%d/%m/%Y") data<-subset(data,Date>=as.Date("2007-02-01",format="%Y-%m-%d")...
#######functions for glinternet # 21-Jul-14 Yen Low source(paste(RScriptPath,"/R/logit.R",sep="")) #installnewpackage #to eliminate rows and/or columns coded 0 stripDummy<-function(x){ #cat(nrow(x),ncol(x),"\n") if(nrow(x)==2 & ncol(x)==2){ #eliminate row and column ans=x[-1,-1] }else if(nrow(x)==2 & ...
/clin_R/glinternet.R
no_license
yenlow/utils
R
false
false
8,149
r
#######functions for glinternet # 21-Jul-14 Yen Low source(paste(RScriptPath,"/R/logit.R",sep="")) #installnewpackage #to eliminate rows and/or columns coded 0 stripDummy<-function(x){ #cat(nrow(x),ncol(x),"\n") if(nrow(x)==2 & ncol(x)==2){ #eliminate row and column ans=x[-1,-1] }else if(nrow(x)==2 & ...
# http://www.sthda.com/english/articles/40-regression-analysis/167-simple-linear-regression-in-r/ # https://ase.tufts.edu/gsc/gradresources/guidetomixedmodelsinr/mixed%20model%20guide.html library(MASS) model1 <- lm(points_pct_change ~ team_war_change, team_performance_change_df) model1a <- rlm(points_pct_change ~ te...
/injury_value_analysis_and_visualization.R
no_license
lukeasteer/NHL-injury-value
R
false
false
1,572
r
# http://www.sthda.com/english/articles/40-regression-analysis/167-simple-linear-regression-in-r/ # https://ase.tufts.edu/gsc/gradresources/guidetomixedmodelsinr/mixed%20model%20guide.html library(MASS) model1 <- lm(points_pct_change ~ team_war_change, team_performance_change_df) model1a <- rlm(points_pct_change ~ te...
run_sincell <- function(data, preproc, dim_red, use_dims_input ,dims_input, clust_tech, clust, k_input){ library(sincell) if( preproc != "none" || (dim_red!="PCA" && dim_red!="ICA" && dim_red!="tSNE" && dim_red!="classical-MDS" && dim_red!="nonmetric-MDS" ) || (use_dims_input!="TRUE" && use_dims_input!="...
/run_methods/methods/run_sincell.R
no_license
AitAbdel/Unsupervised-Clustering-of-Single-cell-Data
R
false
false
1,093
r
run_sincell <- function(data, preproc, dim_red, use_dims_input ,dims_input, clust_tech, clust, k_input){ library(sincell) if( preproc != "none" || (dim_red!="PCA" && dim_red!="ICA" && dim_red!="tSNE" && dim_red!="classical-MDS" && dim_red!="nonmetric-MDS" ) || (use_dims_input!="TRUE" && use_dims_input!="...
\name{capture_all_str} \alias{capture_all_str} \title{Capture all matches in a single subject string} \description{Capture each match of a regex pattern from one multi-line subject string or text file. It can be used to convert any regular text file (web page, log, etc) to a data table, see examples.} \usage{capture_al...
/man/capture_all_str.Rd
no_license
MichaelChirico/nc
R
false
false
12,310
rd
\name{capture_all_str} \alias{capture_all_str} \title{Capture all matches in a single subject string} \description{Capture each match of a regex pattern from one multi-line subject string or text file. It can be used to convert any regular text file (web page, log, etc) to a data table, see examples.} \usage{capture_al...
rm(list = ls(all = TRUE)) # load all required parameters (initial theta, grid size, ...) source('parameters.R') # load the dtq package for finding the computing likelihood function library('Rgdtq') # load library for RMSE calculation library('Metrics') # load data as fd vector fname = paste('fakedata_', fakedatanum...
/HMCtesting/linear_cpp/metropolistest.R
no_license
hbhat4000/sdeinference
R
false
false
3,646
r
rm(list = ls(all = TRUE)) # load all required parameters (initial theta, grid size, ...) source('parameters.R') # load the dtq package for finding the computing likelihood function library('Rgdtq') # load library for RMSE calculation library('Metrics') # load data as fd vector fname = paste('fakedata_', fakedatanum...
## Create a special matrix object that can cache its inverse makeCacheMatrix <- function(x = matrix()) { ## Initializing the inverse m <- NULL ## setting the matrix set <- function(y) { x <<- y m <<- NULL } ## getting the matrix get <- function() { x } ## setting the inverse fo...
/cachematrix.R
no_license
vivekm405/ProgrammingAssignment2
R
false
false
1,025
r
## Create a special matrix object that can cache its inverse makeCacheMatrix <- function(x = matrix()) { ## Initializing the inverse m <- NULL ## setting the matrix set <- function(y) { x <<- y m <<- NULL } ## getting the matrix get <- function() { x } ## setting the inverse fo...
#' A reference class for generating transition plots #' #' This class simplifies the creating of transition plots. It also #' allows for advanced multi-column transitions. #' #' @field transitions This is a >= 3 dimensional array with the transitions. Should not be direcly accessed. #' @field box_width The box width #'...
/R/transitionClass.R
no_license
aeron15/Gmisc
R
false
false
43,283
r
#' A reference class for generating transition plots #' #' This class simplifies the creating of transition plots. It also #' allows for advanced multi-column transitions. #' #' @field transitions This is a >= 3 dimensional array with the transitions. Should not be direcly accessed. #' @field box_width The box width #'...
install.packages("ipred") library(ipred) credit = read.csv("credit.csv") credit #create ensemble using bagging technique set.seed(300) mybag = bagging(default ~ ., data = credit, nbagg = 25) #predict the data credit_pred = predict(mybag, credit) table(credit_pred, credit$default) #using train control parameters t...
/Meta Learners, ANN & SVM/bagging.R
no_license
shuchimishra/data-science
R
false
false
522
r
install.packages("ipred") library(ipred) credit = read.csv("credit.csv") credit #create ensemble using bagging technique set.seed(300) mybag = bagging(default ~ ., data = credit, nbagg = 25) #predict the data credit_pred = predict(mybag, credit) table(credit_pred, credit$default) #using train control parameters t...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rmf-plot.ghb.R \name{rmf_plot.ghb} \alias{rmf_plot.ghb} \title{Plot a 2D section of an RMODFLOW ghb object} \usage{ \method{rmf_plot}{ghb}(ghb, dis, all_parm = F, variable = "identity", instnum = NULL, l = NULL, sp = NULL, ...) } \arguments...
/man/rmf_plot.ghb.Rd
no_license
matejgedeon/RMODFLOW
R
false
true
1,702
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rmf-plot.ghb.R \name{rmf_plot.ghb} \alias{rmf_plot.ghb} \title{Plot a 2D section of an RMODFLOW ghb object} \usage{ \method{rmf_plot}{ghb}(ghb, dis, all_parm = F, variable = "identity", instnum = NULL, l = NULL, sp = NULL, ...) } \arguments...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pcm-01-extractScales.R \name{extractScales} \alias{extractScales} \title{Scales-Based Descriptors derived by Principal Components Analysis} \usage{ extractScales(x, propmat, pc, lag, scale = TRUE, silent = TRUE) } \arguments{ \item{x}{A chara...
/man/extractScales.Rd
no_license
skjq/protr
R
false
true
2,253
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pcm-01-extractScales.R \name{extractScales} \alias{extractScales} \title{Scales-Based Descriptors derived by Principal Components Analysis} \usage{ extractScales(x, propmat, pc, lag, scale = TRUE, silent = TRUE) } \arguments{ \item{x}{A chara...
CleanAll <- function(dat, env = parent.frame(n = 1)) { # trial cleaning dat <- CleanTrial(dat) # target cleaning if (env$exp$setup$type == "target" | env$exp$setup$type == "boundary" | env$exp$setup$type == "fast") { dat <- CleanTarget(dat) } # boundary cleaning if (env$exp$setup$type == "bo...
/R/CleanAll.R
no_license
sascha2schroeder/popEye
R
false
false
1,566
r
CleanAll <- function(dat, env = parent.frame(n = 1)) { # trial cleaning dat <- CleanTrial(dat) # target cleaning if (env$exp$setup$type == "target" | env$exp$setup$type == "boundary" | env$exp$setup$type == "fast") { dat <- CleanTarget(dat) } # boundary cleaning if (env$exp$setup$type == "bo...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/E_step_approx.R \name{calc2NBProb} \alias{calc2NBProb} \title{Calculate probability for negative binomial model} \usage{ calc2NBProb(y, mu, size) } \description{ Calculate probability for negative binomial model }
/man/calc2NBProb.Rd
no_license
cz-ye/DECENT
R
false
true
292
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/E_step_approx.R \name{calc2NBProb} \alias{calc2NBProb} \title{Calculate probability for negative binomial model} \usage{ calc2NBProb(y, mu, size) } \description{ Calculate probability for negative binomial model }
#The makeCacheMatrix function takes a matrix as an argument, and caches the inverse of that matrix, while also providing functions for cacheSolve. #The functions, along with the inverted matrix, will be passed to cacheSolve. makeCacheMatrix <- function(x = matrix()) { invmat <- NULL set <- function(y) { ...
/cachematrix.R
no_license
plewenhaupt/ProgrammingAssignment2
R
false
false
1,551
r
#The makeCacheMatrix function takes a matrix as an argument, and caches the inverse of that matrix, while also providing functions for cacheSolve. #The functions, along with the inverted matrix, will be passed to cacheSolve. makeCacheMatrix <- function(x = matrix()) { invmat <- NULL set <- function(y) { ...
###This code is to be used in RL ###The RL should just concern the reduction_control; other inputs will be either from Bayesian updating or given as data. ###Output is the states by the end of prediction window (specified by current and pred) ### Arguements description: ## reduction_control:reductions in grocery shopp...
/COVID19_models/SEIR/seir_r_weekly.R
no_license
gracejia513/covidNSF
R
false
false
2,875
r
###This code is to be used in RL ###The RL should just concern the reduction_control; other inputs will be either from Bayesian updating or given as data. ###Output is the states by the end of prediction window (specified by current and pred) ### Arguements description: ## reduction_control:reductions in grocery shopp...
library(r2d3) library(shiny) library(SmarterPoland) library(dplyr) ui <- fluidPage( titlePanel("Praca Domowa 4"), sidebarLayout( sidebarPanel( numericInput(inputId = "n_input", label = "Liczba słupków:", value = 10 ) ), mainPanel( h2("Plot"...
/Wyjsciowki/W8/gr1/PaszkoBartosz/app.R
no_license
paldynaagata/WizualizacjaDanych2018
R
false
false
645
r
library(r2d3) library(shiny) library(SmarterPoland) library(dplyr) ui <- fluidPage( titlePanel("Praca Domowa 4"), sidebarLayout( sidebarPanel( numericInput(inputId = "n_input", label = "Liczba słupków:", value = 10 ) ), mainPanel( h2("Plot"...
library(ggplot2) library(grid) library(gridExtra) data <- readRDS("summarySCC_PM25.rds") subdata<- subset(data, fips == "24510") emissions<-data.frame(matrix(nrow = 4, ncol = 4)) types<- unique(subdata$type) for (i in 1:4) { sub<- subset(subdata, type == types[i]) nine<- subset(sub, year == "1999") em_9...
/plot3.R
no_license
santi-paz/Exploratory-Data-Analysis-Course-Project-2-
R
false
false
1,101
r
library(ggplot2) library(grid) library(gridExtra) data <- readRDS("summarySCC_PM25.rds") subdata<- subset(data, fips == "24510") emissions<-data.frame(matrix(nrow = 4, ncol = 4)) types<- unique(subdata$type) for (i in 1:4) { sub<- subset(subdata, type == types[i]) nine<- subset(sub, year == "1999") em_9...
data = read.table("household_power_consumption.txt", header = FALSE, skip = 66637, sep = ";", nrows = (69517-66638+1), stringsAsFactors = FALSE) colnames(data) = c("Date", "Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3") png("plot2...
/plot2.R
no_license
pumpkin78/ExData_Plotting1
R
false
false
521
r
data = read.table("household_power_consumption.txt", header = FALSE, skip = 66637, sep = ";", nrows = (69517-66638+1), stringsAsFactors = FALSE) colnames(data) = c("Date", "Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3") png("plot2...
\name{myeloma} \alias{myeloma} \title{Multiple Myeloma Data} \description{ Krall, Uthoff, and Harley (1975) analyzed data from a study on multiple myeloma in which researchers treated 65 patients with alkylating agents. Of those patients, 48 died during the study and 17 survived. In the data set MYELOMA, t...
/man/myeloma.Rd
no_license
cran/emplik
R
false
false
1,805
rd
\name{myeloma} \alias{myeloma} \title{Multiple Myeloma Data} \description{ Krall, Uthoff, and Harley (1975) analyzed data from a study on multiple myeloma in which researchers treated 65 patients with alkylating agents. Of those patients, 48 died during the study and 17 survived. In the data set MYELOMA, t...
celsius_opinion <- function(temp_C) { if(temp_C <= 2) return("Het is héél koud") else if(temp_C > 2 && temp_C < 10) return('Het is koud') else if(temp_C >= 10 && temp_C < 20) return("Het is goed weer!") else if(temp_C > 20) return("Het is warm") }
/R/temperatureOpinion.R
no_license
ResearchUCLL/TemperatureConversion
R
false
false
274
r
celsius_opinion <- function(temp_C) { if(temp_C <= 2) return("Het is héél koud") else if(temp_C > 2 && temp_C < 10) return('Het is koud') else if(temp_C >= 10 && temp_C < 20) return("Het is goed weer!") else if(temp_C > 20) return("Het is warm") }
## ----setup, include=FALSE------------------------------------------------ require(knitr) knitr::opts_chunk$set(echo = TRUE) library(rcITR) ## ----Generate data set, results='markup', echo=TRUE---------------------- set.seed(123) dat <- generateData(n = 1000) str(dat) ## ----Summary plots, results='marku...
/docs/rcITR-vignette.R
no_license
kdoub5ha/rcITR
R
false
false
5,274
r
## ----setup, include=FALSE------------------------------------------------ require(knitr) knitr::opts_chunk$set(echo = TRUE) library(rcITR) ## ----Generate data set, results='markup', echo=TRUE---------------------- set.seed(123) dat <- generateData(n = 1000) str(dat) ## ----Summary plots, results='marku...
# This function corresponds to the ISO 8601 standard # for specifying dates and times as described in # the ISO 8601:2004e standard. # # See: # http://en.wikipedia.org/wiki/ISO_8601 # http://www.iso.org/iso/support/faqs/faqs_widely_used_standards/widely_used_standards_other/date_and_time_format.htm # # This impl...
/R/parse8601.R
no_license
ta264/xts
R
false
false
5,625
r
# This function corresponds to the ISO 8601 standard # for specifying dates and times as described in # the ISO 8601:2004e standard. # # See: # http://en.wikipedia.org/wiki/ISO_8601 # http://www.iso.org/iso/support/faqs/faqs_widely_used_standards/widely_used_standards_other/date_and_time_format.htm # # This impl...