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
\alias{gdkPangoLayoutGetClipRegion} \name{gdkPangoLayoutGetClipRegion} \title{gdkPangoLayoutGetClipRegion} \description{Obtains a clip region which contains the areas where the given ranges of text would be drawn. \code{x.origin} and \code{y.origin} are the same position you would pass to \code{\link{gdkDrawLayoutLine}...
/RGtk2/man/gdkPangoLayoutGetClipRegion.Rd
no_license
lawremi/RGtk2
R
false
false
1,178
rd
\alias{gdkPangoLayoutGetClipRegion} \name{gdkPangoLayoutGetClipRegion} \title{gdkPangoLayoutGetClipRegion} \description{Obtains a clip region which contains the areas where the given ranges of text would be drawn. \code{x.origin} and \code{y.origin} are the same position you would pass to \code{\link{gdkDrawLayoutLine}...
testlist <- list(x = structure(c(5.44987446091506e-251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(10L, 4L))) result <- do.call(bravo:::colSumSq_matrix,testlist) str(result)
/bravo/inst/testfiles/colSumSq_matrix/libFuzzer_colSumSq_matrix/colSumSq_matrix_valgrind_files/1609958970-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
259
r
testlist <- list(x = structure(c(5.44987446091506e-251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(10L, 4L))) result <- do.call(bravo:::colSumSq_matrix,testlist) str(result)
create_graphs <- function(new_frame,category_vector, select_color,dir_to_create){ dir.create(dir_to_create) setwd(dir_to_create) options(scipen = 999) options(stringsAsFactors = FALSE) suppressMessages(library(xlsx)) suppressMessages(library(ggplot2)) suppressMessages(library(scales)) suppressMessages(l...
/create_graphs_ajungo.R
no_license
ngoyle1/DKC-Analytics-Help-Code
R
false
false
1,216
r
create_graphs <- function(new_frame,category_vector, select_color,dir_to_create){ dir.create(dir_to_create) setwd(dir_to_create) options(scipen = 999) options(stringsAsFactors = FALSE) suppressMessages(library(xlsx)) suppressMessages(library(ggplot2)) suppressMessages(library(scales)) suppressMessages(l...
#' Utility functions related to the mgcv package #' #' These internal functions are used by \code{\link{semipar.mix.mp}} (but can #' also be used more generally) to customize the implementation of B-spline #' smoothing by \code{\link[mgcv]{gam}}. Specifically, a B-spline smooth with #' equispaced knots can be incorpor...
/R/vows-mgcv.R
no_license
cran/vows
R
false
false
5,214
r
#' Utility functions related to the mgcv package #' #' These internal functions are used by \code{\link{semipar.mix.mp}} (but can #' also be used more generally) to customize the implementation of B-spline #' smoothing by \code{\link[mgcv]{gam}}. Specifically, a B-spline smooth with #' equispaced knots can be incorpor...
# best bootstrap relatedness mums best <- c(36,52,86,88,96,103,110,203,206) abund_best <- abund[, best] library(vegan) bc <- as.vector(vegdist(abund_best)) rel <- as.vector(as.dist(1-relate)) bc[bc==1] <- NA rel[rel==1] <- NA plot(rel, bc) abline(lm((bc ~ rel),col="red")) glm(bc ~ rel) df <- as.data.frame(cbind(b...
/scripts/plotting-best-rel-elements-vs-bc.R
no_license
mastoffel/scent
R
false
false
464
r
# best bootstrap relatedness mums best <- c(36,52,86,88,96,103,110,203,206) abund_best <- abund[, best] library(vegan) bc <- as.vector(vegdist(abund_best)) rel <- as.vector(as.dist(1-relate)) bc[bc==1] <- NA rel[rel==1] <- NA plot(rel, bc) abline(lm((bc ~ rel),col="red")) glm(bc ~ rel) df <- as.data.frame(cbind(b...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/minimize.GP.R \name{calculate.prior} \alias{calculate.prior} \title{calculate.prior} \usage{ calculate.prior(samples, priors) }
/modules/emulator/man/calculate.prior.Rd
permissive
Kah5/pecan
R
false
true
206
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/minimize.GP.R \name{calculate.prior} \alias{calculate.prior} \title{calculate.prior} \usage{ calculate.prior(samples, priors) }
makeCacheMatrix <- function(x = matrix()){ inv <- NULL set <- function(y){ X <<- y inv <<- NULL } get <- function() {x} setInverse <- function(inverse) {inv <<- inverse} getInverse <- function() {inv} list(set = set, get = get, setInverse = setInverse, getInverse = getInverse) } cache...
/mycachematrix123.R
no_license
Deepak-nirma/ProgrammingAssignment2
R
false
false
550
r
makeCacheMatrix <- function(x = matrix()){ inv <- NULL set <- function(y){ X <<- y inv <<- NULL } get <- function() {x} setInverse <- function(inverse) {inv <<- inverse} getInverse <- function() {inv} list(set = set, get = get, setInverse = setInverse, getInverse = getInverse) } cache...
library(MASS) data <- ChickWeight ## a ## chick34 <- data[data$Chick == 34,] plot(chick34$weight~chick34$Time,type='l') ## b ## chick.diet4 <- data[data$Diet == 4,] boxplot(chick.diet4$weight~chick.diet4$Time) ## c & d ## time_pt <- unique(chick.diet4$Time) f <- function (chick_data){ mean_wt <- vector() for(i...
/LabTest-1/q3.R
no_license
vikram-santhosh/R_Lab
R
false
false
758
r
library(MASS) data <- ChickWeight ## a ## chick34 <- data[data$Chick == 34,] plot(chick34$weight~chick34$Time,type='l') ## b ## chick.diet4 <- data[data$Diet == 4,] boxplot(chick.diet4$weight~chick.diet4$Time) ## c & d ## time_pt <- unique(chick.diet4$Time) f <- function (chick_data){ mean_wt <- vector() for(i...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/INCA.DEG.R \name{INCA.DEG} \alias{INCA.DEG} \title{INCATome Deregulated Genes Identification} \usage{ INCA.DEG(x, cl, wcol, filt = TRUE, selneg, base = 2, highlight = NULL) } \arguments{ \item{x}{an RGList object} \item{cl}{a vect...
/man/INCA.DEG.Rd
no_license
cran/INCATome
R
false
true
1,660
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/INCA.DEG.R \name{INCA.DEG} \alias{INCA.DEG} \title{INCATome Deregulated Genes Identification} \usage{ INCA.DEG(x, cl, wcol, filt = TRUE, selneg, base = 2, highlight = NULL) } \arguments{ \item{x}{an RGList object} \item{cl}{a vect...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fit_r_light.R \name{fit_r_light_kok} \alias{fit_r_light_kok} \alias{fit_r_light_WalkerOrt} \alias{fit_r_light_yin} \title{Estimating light respiration} \usage{ fit_r_light_kok( data, varnames = list(A_net = "A_net", PPFD = "PPFD"), PPFD...
/man/fit_r_light.Rd
permissive
cran/photosynthesis
R
false
true
5,375
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fit_r_light.R \name{fit_r_light_kok} \alias{fit_r_light_kok} \alias{fit_r_light_WalkerOrt} \alias{fit_r_light_yin} \title{Estimating light respiration} \usage{ fit_r_light_kok( data, varnames = list(A_net = "A_net", PPFD = "PPFD"), PPFD...
library(parallel) allm <- list.files('/home-4/whou10@jhu.edu/scratch/Wenpin/rna_imputation/simu/result/procimpute/') m = as.character(commandArgs(trailingOnly = T)[1]) print(m) allf <- list.files(paste0('/home-4/whou10@jhu.edu/scratch/Wenpin/rna_imputation/simu/result/procimpute/',m)) res <- lapply(allf, function(f) { ...
/simu/code/diff_wilcox/01_get_diff_fdr.R
no_license
wangdi2016/imputationBenchmark
R
false
false
2,229
r
library(parallel) allm <- list.files('/home-4/whou10@jhu.edu/scratch/Wenpin/rna_imputation/simu/result/procimpute/') m = as.character(commandArgs(trailingOnly = T)[1]) print(m) allf <- list.files(paste0('/home-4/whou10@jhu.edu/scratch/Wenpin/rna_imputation/simu/result/procimpute/',m)) res <- lapply(allf, function(f) { ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_functions.R \name{plot_trend} \alias{plot_trend} \title{Trend plot} \usage{ plot_trend(y_0, y_hat, dates, pt_num = 4, col_vec = NULL, line_size = rep(0.75, ncol(y_hat) + 1), alpha_size = rep(0.75, ncol(y_hat) + 1), xlab = NULL, ylab ...
/man/plot_trend.Rd
no_license
chenhongqi0716/LasForecast
R
false
true
1,429
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_functions.R \name{plot_trend} \alias{plot_trend} \title{Trend plot} \usage{ plot_trend(y_0, y_hat, dates, pt_num = 4, col_vec = NULL, line_size = rep(0.75, ncol(y_hat) + 1), alpha_size = rep(0.75, ncol(y_hat) + 1), xlab = NULL, ylab ...
tab1 <- rbind( attainment1$NationalAverage[[1]][[1]], do.call('rbind',attainment1$overall$x)) tab1 <- cbind(race=c('National Average',attainment1$overall$blackORwhite), deaf=c('',as.character(attainment1$overall$deaf)), as.data.frame(round(tab1,1))) tab1 <- tab1%>% select(-ends_with('SE',ignore.case=FALSE...
/ACS2013-17/makeTables.r
no_license
EmilyKubicek/attainmentAndEmployment
R
false
false
3,235
r
tab1 <- rbind( attainment1$NationalAverage[[1]][[1]], do.call('rbind',attainment1$overall$x)) tab1 <- cbind(race=c('National Average',attainment1$overall$blackORwhite), deaf=c('',as.character(attainment1$overall$deaf)), as.data.frame(round(tab1,1))) tab1 <- tab1%>% select(-ends_with('SE',ignore.case=FALSE...
/3 - Stadistical Inference/Practice 3.R
no_license
Marcialbarajas/Stadistic-and-Data-Analysis-with-R
R
false
false
2,703
r
# R code for multivariate analysis library(vegan) #package already installed #download dataset from IOL and import them in R #give a name to dataset + assign name to a function (<-) + read.table to import from outside (name) + header = true bc first line is title + separator is the comma, so we state it biomes <-read...
/R_code_multivar.r
no_license
Eleonora2103/Monitoring-Unibo
R
false
false
1,413
r
# R code for multivariate analysis library(vegan) #package already installed #download dataset from IOL and import them in R #give a name to dataset + assign name to a function (<-) + read.table to import from outside (name) + header = true bc first line is title + separator is the comma, so we state it biomes <-read...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/binomialfunction.R \name{bin_probability} \alias{bin_probability} \title{Binomal probability} \usage{ bin_probability(n, k, p) } \arguments{ \item{n}{the number of trials} \item{k}{the vector of successes} \item{p}{the probability of succes...
/binomial/man/bin_probability.Rd
no_license
stat133-sp19/hw-stat133-lynn0707
R
false
true
827
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/binomialfunction.R \name{bin_probability} \alias{bin_probability} \title{Binomal probability} \usage{ bin_probability(n, k, p) } \arguments{ \item{n}{the number of trials} \item{k}{the vector of successes} \item{p}{the probability of succes...
pollutantmean <- function(directory, pollutant, id = 1:332) { ## 'directory' is a character vector of length 1 indicating ## the location of the CSV files ## 'pollutant' is a character vector of length 1 indicating ## the name of the pollutant for which we will calculate the ## mean; either "sulfate" or "...
/2. RProgramming/Week2/Assignment1/pollutantmean.R
no_license
bbsharma1/datascience_coursera
R
false
false
1,552
r
pollutantmean <- function(directory, pollutant, id = 1:332) { ## 'directory' is a character vector of length 1 indicating ## the location of the CSV files ## 'pollutant' is a character vector of length 1 indicating ## the name of the pollutant for which we will calculate the ## mean; either "sulfate" or "...
rad2degree <- function(x) { ang <- x*180/pi return(ang) }
/R/rad2degree.R
no_license
cran/calibrate
R
false
false
69
r
rad2degree <- function(x) { ang <- x*180/pi return(ang) }
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/AvgRank/upper_aerodigestive_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.04,family="gaussian",standardize=FALSE) sink('./upper_aerodi...
/Model/EN/AvgRank/upper_aerodigestive_tract/upper_aerodigestive_tract_020.R
no_license
esbgkannan/QSMART
R
false
false
385
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/AvgRank/upper_aerodigestive_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.04,family="gaussian",standardize=FALSE) sink('./upper_aerodi...
skip_connection("broom-naive_bayes") skip_on_livy() skip_on_arrow_devel() skip_databricks_connect() library(dplyr) test_that("naive_bayes.tidy() works", { ## ---------------- Connection and data upload to Spark ---------------------- sc <- testthat_spark_connection() test_requires_version("2.0.0") iris_tbl ...
/tests/testthat/test-broom-naive_bayes.R
permissive
sparklyr/sparklyr
R
false
false
1,288
r
skip_connection("broom-naive_bayes") skip_on_livy() skip_on_arrow_devel() skip_databricks_connect() library(dplyr) test_that("naive_bayes.tidy() works", { ## ---------------- Connection and data upload to Spark ---------------------- sc <- testthat_spark_connection() test_requires_version("2.0.0") iris_tbl ...
# # locppm.R # # Local (pseudo)likelihood for point processes # # $Revision: 1.185 $ $Date: 2022/03/22 08:02:10 $ # locppm <- function(..., sigma=NULL, f = 1/4, vcalc=c("none", "t", "hessian", "hom", "lik", "full"), locations=c("split", "fine", "coarse"), ngri...
/R/locppm.R
no_license
baddstats/spatstat.local
R
false
false
82,270
r
# # locppm.R # # Local (pseudo)likelihood for point processes # # $Revision: 1.185 $ $Date: 2022/03/22 08:02:10 $ # locppm <- function(..., sigma=NULL, f = 1/4, vcalc=c("none", "t", "hessian", "hom", "lik", "full"), locations=c("split", "fine", "coarse"), ngri...
#' make a tsv file of predictions for this model make_model_preds <- function(model_out, outdir) { library(methods) # necessary when running via 'Rscript' call at command line library(dplyr) library(tidyr) library(ggplot2) library(unitted) library(streamMetabolizer) library(mda.streams) # Get mode...
/2_metab_outputs/code/make_model_preds.R
permissive
aappling-usgs/stream_metab_usa
R
false
false
1,243
r
#' make a tsv file of predictions for this model make_model_preds <- function(model_out, outdir) { library(methods) # necessary when running via 'Rscript' call at command line library(dplyr) library(tidyr) library(ggplot2) library(unitted) library(streamMetabolizer) library(mda.streams) # Get mode...
#' Covert grid reference to latitude and longitude #' #' @param gridref a vector of strings giving grid references to be changed #' @param precision gives the precision of the grid references. Must be of #' the same length as gridref. precision is given in meters as a numeric #' i.e. 10km square = 10000...
/R/gr2gps_latlon.R
no_license
ThierryO/sparta
R
false
false
2,914
r
#' Covert grid reference to latitude and longitude #' #' @param gridref a vector of strings giving grid references to be changed #' @param precision gives the precision of the grid references. Must be of #' the same length as gridref. precision is given in meters as a numeric #' i.e. 10km square = 10000...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/helper_functions.R \name{wtd.sd} \alias{wtd.sd} \title{Calculate a weighted standard deviation} \usage{ wtd.sd(x, w = NULL, na.rm = FALSE) } \arguments{ \item{x}{a vector of numerics} \item{w}{a vector of weights equal to length of x} \item...
/man/wtd.sd.Rd
permissive
jknowles/caretEnsemble
R
false
true
473
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/helper_functions.R \name{wtd.sd} \alias{wtd.sd} \title{Calculate a weighted standard deviation} \usage{ wtd.sd(x, w = NULL, na.rm = FALSE) } \arguments{ \item{x}{a vector of numerics} \item{w}{a vector of weights equal to length of x} \item...
##' Compute the quadratic, linear, and/or discrete features of multiple variables for a single group ##' ##' Fits the moving window quadratic (or linear) regression model for each continuous variable in ##' a data frame, and calculates summary statistics of the parameters. Also calculates the ##' duration and transit...
/R/getFeatures.R
no_license
LTate/qFeature
R
false
false
3,720
r
##' Compute the quadratic, linear, and/or discrete features of multiple variables for a single group ##' ##' Fits the moving window quadratic (or linear) regression model for each continuous variable in ##' a data frame, and calculates summary statistics of the parameters. Also calculates the ##' duration and transit...
"dwapi-r Copyright 2018 data.world, Inc. Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
/R/replace_insight.R
permissive
datadotworld/dwapi-r
R
false
false
1,766
r
"dwapi-r Copyright 2018 data.world, Inc. Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
# REQUIRE TEST survey weights correctly passed -------------------------------- test_that('REQUIRE TEST survey weights correctly passed', { data(api, package = "survey") z.out1 <- zelig(api00 ~ meals + yr.rnd, model = "normal.survey", id = ~dnum, weights = 'pw', data = apiclus1, fpc = ~fp...
/tests/testthat/test-survey.R
no_license
IQSS/Zelig
R
false
false
2,235
r
# REQUIRE TEST survey weights correctly passed -------------------------------- test_that('REQUIRE TEST survey weights correctly passed', { data(api, package = "survey") z.out1 <- zelig(api00 ~ meals + yr.rnd, model = "normal.survey", id = ~dnum, weights = 'pw', data = apiclus1, fpc = ~fp...
test_that("list_source_files works", { p <- setup_mock_db(populate = TRUE) expect_error(o <- list_source_files(p), NA) expect_equal(o, "events.2018.sample.tab") }) test_that("get_db_state works", { p <- setup_mock_db(populate = TRUE) expect_error(o <- get_db_state(p), NA) expect_equal(o$file_name, "event...
/tests/testthat/test-get-db-state.R
permissive
andybega/icews
R
false
false
343
r
test_that("list_source_files works", { p <- setup_mock_db(populate = TRUE) expect_error(o <- list_source_files(p), NA) expect_equal(o, "events.2018.sample.tab") }) test_that("get_db_state works", { p <- setup_mock_db(populate = TRUE) expect_error(o <- get_db_state(p), NA) expect_equal(o$file_name, "event...
--- title: "NIH - Mali TBV Trial Exploratory Data Cleaning & Analysis" --- #This script cleans and outputs initial statistics from the NIH Mali #TBV Trial dataset. #by Emily Reichert (PATH) June 2019 setwd("~/Documents/2019 PATH research") #load necessary libraries library(tidyr) library(readr) library(dplyr) librar...
/mali_tbv_exploratory.R
no_license
PATH-Global-Health/Reichert_Mali_antigens
R
false
false
7,267
r
--- title: "NIH - Mali TBV Trial Exploratory Data Cleaning & Analysis" --- #This script cleans and outputs initial statistics from the NIH Mali #TBV Trial dataset. #by Emily Reichert (PATH) June 2019 setwd("~/Documents/2019 PATH research") #load necessary libraries library(tidyr) library(readr) library(dplyr) librar...
# Chapter5 # barplot and jitter library(tidyverse) library(socviz) organdata %>% View # boxplot, + coord_flip organdata %>% ggplot(aes(x = country, y = donors))+ # transpose, but don't change data geom_boxplot() + coord_flip() # boxplot with reordered organdata %>% ggplot(aes(x = reorder(country, ...
/R/Chapter5/box_and_jitter.R
no_license
takuizum/ggplot
R
false
false
2,480
r
# Chapter5 # barplot and jitter library(tidyverse) library(socviz) organdata %>% View # boxplot, + coord_flip organdata %>% ggplot(aes(x = country, y = donors))+ # transpose, but don't change data geom_boxplot() + coord_flip() # boxplot with reordered organdata %>% ggplot(aes(x = reorder(country, ...
#!/mlab/data/software/R-3.2.1-F22/bin/Rscript ############################################################################################ ## ## Written by Sen Yao, 07/20/2016 ## Copyright Sen Yao, Robert Flight, and Hunter Moseley, 07/20/2016. All rights reserved. ## ##############################################...
/kmeans.mnr.optimalk.5.R
permissive
syao13/metalloprotein.CG
R
false
false
8,623
r
#!/mlab/data/software/R-3.2.1-F22/bin/Rscript ############################################################################################ ## ## Written by Sen Yao, 07/20/2016 ## Copyright Sen Yao, Robert Flight, and Hunter Moseley, 07/20/2016. All rights reserved. ## ##############################################...
#' IDs of an individual's natal family members #' #' For a given individual, this function returns IDs of the parents and their (shared) offspring being ever born. #' @param x An individual ID #' @param df_ped A dataframe for genealogical relations providing the variables 'id', 'momid' and 'dadid' #' @keywords kh pedig...
/R/get_natfam_id.R
no_license
johow/kinlab
R
false
false
686
r
#' IDs of an individual's natal family members #' #' For a given individual, this function returns IDs of the parents and their (shared) offspring being ever born. #' @param x An individual ID #' @param df_ped A dataframe for genealogical relations providing the variables 'id', 'momid' and 'dadid' #' @keywords kh pedig...
library(dplyr) library(lubridate) # << Check if there is a file for data, if not, create it >> if(!file.exists("data")){dir.create("./data")} # Specify data source, download and unzip it filetodownload <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" download.file(filetodownl...
/plot4.R
no_license
KatherineKher/ExData_Plotting1
R
false
false
1,642
r
library(dplyr) library(lubridate) # << Check if there is a file for data, if not, create it >> if(!file.exists("data")){dir.create("./data")} # Specify data source, download and unzip it filetodownload <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" download.file(filetodownl...
#--------------------Libraries-------------------- library(plyr) library(ggplot2) library(dplyr) library(data.table) library(tidyr) library(lme4) library(lmerTest) library(rcompanion) library(DescTools) library(tibble) library(caret) library(MASS) library(zoo) library(vcd) library(neuralnet) library(RVAideMemoire) libr...
/All Apps Test v0.8.R
no_license
jpmintz01/still-falls-analysis
R
false
false
170,805
r
#--------------------Libraries-------------------- library(plyr) library(ggplot2) library(dplyr) library(data.table) library(tidyr) library(lme4) library(lmerTest) library(rcompanion) library(DescTools) library(tibble) library(caret) library(MASS) library(zoo) library(vcd) library(neuralnet) library(RVAideMemoire) libr...
library(RLLVMCompile) f = function(n) { ctr = 0L x = 0L for(i in 1:n) { printf("i = %d\n", i) x = 0L for(j in 1:i) { x = x + 1L ctr = ctr + 1L } x = 10L } ctr } fc = compileFunction(f, Int32Type, list(Int32Type)) stopifnot(.llvm(fc, 10) == 55) cat("okay\...
/tests/nestedLoops1.R
no_license
duncantl/RLLVMCompile
R
false
false
325
r
library(RLLVMCompile) f = function(n) { ctr = 0L x = 0L for(i in 1:n) { printf("i = %d\n", i) x = 0L for(j in 1:i) { x = x + 1L ctr = ctr + 1L } x = 10L } ctr } fc = compileFunction(f, Int32Type, list(Int32Type)) stopifnot(.llvm(fc, 10) == 55) cat("okay\...
## Carrega pacotes que serão utilizados bibs <- c("tidyverse", "rsample", "ROCR", "xtable", "knitr", "e1071") sapply(bibs, require, character.only = T) ## Função para arredondamento FF <- function(x,Digits=4,Width=4){(formatC(x,digits=Digits,width=Width,format="f"))} ## Função para calcular estatísticas de performanc...
/work3/analysis.R
no_license
AndrMenezes/dm2019
R
false
false
6,341
r
## Carrega pacotes que serão utilizados bibs <- c("tidyverse", "rsample", "ROCR", "xtable", "knitr", "e1071") sapply(bibs, require, character.only = T) ## Função para arredondamento FF <- function(x,Digits=4,Width=4){(formatC(x,digits=Digits,width=Width,format="f"))} ## Função para calcular estatísticas de performanc...
turk4_s1119 <- read.table("turk4_s1119.txt", header=T) names(turk4_s1119) <- c("X1","X2","X3","C1","T1")
/data/turk4_s1119.R
no_license
ewan/dlp
R
false
false
105
r
turk4_s1119 <- read.table("turk4_s1119.txt", header=T) names(turk4_s1119) <- c("X1","X2","X3","C1","T1")
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vimp_deviance.R \name{vimp_deviance} \alias{vimp_deviance} \title{Nonparametric Intrinsic Variable Importance Estimates: Deviance} \usage{ vimp_deviance( Y = NULL, X = NULL, cross_fitted_f1 = NULL, cross_fitted_f2 = NULL, f1 = NULL,...
/man/vimp_deviance.Rd
permissive
bdwilliamson/vimp
R
false
true
12,133
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vimp_deviance.R \name{vimp_deviance} \alias{vimp_deviance} \title{Nonparametric Intrinsic Variable Importance Estimates: Deviance} \usage{ vimp_deviance( Y = NULL, X = NULL, cross_fitted_f1 = NULL, cross_fitted_f2 = NULL, f1 = NULL,...
relative_bot <- function(team_combinations_data_with_other_player_probs, deck_status, bot_config, bot_team_id, pre_aggr_game_status_input = NULL) { #team_combinations_data_with_other_player_probs <- hidden_information_output join_my_ttf <- team_combinations_data_with_other_player_probs ...
/scripts/bots/relative_bot.R
no_license
Laurigit/flAImme
R
false
false
8,974
r
relative_bot <- function(team_combinations_data_with_other_player_probs, deck_status, bot_config, bot_team_id, pre_aggr_game_status_input = NULL) { #team_combinations_data_with_other_player_probs <- hidden_information_output join_my_ttf <- team_combinations_data_with_other_player_probs ...
# Intrinio API # # Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://i...
/R/StockPriceSummary.r
no_license
wangrenfeng0/r-sdk
R
false
false
13,640
r
# Intrinio API # # Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://i...
setwd("C:/Users/Maria Jose Figueroa/Desktop") power_consumption<-read.table("./ExData_Plotting1/household_power_consumption.txt", skip=1,sep=";") names(power_consumption)<- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3") sub...
/Plot4.R
no_license
MariaJose97-22/ExData_Plotting1
R
false
false
1,572
r
setwd("C:/Users/Maria Jose Figueroa/Desktop") power_consumption<-read.table("./ExData_Plotting1/household_power_consumption.txt", skip=1,sep=";") names(power_consumption)<- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3") sub...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geom_parliament_seats.R \name{geom_parliament_seats} \alias{geom_parliament_seats} \title{Parliament seats The parliament seats geom is used for plotting data from parliament_data()} \usage{ geom_parliament_seats(mapping = NULL, data =...
/man/geom_parliament_seats.Rd
no_license
cran/ggparliament
R
false
true
1,545
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geom_parliament_seats.R \name{geom_parliament_seats} \alias{geom_parliament_seats} \title{Parliament seats The parliament seats geom is used for plotting data from parliament_data()} \usage{ geom_parliament_seats(mapping = NULL, data =...
setwd("~/Desktop/Other/MS_Courses/Inf_and_rep/project/nycSchoolPredictions/GMRF_modeling") source('get_data.R') library(reshape) library(ggplot2) melt_train = melt(train[,!(colnames(train) %in% c('CT2010','School.Year'))]) png('figs/grade_distribution.png',width=800,height=700, res=144) ggplot(data=melt_train, aes(...
/GMRF_modeling/plots_for_data_section.R
no_license
buj201/inf_and_rep_final_project
R
false
false
3,141
r
setwd("~/Desktop/Other/MS_Courses/Inf_and_rep/project/nycSchoolPredictions/GMRF_modeling") source('get_data.R') library(reshape) library(ggplot2) melt_train = melt(train[,!(colnames(train) %in% c('CT2010','School.Year'))]) png('figs/grade_distribution.png',width=800,height=700, res=144) ggplot(data=melt_train, aes(...
#t.test to measure mutation or CNV effect on YAP pathway-related genes' dependency input2=read.delim("D:/demo/demo.txt",head=T,sep="\t") y=input2$TEAD3 i=6 l=1 matrix=matrix(,ncol=2,nrow=ncol(input2)-5) while (i<ncol(input2)+1) { ttest=t.test(y~input2[,i:i]) p_value=ttest$p.value matrix[l:l,2:2]=p_value ...
/ttest.R
no_license
dreamerwu/ttest_within-genetic-status
R
false
false
393
r
#t.test to measure mutation or CNV effect on YAP pathway-related genes' dependency input2=read.delim("D:/demo/demo.txt",head=T,sep="\t") y=input2$TEAD3 i=6 l=1 matrix=matrix(,ncol=2,nrow=ncol(input2)-5) while (i<ncol(input2)+1) { ttest=t.test(y~input2[,i:i]) p_value=ttest$p.value matrix[l:l,2:2]=p_value ...
#' nnpredict - Perform a single forward run of the neural network model. #' #' @param model_name Name of the model that defines the neural network in iQuest format. #' @param input_vec Numeric vector with the same length as the number of input nodes. #' @param echo Toggle printing of debug statements within neural netw...
/R/nnPredict.R
permissive
smwesten-usgs/nnlib
R
false
false
2,216
r
#' nnpredict - Perform a single forward run of the neural network model. #' #' @param model_name Name of the model that defines the neural network in iQuest format. #' @param input_vec Numeric vector with the same length as the number of input nodes. #' @param echo Toggle printing of debug statements within neural netw...
####### read data day_data = read.csv('day.csv') pairs(day_data) par(mfrow=c(1,1)) ####### select columns that we may use later, and transform windspeed index = day_data$instant season = day_data$season year = day_data$yr month = day_data$mnth absmonth = abs(month-7) holiday = day_data$holiday weekday = day_data$week...
/code.R
no_license
Felicia1994/ma575-linear-models
R
false
false
7,852
r
####### read data day_data = read.csv('day.csv') pairs(day_data) par(mfrow=c(1,1)) ####### select columns that we may use later, and transform windspeed index = day_data$instant season = day_data$season year = day_data$yr month = day_data$mnth absmonth = abs(month-7) holiday = day_data$holiday weekday = day_data$week...
#Clear Memory rm(list = ls()) #Load Libraries library(ggplot2) library(ggstance) library(ggmcmc) library(coda) library(gdata) library(statnet) library(readxl) library(XLConnect) library(dplyr) set.seed(12345678) sessionInfo() #Set working directory setwd('~/Dropbox/github/Migration Data') #Load the data read_excel...
/Migration Data/ACS0615.R
no_license
apstanet2017/apstanet17-tmattia93
R
false
false
14,070
r
#Clear Memory rm(list = ls()) #Load Libraries library(ggplot2) library(ggstance) library(ggmcmc) library(coda) library(gdata) library(statnet) library(readxl) library(XLConnect) library(dplyr) set.seed(12345678) sessionInfo() #Set working directory setwd('~/Dropbox/github/Migration Data') #Load the data read_excel...
#' @title Create a trace plot for a single desired node #' @param post A [`mcmc.list`][coda::mcmc.list] object. #' @param param A regular expression that matches a single element in the model. #' E.g., `"b0[1]"`, not `"b0"`. See [match_params()]. #' @param keep_percent A numeric vector of length == 1 and on the range...
/R/trace_plot.R
permissive
bstaton1/postpack
R
false
false
1,954
r
#' @title Create a trace plot for a single desired node #' @param post A [`mcmc.list`][coda::mcmc.list] object. #' @param param A regular expression that matches a single element in the model. #' E.g., `"b0[1]"`, not `"b0"`. See [match_params()]. #' @param keep_percent A numeric vector of length == 1 and on the range...
# packages that we will need this afternoon: # @ kernlab: for the spam dataset, originally from: https://archive.ics.uci.edu/ml/datasets/Spambase # @ tree: for decision tree construction # @ randomForest: for RF # @ beepr: for a little beep # @ pROC: for plotting of ROC # code snippet ...
/codes/prep.R
no_license
tohweizhong/NUS-DataScience
R
false
false
1,315
r
# packages that we will need this afternoon: # @ kernlab: for the spam dataset, originally from: https://archive.ics.uci.edu/ml/datasets/Spambase # @ tree: for decision tree construction # @ randomForest: for RF # @ beepr: for a little beep # @ pROC: for plotting of ROC # code snippet ...
## Check if directory exists, create one if not and download zip file to folder if(!file.exists("./data")){dir.create("./data")} fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" download.file(fileUrl,destfile="./data/Dataset.zip",method="curl") ## Use unzip function ...
/run_analysis.R
no_license
ToddDouglas/GACD_CourseProject
R
false
false
2,941
r
## Check if directory exists, create one if not and download zip file to folder if(!file.exists("./data")){dir.create("./data")} fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" download.file(fileUrl,destfile="./data/Dataset.zip",method="curl") ## Use unzip function ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spacy_initialize.R \name{find_spacy} \alias{find_spacy} \title{Find spaCy} \usage{ find_spacy(model = "en", ask) } \arguments{ \item{model}{name of the language model} \item{ask}{logical; if \code{FALSE}, use the first spaCy installation fou...
/man/find_spacy.Rd
no_license
poldham/spacyr
R
false
true
647
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spacy_initialize.R \name{find_spacy} \alias{find_spacy} \title{Find spaCy} \usage{ find_spacy(model = "en", ask) } \arguments{ \item{model}{name of the language model} \item{ask}{logical; if \code{FALSE}, use the first spaCy installation fou...
#' A Modified Function of \code{ggsave} for \code{recordedplot} Class Objects #' #' This is a modified function of \code{ggsave} for \code{recordedplot} class #' objects. #' #' @param filename file name/filename of plot #' @param plot plot to save, defaults to last plot displayed #' @param device device to use, ...
/R/util-ggsaveKmg2.r
no_license
cran/RcmdrPlugin.KMggplot2
R
false
false
4,002
r
#' A Modified Function of \code{ggsave} for \code{recordedplot} Class Objects #' #' This is a modified function of \code{ggsave} for \code{recordedplot} class #' objects. #' #' @param filename file name/filename of plot #' @param plot plot to save, defaults to last plot displayed #' @param device device to use, ...
pdf('mping.excision.distr.pdf') t <- read.table("mping.excision.table") f <- t[,2] f <- f[f>0] brk <- c(0,1,2,3,4,5,6,7,8,9,10,100) xx <- hist(f,breaks=brk, ylab="Frequency", xlab="Excisions", col="steelblue2", main="",border=T, plot=F) y <- xx$counts x <- xx$mids xx <- barplot(y,beside=TRUE,ylab="Insertion sites",cex...
/bin/Compare_excision/mping.excision.distr.R
no_license
wangpanqiao/Transposition
R
false
false
814
r
pdf('mping.excision.distr.pdf') t <- read.table("mping.excision.table") f <- t[,2] f <- f[f>0] brk <- c(0,1,2,3,4,5,6,7,8,9,10,100) xx <- hist(f,breaks=brk, ylab="Frequency", xlab="Excisions", col="steelblue2", main="",border=T, plot=F) y <- xx$counts x <- xx$mids xx <- barplot(y,beside=TRUE,ylab="Insertion sites",cex...
\name{setWorkingDir} \alias{setWorkingDir} \title{setWorkingDir} \usage{ setWorkingDir(workingDir) } \arguments{ \item{workingDir}{} } \description{ setWorkingDir } \author{ Barnet Wagman } \keyword{internal}
/man/setWorkingDir.Rd
no_license
cran/rreval
R
false
false
218
rd
\name{setWorkingDir} \alias{setWorkingDir} \title{setWorkingDir} \usage{ setWorkingDir(workingDir) } \arguments{ \item{workingDir}{} } \description{ setWorkingDir } \author{ Barnet Wagman } \keyword{internal}
# E7 combining script for weight, oocysts, qPCR, RT-qPCR, ELISA and hopefully FACS library(httr) library(RCurl) library(dplyr) library(Rmisc) library(ggplot2) library(tidyverse) library(modelr) library(ggrepel) # load in weight and oocysts E7_weightANDoocysts <- "https://raw.githubusercontent.com/derele/Eimeria_Lab/ma...
/Eimeria_Lab_code/E7_112019_Eim_combine.R
no_license
LubomirBednar/PhD
R
false
false
2,603
r
# E7 combining script for weight, oocysts, qPCR, RT-qPCR, ELISA and hopefully FACS library(httr) library(RCurl) library(dplyr) library(Rmisc) library(ggplot2) library(tidyverse) library(modelr) library(ggrepel) # load in weight and oocysts E7_weightANDoocysts <- "https://raw.githubusercontent.com/derele/Eimeria_Lab/ma...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/loadFUNs.R \name{logit.mod.se} \alias{logit.mod.se} \title{logit.mod.se} \usage{ logit.mod.se(x) } \arguments{ \item{x}{the standard error of non transformed data} } \value{ 1 / (x * (1 - x)) } \description{ calculate standard error of a logi...
/man/logit.mod.se.Rd
no_license
tessington/pelagichypoxia
R
false
true
348
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/loadFUNs.R \name{logit.mod.se} \alias{logit.mod.se} \title{logit.mod.se} \usage{ logit.mod.se(x) } \arguments{ \item{x}{the standard error of non transformed data} } \value{ 1 / (x * (1 - x)) } \description{ calculate standard error of a logi...
context("hierarchy functions") test_that("hierarchy_down basic functionality works", { vcr::use_cassette("hierarchy_down", { aa <- hierarchy_down(tsn = 179913) }) expect_is(aa, "data.frame") expect_is(aa, "tbl_df") expect_is(aa$tsn, "character") expect_gt(NROW(aa), 0) }) test_that("hierarchy_up basi...
/tests/testthat/test-hierarchy.R
permissive
ropensci/ritis
R
false
false
1,414
r
context("hierarchy functions") test_that("hierarchy_down basic functionality works", { vcr::use_cassette("hierarchy_down", { aa <- hierarchy_down(tsn = 179913) }) expect_is(aa, "data.frame") expect_is(aa, "tbl_df") expect_is(aa$tsn, "character") expect_gt(NROW(aa), 0) }) test_that("hierarchy_up basi...
#' Sample from Bayesian copula GLM #' #' Sample from a GLM via Bayesian copula regression model. #' Uses random-walk Metropolis to update regression coefficients and dispersion parameters. #' Assumes Inverse Wishart prior on augmented data. #' #' @importFrom stats coef cor glm model.matrix cov sd #' #' @pa...
/bayescopulareg/R/bayescopulaglm.R
no_license
akhikolla/ClusterTests
R
false
false
15,530
r
#' Sample from Bayesian copula GLM #' #' Sample from a GLM via Bayesian copula regression model. #' Uses random-walk Metropolis to update regression coefficients and dispersion parameters. #' Assumes Inverse Wishart prior on augmented data. #' #' @importFrom stats coef cor glm model.matrix cov sd #' #' @pa...
#' @importFrom utils download.file download_abs <- function(url, path = "data/ABS", show_progress_bars = TRUE){ # create a subdirectory of the working directory with value given by the path argument # and define the filename that will be given to the downloaded ta...
/R/download_abs.R
no_license
wfmackey/readabs
R
false
false
612
r
#' @importFrom utils download.file download_abs <- function(url, path = "data/ABS", show_progress_bars = TRUE){ # create a subdirectory of the working directory with value given by the path argument # and define the filename that will be given to the downloaded ta...
# Bayesian Models for Regularization -------------------------------------- # Packages ---------------------------------------------------------------- library(dplyr) library(ggplot2) # contains the diamonds dataset library(brms) library(parallel) source("generalized_ridge_point_estimator.R") source("brms_models.R"...
/bayesian_regularization/coeff_comparison.R
permissive
davidetramo/blog
R
false
false
4,245
r
# Bayesian Models for Regularization -------------------------------------- # Packages ---------------------------------------------------------------- library(dplyr) library(ggplot2) # contains the diamonds dataset library(brms) library(parallel) source("generalized_ridge_point_estimator.R") source("brms_models.R"...
data_cleaning <- function(hourly_YYYY){ # removes from the dataset the most extreme 3% cap <- quantile(abs(hourly_YYYY$duck_ramp_t_MWh), .97) # loop of dismissal for (i in 1:7922) { #7199 if(abs(hourly_YYYY[i, "duck_ramp_t_MWh"]) >= cap) { hourly_YYYY <- hourly_YYYY[-c(i, i+1, i+2, i+3, i+4, i+5...
/data_cleaning.R
no_license
PatyHidalgo/Load_Following
R
false
false
376
r
data_cleaning <- function(hourly_YYYY){ # removes from the dataset the most extreme 3% cap <- quantile(abs(hourly_YYYY$duck_ramp_t_MWh), .97) # loop of dismissal for (i in 1:7922) { #7199 if(abs(hourly_YYYY[i, "duck_ramp_t_MWh"]) >= cap) { hourly_YYYY <- hourly_YYYY[-c(i, i+1, i+2, i+3, i+4, i+5...
# Set working directory to location of the file 'household_power_consumption.txt' #downloaded and unzipped from https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip setwd("C:/Users/Dell/Documents/R/exploratory_data") dt.initial <- read.table("household_power_consumption.txt", header=T...
/plot4.R
no_license
Adrian-Johnston/ExData_Plotting1
R
false
false
1,953
r
# Set working directory to location of the file 'household_power_consumption.txt' #downloaded and unzipped from https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip setwd("C:/Users/Dell/Documents/R/exploratory_data") dt.initial <- read.table("household_power_consumption.txt", header=T...
## version: 1.26 ## method: post ## path: /networks/create ## code: 201 ## response: {"Id":"22be93d5babb089c5aab8dbc369042fad48ff791584ca2da2100db837a1c7c30","Warning":""} list( id = "22be93d5babb089c5aab8dbc369042fad48ff791584ca2da2100db837a1c7c30", warning = "")
/tests/testthat/sample_responses/v1.26/network_create.R
no_license
cran/stevedore
R
false
false
269
r
## version: 1.26 ## method: post ## path: /networks/create ## code: 201 ## response: {"Id":"22be93d5babb089c5aab8dbc369042fad48ff791584ca2da2100db837a1c7c30","Warning":""} list( id = "22be93d5babb089c5aab8dbc369042fad48ff791584ca2da2100db837a1c7c30", warning = "")
powerdt <- read.csv("household_power_consumption.txt", header=TRUE, sep=";", na.strings = "?", colClasses = c('character','character','numeric','numeric','numeric','numeric','numeric','numeric','numeric')) ## Format date to Type Date powerdt$Date <- as.Date(powerdt$Date, "%d/%m/%Y") ## Subset of data - 2007-2-1 and 200...
/plot4.R
no_license
d2dave/ExData_Plotting1
R
false
false
1,647
r
powerdt <- read.csv("household_power_consumption.txt", header=TRUE, sep=";", na.strings = "?", colClasses = c('character','character','numeric','numeric','numeric','numeric','numeric','numeric','numeric')) ## Format date to Type Date powerdt$Date <- as.Date(powerdt$Date, "%d/%m/%Y") ## Subset of data - 2007-2-1 and 200...
#### Libraries #### suppressPackageStartupMessages(library(openair)) # for timeAverage function suppressPackageStartupMessages(library(dplyr)) #### Functions #### "%w/o%" <- function(x, y) !x %in% y theta.mwr = function(mwrtv) { # This function calculates the potential temperature from a data frame # of temp...
/scripts/ccnymwr_functions.R
no_license
thedmv/uwrf_evaluation_system
R
false
false
34,085
r
#### Libraries #### suppressPackageStartupMessages(library(openair)) # for timeAverage function suppressPackageStartupMessages(library(dplyr)) #### Functions #### "%w/o%" <- function(x, y) !x %in% y theta.mwr = function(mwrtv) { # This function calculates the potential temperature from a data frame # of temp...
setwd("/scratch/edbeck") library(rstan) library(brms) library(tidybayes) library(plyr) library(tidyverse) sessionInfo() jobid = as.integer(Sys.getenv("PBS_ARRAYID")) print(jobid) args <- read.table("/scratch/edbeck/psm/psm_matched_args_pe1_168.txt", header = F, stringsAsFactors = F)[jobid,] print(args) # dotR <- file...
/scripts/psm_cluster/R/psm_matched_run_pe1_168.R
no_license
emoriebeck/big-five-prediction
R
false
false
8,401
r
setwd("/scratch/edbeck") library(rstan) library(brms) library(tidybayes) library(plyr) library(tidyverse) sessionInfo() jobid = as.integer(Sys.getenv("PBS_ARRAYID")) print(jobid) args <- read.table("/scratch/edbeck/psm/psm_matched_args_pe1_168.txt", header = F, stringsAsFactors = F)[jobid,] print(args) # dotR <- file...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/checks.R \name{check_kfold} \alias{check_kfold} \title{Check that kfold is an integer of reasonable size} \usage{ check_kfold(kfold, dataset) } \arguments{ \item{kfold}{Fold number for k-fold cross-validation (default: \code{5}).} \item{data...
/man/check_kfold.Rd
permissive
SchlossLab/mikropml
R
false
true
585
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/checks.R \name{check_kfold} \alias{check_kfold} \title{Check that kfold is an integer of reasonable size} \usage{ check_kfold(kfold, dataset) } \arguments{ \item{kfold}{Fold number for k-fold cross-validation (default: \code{5}).} \item{data...
library(shiny) shinyUI(fluidPage( titlePanel("Predict diamond price from weight"), sidebarLayout( sidebarPanel( sliderInput("slidercarat", "What is the weight in carats of the diamond?", 0.1, 0.35, value = 0.2), checkboxInput("showModel", "...
/myApp/ui.R
no_license
schlueterj/Developing_Data_Products_CourseProject3
R
false
false
2,065
r
library(shiny) shinyUI(fluidPage( titlePanel("Predict diamond price from weight"), sidebarLayout( sidebarPanel( sliderInput("slidercarat", "What is the weight in carats of the diamond?", 0.1, 0.35, value = 0.2), checkboxInput("showModel", "...
# Extract Site Locations from Webtris # Inputs: # Webtris # Outputs: # Site_Locations.csv # Libraries Used: # library("httr") # library( "jsonlite") # MIDAS Sites sites = fromJSON( "http://webtris.highwaysengland.co.uk/api/v1/sitetypes/1/sites" , simplifyDataFrame=TRUE, flatten = TRUE) sites = sites$sites nam...
/Organised_Code/002_Download_Halogen_Site_Locations_JSON.R
no_license
Robinlovelace/Traffic_Code
R
false
false
2,056
r
# Extract Site Locations from Webtris # Inputs: # Webtris # Outputs: # Site_Locations.csv # Libraries Used: # library("httr") # library( "jsonlite") # MIDAS Sites sites = fromJSON( "http://webtris.highwaysengland.co.uk/api/v1/sitetypes/1/sites" , simplifyDataFrame=TRUE, flatten = TRUE) sites = sites$sites nam...
canonize <- function(input) { ## from vector within Kriging space AND in Kriging scale, also returns composite var FONKinput <- blackbox.getOption("FONKgLow") FONKinput[names(input)] <- input FONKinput <- unlist(FONKinput) ## previous line sometimes creates a list although no argument is ?? ## unlogs log...
/blackbox/R/canonize.R
no_license
ingted/R-Examples
R
false
false
3,181
r
canonize <- function(input) { ## from vector within Kriging space AND in Kriging scale, also returns composite var FONKinput <- blackbox.getOption("FONKgLow") FONKinput[names(input)] <- input FONKinput <- unlist(FONKinput) ## previous line sometimes creates a list although no argument is ?? ## unlogs log...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hdCBPS.R \name{hdCBPS} \alias{hdCBPS} \alias{hdCBPS.fit} \title{hdCBPS high dimensional CBPS method to parses the formula object and passes the result to hdCBPS.fit, which calculates ATE using CBPS method in a high dimensional setting.} ...
/man/hdCBPS.Rd
no_license
Zoe187419/CBPS
R
false
true
1,875
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hdCBPS.R \name{hdCBPS} \alias{hdCBPS} \alias{hdCBPS.fit} \title{hdCBPS high dimensional CBPS method to parses the formula object and passes the result to hdCBPS.fit, which calculates ATE using CBPS method in a high dimensional setting.} ...
#Read data power=read.csv("~/Downloads/household_power_consumption.txt",header=TRUE,sep=";",na.strings="?",stringsAsFactors=FALSE) #Create a Date/Time Variable and Convert Format power$DateTime=strptime(paste(power$Date,power$Time),"%d/%m/%Y %H:%M:%S") #Use only two days worth of data power=subset(power,power$DateTime>...
/plot2.R
no_license
dapbs/ExData_Plotting1
R
false
false
585
r
#Read data power=read.csv("~/Downloads/household_power_consumption.txt",header=TRUE,sep=";",na.strings="?",stringsAsFactors=FALSE) #Create a Date/Time Variable and Convert Format power$DateTime=strptime(paste(power$Date,power$Time),"%d/%m/%Y %H:%M:%S") #Use only two days worth of data power=subset(power,power$DateTime>...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/umxDoC.R \name{umxDoC} \alias{umxDoC} \title{Build and run a 2-group Direction of Causation twin models.} \usage{ umxDoC( name = "DoC", var1Indicators, var2Indicators, mzData = NULL, dzData = NULL, sep = "_T", causal = TRUE, a...
/man/umxDoC.Rd
no_license
MATA62N/umx
R
false
true
5,160
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/umxDoC.R \name{umxDoC} \alias{umxDoC} \title{Build and run a 2-group Direction of Causation twin models.} \usage{ umxDoC( name = "DoC", var1Indicators, var2Indicators, mzData = NULL, dzData = NULL, sep = "_T", causal = TRUE, a...
summarizeadd2 <- function(abo,probe.effects){ ############################################# inds.all = indexProbes(abo,which="pm") if(dim(Biobase::exprs(abo))[2] != 1) stop("\n error: to many chips \n\n") #########if(sum( names(inds.all) == names(probe.effects)) != length(probe.effects)) sto...
/R/summarizeadd2.R
no_license
cran/bapred
R
false
false
1,553
r
summarizeadd2 <- function(abo,probe.effects){ ############################################# inds.all = indexProbes(abo,which="pm") if(dim(Biobase::exprs(abo))[2] != 1) stop("\n error: to many chips \n\n") #########if(sum( names(inds.all) == names(probe.effects)) != length(probe.effects)) sto...
## This is two functions ## First one creates a special matrix object that can cache it's inverse ## Secondcomputes the inverse of this special matrix ## makeCacheMatrix returns a list of functions that ## 1. set the value of the matrix ## 2. get the value of the matrix ## 3. set the value of the inverse ## 4. get th...
/cachematrix.R
no_license
bnramey/ProgrammingAssignment2
R
false
false
1,180
r
## This is two functions ## First one creates a special matrix object that can cache it's inverse ## Secondcomputes the inverse of this special matrix ## makeCacheMatrix returns a list of functions that ## 1. set the value of the matrix ## 2. get the value of the matrix ## 3. set the value of the inverse ## 4. get th...
library(xlsx) library(ggplot2) library(pheatmap) library(superheat) library(RColorBrewer) library(biomaRt) biocLite("biomaRt") setwd("~/LerouxLab/heatmap") #read in heatmap datasheet heatmap_df = read.csv("UpdatedHeatmapData.txt", sep="\t", stringsAsFactors = FALSE) row_names = as.vector(heatmap_df[c(1:1984...
/heatmapScript.R
no_license
roshannoronha/lerouxlab
R
false
false
4,464
r
library(xlsx) library(ggplot2) library(pheatmap) library(superheat) library(RColorBrewer) library(biomaRt) biocLite("biomaRt") setwd("~/LerouxLab/heatmap") #read in heatmap datasheet heatmap_df = read.csv("UpdatedHeatmapData.txt", sep="\t", stringsAsFactors = FALSE) row_names = as.vector(heatmap_df[c(1:1984...
context("fars_read") test_that("multiplication works", { expect_error(fars_read("accident_2015.csv.bz2"), "file 'accident_2015.csv.bz2' does not exist") })
/tests/testthat/test-fars_read.R
no_license
nanhung/fars
R
false
false
159
r
context("fars_read") test_that("multiplication works", { expect_error(fars_read("accident_2015.csv.bz2"), "file 'accident_2015.csv.bz2' does not exist") })
# generate_board_mat test 1 test_that("generate_board_mat creates a 5 by 5 matrix with only 0's and 1's.", { expect_true(nrow(generate_board_mat()) == 5, ncol(generate_board_mat()) == 5, (generate_board_mat() == 0 || generate_board_mat() == 1)) }) # generate_board_mat test 2 test_that("ge...
/tests:testthat:/test-utils.R
no_license
surajn98/percolate
R
false
false
4,000
r
# generate_board_mat test 1 test_that("generate_board_mat creates a 5 by 5 matrix with only 0's and 1's.", { expect_true(nrow(generate_board_mat()) == 5, ncol(generate_board_mat()) == 5, (generate_board_mat() == 0 || generate_board_mat() == 1)) }) # generate_board_mat test 2 test_that("ge...
# This file is auto-generated by h2o-3/h2o-bindings/bin/gen_R.py # Copyright 2016 H2O.ai; Apache License Version 2.0 (see LICENSE for details) #' # -------------------------- Target Encoder -------------------------- # #' #' Transformation of a categorical variable with a mean value of the target variable #' #' @para...
/h2o-r/h2o-package/R/targetencoder.R
permissive
h2oai/h2o-3
R
false
false
12,200
r
# This file is auto-generated by h2o-3/h2o-bindings/bin/gen_R.py # Copyright 2016 H2O.ai; Apache License Version 2.0 (see LICENSE for details) #' # -------------------------- Target Encoder -------------------------- # #' #' Transformation of a categorical variable with a mean value of the target variable #' #' @para...
thurman_office_function <- function(belligerent_a, belligerent_b){ # #Loaf the files and construct the graph # file_id <- grepl("thuroff", files) g_dl <- load_dl_graph(files[file_id], directed = FALSE) edge_df <-bind_rows(g_dl[[1]] %>% as_data_frame() %>% ...
/thurman_office_function.R
no_license
JonnoB/Useful_PhD__R_Functions
R
false
false
5,165
r
thurman_office_function <- function(belligerent_a, belligerent_b){ # #Loaf the files and construct the graph # file_id <- grepl("thuroff", files) g_dl <- load_dl_graph(files[file_id], directed = FALSE) edge_df <-bind_rows(g_dl[[1]] %>% as_data_frame() %>% ...
\name{ortiz2015} \alias{ortiz2015} \docType{data} \title{Statcast Data for David Ortiz} \description{ 2015 Statcast Data for David Ortiz } \usage{ ortiz2015 } \format{ A data frame with 350 observations on the following 7 variables. \describe{ \item{Game Date}{day of game} \item{Pitcher}{name of pitcher} \ite...
/man/ortiz2015.Rd
no_license
bayesball/mystatcast
R
false
false
610
rd
\name{ortiz2015} \alias{ortiz2015} \docType{data} \title{Statcast Data for David Ortiz} \description{ 2015 Statcast Data for David Ortiz } \usage{ ortiz2015 } \format{ A data frame with 350 observations on the following 7 variables. \describe{ \item{Game Date}{day of game} \item{Pitcher}{name of pitcher} \ite...
\name{pathprint.Dm.gs} \alias{pathprint.Dm.gs} \docType{data} \title{ Pathprint genesets - D. melanogaster } \description{ Pathways and genesets used by pathprint for \emph{D. melanogaster} arrays, referenced by Entrez Gene ID } \usage{pathprint.Dm.gs} \details{ Gene sets were inferred by homology from the human genese...
/man/pathprint.Dm.gs.Rd
permissive
pombredanne/pathprint
R
false
false
1,002
rd
\name{pathprint.Dm.gs} \alias{pathprint.Dm.gs} \docType{data} \title{ Pathprint genesets - D. melanogaster } \description{ Pathways and genesets used by pathprint for \emph{D. melanogaster} arrays, referenced by Entrez Gene ID } \usage{pathprint.Dm.gs} \details{ Gene sets were inferred by homology from the human genese...
#' @title Blank corrects EA sample data. (Not Implemented) #' #' @description (Currently Not Implemented) Analyzes blanks for the run and reports result to the user, then asking whether or not to #' blank correct standard and sample data. The correction is based on empty tins and a simple mixing model. #...
/R/EA.blank.correct.R
permissive
gholtgrieve/HEEL
R
false
false
3,342
r
#' @title Blank corrects EA sample data. (Not Implemented) #' #' @description (Currently Not Implemented) Analyzes blanks for the run and reports result to the user, then asking whether or not to #' blank correct standard and sample data. The correction is based on empty tins and a simple mixing model. #...
# mdl1: Create model in language X, write to disk, and load in language Y # mdl2: Create model in X and access in Y # mdl3: Create model in X with data from Y and then access in Y # mdl4: Transfer model object from X to Y and then create in Y # mdl5: Create X model completely in Y. # Python model serialization # impo...
/tutorials/test_py_model.R
no_license
JonathanChiang/TidyShell
R
false
false
1,325
r
# mdl1: Create model in language X, write to disk, and load in language Y # mdl2: Create model in X and access in Y # mdl3: Create model in X with data from Y and then access in Y # mdl4: Transfer model object from X to Y and then create in Y # mdl5: Create X model completely in Y. # Python model serialization # impo...
#' Brazilian address #' #' Some addresses from Brazil #' #' @format A data frame with 5 rows and 12 variables: #' \describe{ #' \item{uf}{state of Brazil} #' \item{MatchedAddress}{Address returned from GALILEO} #' \item{cep}{Zip code} #' \item{enderecofinal}{Prompted Address} #' \item{Nome_Municipio}{City nam...
/R/data.R
no_license
ipea/utilsIPEA
R
false
false
343
r
#' Brazilian address #' #' Some addresses from Brazil #' #' @format A data frame with 5 rows and 12 variables: #' \describe{ #' \item{uf}{state of Brazil} #' \item{MatchedAddress}{Address returned from GALILEO} #' \item{cep}{Zip code} #' \item{enderecofinal}{Prompted Address} #' \item{Nome_Municipio}{City nam...
## This function creates a special matrix object that can cache its inverse. ## It uses the << operator to assign the matrix to a different environment. ## This function accepts a matrix, x, as its sole arguement. makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function (y){ ...
/cachematrix.R
no_license
Radcliffe101/ProgrammingAssignment2
R
false
false
1,348
r
## This function creates a special matrix object that can cache its inverse. ## It uses the << operator to assign the matrix to a different environment. ## This function accepts a matrix, x, as its sole arguement. makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function (y){ ...
## 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 and cache its inverse. makeCacheMatrix <- function(x = matrix()) { inv <- NULL get <- function() x set <- function(y) { x <<...
/cachematrix.R
no_license
rapha-carvalho/coursera
R
false
false
1,071
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 and cache its inverse. makeCacheMatrix <- function(x = matrix()) { inv <- NULL get <- function() x set <- function(y) { x <<...
ALL_ALGORITHMS = c(21, 23, 26) N_RUNS_DURING_EVOLUTION = 11L N_RUNS_FOR_EVALUATION = 30L # to discuss with MW MAX_TIME_FOR_EACH_SOLVER_RUN = 10 MAX_ITERS_WITHOUT_IMPROVEMENT = 100000L # to discuss with MW INSTANCE_SIZES = c(100) IPN = c(1, 3, 5)#,10) GENERALIZED_FITNESS_TYPES = c("no-order", "explicit-ranking") # "gap...
/r-src/defs.R
no_license
jakobbossek/GECCO2021-ECPERM-ttp-evolving
R
false
false
645
r
ALL_ALGORITHMS = c(21, 23, 26) N_RUNS_DURING_EVOLUTION = 11L N_RUNS_FOR_EVALUATION = 30L # to discuss with MW MAX_TIME_FOR_EACH_SOLVER_RUN = 10 MAX_ITERS_WITHOUT_IMPROVEMENT = 100000L # to discuss with MW INSTANCE_SIZES = c(100) IPN = c(1, 3, 5)#,10) GENERALIZED_FITNESS_TYPES = c("no-order", "explicit-ranking") # "gap...
#' Perform \code{elliptic.test} on simulated data #' #' \code{elliptic.sim} efficiently performs #' \code{\link{elliptic.test}} on a simulated data set. The #' function is meant to be used internally by the #' \code{\link{elliptic.test}} function, but is informative #' for better understanding the implementation...
/R/elliptic.sim.old.R
no_license
cran/smerc
R
false
false
2,728
r
#' Perform \code{elliptic.test} on simulated data #' #' \code{elliptic.sim} efficiently performs #' \code{\link{elliptic.test}} on a simulated data set. The #' function is meant to be used internally by the #' \code{\link{elliptic.test}} function, but is informative #' for better understanding the implementation...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hash_sentiment_senticnet.R \docType{data} \name{hash_sentiment_senticnet} \alias{hash_sentiment_senticnet} \title{Augmented SenticNet Polarity Table} \format{ A data frame with 23,626 rows and 2 variables } \usage{ data(hash_sentiment_senticn...
/man/hash_sentiment_senticnet.Rd
no_license
Mpellet771/lexicon
R
false
true
1,263
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hash_sentiment_senticnet.R \docType{data} \name{hash_sentiment_senticnet} \alias{hash_sentiment_senticnet} \title{Augmented SenticNet Polarity Table} \format{ A data frame with 23,626 rows and 2 variables } \usage{ data(hash_sentiment_senticn...
context("ghcnd") test_that("states metadata", { vcr::use_cassette("ghcnd_states", { states <- ghcnd_states() expect_is(states, "data.frame") expect_is(states$code, "character") expect_is(states$name, "character") expect_equal(NCOL(states), 2) }) }) test_that("countries metadata", { vcr::...
/tests/testthat/test-ghcnd.R
permissive
eliocamp/rnoaa
R
false
false
2,562
r
context("ghcnd") test_that("states metadata", { vcr::use_cassette("ghcnd_states", { states <- ghcnd_states() expect_is(states, "data.frame") expect_is(states$code, "character") expect_is(states$name, "character") expect_equal(NCOL(states), 2) }) }) test_that("countries metadata", { vcr::...
erase kdelibs-devel-2.0.1-4.noarch@system erase kdesupport-2.0.1-5.noarch@system kdelibs3-<NULL>.noarch@test erase kdesupport-devel-2.0.1-5.noarch@system install kdelibs3-<NULL>.noarch@test problem ed9321d3 info nothing provides kdelibs3 = 3.1 needed by kdelibs3-devel-<NULL>.noarch problem ed9321d3 solution 890cef69 de...
/yast-tests/exercise-kdelibsobs-force-test.r
no_license
CyberFlameGO/libsolv-zypptestcases
R
false
false
371
r
erase kdelibs-devel-2.0.1-4.noarch@system erase kdesupport-2.0.1-5.noarch@system kdelibs3-<NULL>.noarch@test erase kdesupport-devel-2.0.1-5.noarch@system install kdelibs3-<NULL>.noarch@test problem ed9321d3 info nothing provides kdelibs3 = 3.1 needed by kdelibs3-devel-<NULL>.noarch problem ed9321d3 solution 890cef69 de...
# # server.R file for DevDataProd assignment, Coursera march 2015 # By Niels Ole Dam # library(shiny) library(mapDK) shinyServer( function(input, output, session) { output$ggObj <- renderPlot({ name <- as.character(input$radio) mapDK(values = "stemmer", id = "id", ...
/server.R
no_license
nielsoledam/devdataprodcoursera
R
false
false
519
r
# # server.R file for DevDataProd assignment, Coursera march 2015 # By Niels Ole Dam # library(shiny) library(mapDK) shinyServer( function(input, output, session) { output$ggObj <- renderPlot({ name <- as.character(input$radio) mapDK(values = "stemmer", id = "id", ...
# ################################################################################# # # REI101M Hópverkefni 1 Háskóli Íslands, okt 2015 # # # # Andrea Björk Björnsdóttir ...
/global.R
no_license
BjornBjarnsteins/Reiknigreind_Hagstofa
R
false
false
2,185
r
# ################################################################################# # # REI101M Hópverkefni 1 Háskóli Íslands, okt 2015 # # # # Andrea Björk Björnsdóttir ...
\docType{methods} \name{queryHotNetAnalysis} \alias{queryHotNetAnalysis} \alias{queryHotNetAnalysis,ReactomeFIService-method} \title{Query HotNet Analysis} \usage{ queryHotNetAnalysis(object, gene.scores, delta, fdr, permutations, auto.delta) \S4method{queryHotNetAnalysis}{ReactomeFIService}(object, gene.scores, delta...
/man/queryHotNetAnalysis-methods.Rd
no_license
funnell/reactomefi
R
false
false
889
rd
\docType{methods} \name{queryHotNetAnalysis} \alias{queryHotNetAnalysis} \alias{queryHotNetAnalysis,ReactomeFIService-method} \title{Query HotNet Analysis} \usage{ queryHotNetAnalysis(object, gene.scores, delta, fdr, permutations, auto.delta) \S4method{queryHotNetAnalysis}{ReactomeFIService}(object, gene.scores, delta...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/graph.R \name{get_names} \alias{get_names} \title{Get node names of memnet objects} \usage{ get_names(dat) } \arguments{ \item{dat}{numeric or character matrix containing an edgelist or adjacency matrix.} } \value{ lists of character vectors....
/man/get_names.Rd
no_license
dwulff/memnet
R
false
true
586
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/graph.R \name{get_names} \alias{get_names} \title{Get node names of memnet objects} \usage{ get_names(dat) } \arguments{ \item{dat}{numeric or character matrix containing an edgelist or adjacency matrix.} } \value{ lists of character vectors....
############## GBM for Regression ############## #Use gbm package in R to fit a gradient boosting model. For more GBM examples, check how to use GBM to analyze the AmesHousing data #http://uc-r.github.io/gbm_regression #Use loss function gaussian (squared error) for regression. #n.trees: number of trees (default 100) ...
/GBM for regression.R
no_license
Liqing-Li/statistical-learning
R
false
false
2,489
r
############## GBM for Regression ############## #Use gbm package in R to fit a gradient boosting model. For more GBM examples, check how to use GBM to analyze the AmesHousing data #http://uc-r.github.io/gbm_regression #Use loss function gaussian (squared error) for regression. #n.trees: number of trees (default 100) ...
#' Filter loci on the basis of minor allele frequency (MAF) in a genlight {adegenet} object #' #' This script calculates the minor allele frequency for each locus and updates the locus #' metadata for FreqHomRef, FreqHomSnp, FreqHets and MAF (if it exists). It then uses #' the updated metadata for MAF to filter loci. ...
/R/gl.filter.maf.r
no_license
davan690/dartR
R
false
false
3,422
r
#' Filter loci on the basis of minor allele frequency (MAF) in a genlight {adegenet} object #' #' This script calculates the minor allele frequency for each locus and updates the locus #' metadata for FreqHomRef, FreqHomSnp, FreqHets and MAF (if it exists). It then uses #' the updated metadata for MAF to filter loci. ...
#' Point size palette (continuous). #' #' @param range Numeric vector of length two, giving range of possible sizes. #' Should be greater than 0. #' @export size_pal <- function(range = c(1, 6)) { function(x) rescale(x, range, c(0, 1)) } #' Point area palette (continuous). #' #' @param range Numeric vector of len...
/R/pal-size.r
no_license
strongh/scales
R
false
false
493
r
#' Point size palette (continuous). #' #' @param range Numeric vector of length two, giving range of possible sizes. #' Should be greater than 0. #' @export size_pal <- function(range = c(1, 6)) { function(x) rescale(x, range, c(0, 1)) } #' Point area palette (continuous). #' #' @param range Numeric vector of len...
testlist <- list(Rs = numeric(0), atmp = numeric(0), relh = c(-1.72131968218895e+83, -7.88781071482504e+93, 1.0823131123826e-105, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
/meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615854594-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
974
r
testlist <- list(Rs = numeric(0), atmp = numeric(0), relh = c(-1.72131968218895e+83, -7.88781071482504e+93, 1.0823131123826e-105, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...