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
# # renderMutation # Generating SVG elements of mutation in # gene and protein # renderMutation <- function(obj, reverse = T) { # merge transcript trans <- as.character(unique(obj$mutation.data$Transcript)) if ( sum(!trans %in% obj$transcript.coding) > 0 ) { message("[WARNING] invalid transcript, use defalut...
/R/renderMutation.R
no_license
wangdi2014/gfplots
R
false
false
1,493
r
# # renderMutation # Generating SVG elements of mutation in # gene and protein # renderMutation <- function(obj, reverse = T) { # merge transcript trans <- as.character(unique(obj$mutation.data$Transcript)) if ( sum(!trans %in% obj$transcript.coding) > 0 ) { message("[WARNING] invalid transcript, use defalut...
#' Create a local lazy tibble #' #' These functions are useful for testing SQL generation without having to #' have an active database connection. See [simulate_dbi()] for a list #' available database simulations. #' #' @keywords internal #' @export #' @examples #' library(dplyr) #' df <- data.frame(x = 1, y = 2) #' #'...
/R/tbl-lazy.R
permissive
edgararuiz/dbplyr
R
false
false
1,889
r
#' Create a local lazy tibble #' #' These functions are useful for testing SQL generation without having to #' have an active database connection. See [simulate_dbi()] for a list #' available database simulations. #' #' @keywords internal #' @export #' @examples #' library(dplyr) #' df <- data.frame(x = 1, y = 2) #' #'...
## code to place a missing extant taxon into a tree using ML or REML on continuous data ## written by Liam J. Revell 2014, 2018 locate.yeti<-function(tree,X,...){ if(!inherits(tree,"phylo")) stop("tree should be object of class \"phylo\".") if(hasArg(method)) method<-list(...)$method else method<-"ML" if(hasArg(se...
/R/locate.yeti.R
no_license
phamasaur/phytools
R
false
false
8,356
r
## code to place a missing extant taxon into a tree using ML or REML on continuous data ## written by Liam J. Revell 2014, 2018 locate.yeti<-function(tree,X,...){ if(!inherits(tree,"phylo")) stop("tree should be object of class \"phylo\".") if(hasArg(method)) method<-list(...)$method else method<-"ML" if(hasArg(se...
############################################################# # Setup working directory in your desktop setwd("/home/alf/Scrivania/lav_primicerio_final") ############################################################# # Load dependencies and functions # Before load library check and install the packages as usual if ne...
/primicerio_work_final.code.r
no_license
alfcrisci/UAVmissingplants
R
false
false
13,933
r
############################################################# # Setup working directory in your desktop setwd("/home/alf/Scrivania/lav_primicerio_final") ############################################################# # Load dependencies and functions # Before load library check and install the packages as usual if ne...
# library(RHRV) # setwd("c:/users/kristan/documents/github/trelliscope/data/mimic2db") # #use string with x and y: # #ex for x: "a40024" # #and y: "a40024/" # hrvextract <- function(x,y){ # hrv.data = CreateHRVData() # hrv.data = LoadBeatWFDB(hrv.data, x, RecordPath = y, annotator = "qrs") # hrv.data = BuildNIHR(...
/Analyze/data/ecg/mimic2db/analysis.R
permissive
alacer/renaissance
R
false
false
3,561
r
# library(RHRV) # setwd("c:/users/kristan/documents/github/trelliscope/data/mimic2db") # #use string with x and y: # #ex for x: "a40024" # #and y: "a40024/" # hrvextract <- function(x,y){ # hrv.data = CreateHRVData() # hrv.data = LoadBeatWFDB(hrv.data, x, RecordPath = y, annotator = "qrs") # hrv.data = BuildNIHR(...
### write_haystack #' Function to write haystack result data to file. #' #' @param res.haystack A 'haystack' result variable #' @param file A file to write to #' #' @export #' #' @examples #' # using the toy example of the singleCellHaystack package #' # define a logical matrix with detection of each gene (rows) in e...
/R/haystack_IO.R
permissive
AmrR101/singleCellHaystack
R
false
false
2,190
r
### write_haystack #' Function to write haystack result data to file. #' #' @param res.haystack A 'haystack' result variable #' @param file A file to write to #' #' @export #' #' @examples #' # using the toy example of the singleCellHaystack package #' # define a logical matrix with detection of each gene (rows) in e...
#' A Cat Function #' #' This function reminds you to feed your cats before going to bed. #' @param feed Have you fed cats? Defaults to TRUE. #' @keywords cats #' @export #' @examples #' cats_function() cats_function <- function(feed=TRUE){ if(feed==TRUE){ print("Great night!") } else {...
/R/cats_function.R
no_license
lweicdsor/A-bare-minimum-R-package-CATS
R
false
false
386
r
#' A Cat Function #' #' This function reminds you to feed your cats before going to bed. #' @param feed Have you fed cats? Defaults to TRUE. #' @keywords cats #' @export #' @examples #' cats_function() cats_function <- function(feed=TRUE){ if(feed==TRUE){ print("Great night!") } else {...
#' 3D surface-based rendering of volume images. #' #' Will use rgl to render a substrate (e.g. anatomical) and overlay image (e.g. #' functional). #' #' @param surfimg Input image to use as rendering substrate. #' @param funcimg Input list of images to use as functional overlays. #' @param surfval intensity level that ...
/R/renderSurfaceFunction.R
permissive
ANTsX/ANTsR
R
false
false
8,438
r
#' 3D surface-based rendering of volume images. #' #' Will use rgl to render a substrate (e.g. anatomical) and overlay image (e.g. #' functional). #' #' @param surfimg Input image to use as rendering substrate. #' @param funcimg Input list of images to use as functional overlays. #' @param surfval intensity level that ...
testlist <- list(nmod = NULL, id = NULL, score = NULL, rsp = NULL, id = NULL, score = NULL, nbr = NULL, id = NULL, bk_nmod = integer(0), booklet_id = integer(0), booklet_score = integer(0), include_rsp = integer(0), item_id = integer(0), item_score = integer(0), module_nbr = integer(0), person_id = ...
/dexterMST/inst/testfiles/make_booklets_unsafe/AFL_make_booklets_unsafe/make_booklets_unsafe_valgrind_files/1615943159-test.R
no_license
akhikolla/updatedatatype-list1
R
false
false
1,455
r
testlist <- list(nmod = NULL, id = NULL, score = NULL, rsp = NULL, id = NULL, score = NULL, nbr = NULL, id = NULL, bk_nmod = integer(0), booklet_id = integer(0), booklet_score = integer(0), include_rsp = integer(0), item_id = integer(0), item_score = integer(0), module_nbr = integer(0), person_id = ...
# install.packages('rvest') # install.packages('tidyverse') # install.packages('tidyquant') # install.packages('ggthemes') library('rvest') library('dplyr') library('ggplot2') library('tidyquant') library('ggthemes') library('reshape2') url <- 'https://en.wikipedia.org/wiki/Opinion_polling_for_the_Italian_general_elec...
/coalitions.R
no_license
basilesimon/italian-election-2018-poll-of-polls
R
false
false
2,818
r
# install.packages('rvest') # install.packages('tidyverse') # install.packages('tidyquant') # install.packages('ggthemes') library('rvest') library('dplyr') library('ggplot2') library('tidyquant') library('ggthemes') library('reshape2') url <- 'https://en.wikipedia.org/wiki/Opinion_polling_for_the_Italian_general_elec...
# Data Sample ------------------------------------------------------------- library(tidyverse) library(rsample) set.seed(36802911) colleges <- read_rds('../data/processed/colleges.rds') colleges <- colleges %>% filter(!is.na(compl_rpy_5yr_rt)) # create a function that take a data column with NAs # and spits out a col...
/documents/sample_md.R
no_license
dxre-v3/college-scorecard
R
false
false
1,508
r
# Data Sample ------------------------------------------------------------- library(tidyverse) library(rsample) set.seed(36802911) colleges <- read_rds('../data/processed/colleges.rds') colleges <- colleges %>% filter(!is.na(compl_rpy_5yr_rt)) # create a function that take a data column with NAs # and spits out a col...
#mRNA-protein dataset merging # This script will # 1. map Protein groups to ENSG identifiers # 2. merge genentech, ccle and anger ExpressionAtlas datasets with proteomics matrix # 3. create a separate df for each cell line to perform mRNA-protein correlations # 4. final plots require(reshape) require(data.table) ###...
/main-analysis-scripts/Fig4-Fig5-get-mRNAA-protein-correlations.R
no_license
J-Andy/Protein-expression-in-human-cancer
R
false
false
9,604
r
#mRNA-protein dataset merging # This script will # 1. map Protein groups to ENSG identifiers # 2. merge genentech, ccle and anger ExpressionAtlas datasets with proteomics matrix # 3. create a separate df for each cell line to perform mRNA-protein correlations # 4. final plots require(reshape) require(data.table) ###...
#' @title Plot \code{did} objects using \code{ggplot2} #' #' @description Function to plot objects from the \code{did} package #' #' @param object either a \code{MP} object or \code{AGGTEobj} object #' @param ... other arguments #' #' @export ggdid <- function(object, ...) { UseMethod("ggdid", object) } ...
/R/ggdid.R
no_license
dunhe001/did
R
false
false
4,794
r
#' @title Plot \code{did} objects using \code{ggplot2} #' #' @description Function to plot objects from the \code{did} package #' #' @param object either a \code{MP} object or \code{AGGTEobj} object #' @param ... other arguments #' #' @export ggdid <- function(object, ...) { UseMethod("ggdid", object) } ...
context("test do_svd") test_that("test do_svd skv with NA", { test_df <- data.frame( row = rep(paste("row", 1:4), 3), col = rep(paste("col", 1:3), each = 4), value = seq(12) ) test_df <- test_df %>% rename(`ro w`=row, `co l`=col, `val ue`=value) test_df$value[[3]] <- NA_real_ ret <- do_svd(test...
/tests/testthat/test_do_svd.R
permissive
yuhonghong7035/exploratory_func
R
false
false
3,103
r
context("test do_svd") test_that("test do_svd skv with NA", { test_df <- data.frame( row = rep(paste("row", 1:4), 3), col = rep(paste("col", 1:3), each = 4), value = seq(12) ) test_df <- test_df %>% rename(`ro w`=row, `co l`=col, `val ue`=value) test_df$value[[3]] <- NA_real_ ret <- do_svd(test...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/KnitRev.R \name{KnitRev} \alias{KnitRev} \title{Knitr engine for RevBayes} \usage{ KnitRev() } \description{ Rev code is ran directly in knitr chunks, and using the wrapper functions isn't necessary. Any created variables will be put in RevEn...
/man/KnitRev.Rd
no_license
tpellard/Revticulate
R
false
true
383
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/KnitRev.R \name{KnitRev} \alias{KnitRev} \title{Knitr engine for RevBayes} \usage{ KnitRev() } \description{ Rev code is ran directly in knitr chunks, and using the wrapper functions isn't necessary. Any created variables will be put in RevEn...
if (!require(ggplot2)) install.packages('ggplot2') library(ggplot2) if (!require(data.table)) install.packages('data.table') library(data.table) if (!require(RColorBrewer)) install.packages('RColorBrewer') library(RColorBrewer) if (!require(dplyr)) install.packages('dplyr') library(dplyr) if (!require(ggrepel)) install...
/Figure_3/Figure3_fertility2.R
no_license
genome-traffic/medflyXpaper
R
false
false
1,783
r
if (!require(ggplot2)) install.packages('ggplot2') library(ggplot2) if (!require(data.table)) install.packages('data.table') library(data.table) if (!require(RColorBrewer)) install.packages('RColorBrewer') library(RColorBrewer) if (!require(dplyr)) install.packages('dplyr') library(dplyr) if (!require(ggrepel)) install...
# Set Up rm(list=ls()) cur_dir = getwd() setwd(cur_dir) library(boot) library(ROCR) library(caret) # 1. Nodal : Nodal Involvement in Prostate Cancer ## Data Load data(nodal) ## EDA str(nodal) # 53 obs. of 7 variables summary(nodal) # Min, 1st Qu, Median, Mean, 3rd Qu, Max ?nodal table(nodal$m) # Needed to drop co...
/week1/LogisticRegression/logistic_regression.R
no_license
YunhoJung/tobigs-2018
R
false
false
3,281
r
# Set Up rm(list=ls()) cur_dir = getwd() setwd(cur_dir) library(boot) library(ROCR) library(caret) # 1. Nodal : Nodal Involvement in Prostate Cancer ## Data Load data(nodal) ## EDA str(nodal) # 53 obs. of 7 variables summary(nodal) # Min, 1st Qu, Median, Mean, 3rd Qu, Max ?nodal table(nodal$m) # Needed to drop co...
# setup params to sim from n.seq = c(200) tht.seq = c(-.75, .75) p.seq = c(.2) r.seq = 3 Nsim = 200 # total iterations per param configuration total.iter = Nsim * length(n.seq) * length(tht.seq) * length(p.seq) * length(r.seq) save.cols = c("estim.method", "n", "tht.true", "tht.e...
/tests/simulations/negbin-ma1/sim_negbinom_ma1.R
no_license
jlivsey/LatentGaussCounts
R
false
false
1,683
r
# setup params to sim from n.seq = c(200) tht.seq = c(-.75, .75) p.seq = c(.2) r.seq = 3 Nsim = 200 # total iterations per param configuration total.iter = Nsim * length(n.seq) * length(tht.seq) * length(p.seq) * length(r.seq) save.cols = c("estim.method", "n", "tht.true", "tht.e...
#' @title Construct and evaluate a ligand-target model given input parameters with the purpose of parameter optimization. #' #' @description \code{model_evaluation_optimization} will take as input a setting of parameters (data source weights and hyperparameters) and layer-specific networks to construct a ligand-target ...
/R/parameter_optimization.R
no_license
rsggsr/nichenetr
R
false
false
47,775
r
#' @title Construct and evaluate a ligand-target model given input parameters with the purpose of parameter optimization. #' #' @description \code{model_evaluation_optimization} will take as input a setting of parameters (data source weights and hyperparameters) and layer-specific networks to construct a ligand-target ...
/P5/P_5.R
no_license
JoseAngelGarcia/SimulacionNano
R
false
false
1,691
r
library(data.table) library(dplyr) library(Matrix) library(BuenColors) library(stringr) library(cowplot) library(irlba) #----------- # Parameters #----------- # n_cells Number of cells from each group to be simulated; either a number (all the same) or a vector # of length(which_celltypes) # which_celltypes Number of ...
/bonemarrow/code/00_simulate_functions.R
no_license
caleblareau/simulate_singlecell_frombulk
R
false
false
4,928
r
library(data.table) library(dplyr) library(Matrix) library(BuenColors) library(stringr) library(cowplot) library(irlba) #----------- # Parameters #----------- # n_cells Number of cells from each group to be simulated; either a number (all the same) or a vector # of length(which_celltypes) # which_celltypes Number of ...
#import des données de log_data setwd("/Users/epellegrin/Desktop/data-science/MIASHS/Analyse des données de Panels/TP") long.data = read.csv2("long_data.csv",sep = ";") # dim(long.data) head(long.data) library(ggplot2) ggplot(long.data, aes(time,bn))+geom_point() ggplot(long.data, aes(time,bn, group=palmId))+geom_point...
/TP/Long_data.R
no_license
mordor-ai/M1-Analyse-des-donnees-de-Panels
R
false
false
4,807
r
#import des données de log_data setwd("/Users/epellegrin/Desktop/data-science/MIASHS/Analyse des données de Panels/TP") long.data = read.csv2("long_data.csv",sep = ";") # dim(long.data) head(long.data) library(ggplot2) ggplot(long.data, aes(time,bn))+geom_point() ggplot(long.data, aes(time,bn, group=palmId))+geom_point...
# Function to extract relevant data from output files extract <- function(segment) { df <- data.frame() # loop through each core for (core in 1:numCore) { if (length(segment[[core]]) == 0) { print(paste("Error in Condition ", condition, ", Core ", ...
/Extract_WLSMV.R
no_license
Aaron0696/FIML_MI_JOC_MISSINGDATA
R
false
false
6,913
r
# Function to extract relevant data from output files extract <- function(segment) { df <- data.frame() # loop through each core for (core in 1:numCore) { if (length(segment[[core]]) == 0) { print(paste("Error in Condition ", condition, ", Core ", ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/popular.R \name{popular} \alias{popular} \alias{ny_popular_emailed} \alias{ny_popular_shared} \alias{ny_popular_shared_type} \alias{ny_popular_viewed} \title{Popular} \usage{ ny_popular_emailed(period = 30) ny_popular_shared(period = 30) ny...
/man/popular.Rd
permissive
news-r/nytimes
R
false
true
1,329
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/popular.R \name{popular} \alias{popular} \alias{ny_popular_emailed} \alias{ny_popular_shared} \alias{ny_popular_shared_type} \alias{ny_popular_viewed} \title{Popular} \usage{ ny_popular_emailed(period = 30) ny_popular_shared(period = 30) ny...
require("lda") saveRDS(topics,topics_filename) saveRDS(vocab,vocabulary_filename)
/pyslda/saveModel.R
permissive
LeJit/PythonSLDA
R
false
false
82
r
require("lda") saveRDS(topics,topics_filename) saveRDS(vocab,vocabulary_filename)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ks_test.R \name{ks_test} \alias{ks_test} \title{Weighted KS Test} \usage{ ks_test(x, y, thresh = 0.05, w_x = rep(1, length(x)), w_y = rep(1, length(y))) } \arguments{ \item{x}{Vector of values sampled from the first distribution} \item{y}{Ve...
/man/ks_test.Rd
permissive
rubak/Ecume
R
false
true
2,279
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ks_test.R \name{ks_test} \alias{ks_test} \title{Weighted KS Test} \usage{ ks_test(x, y, thresh = 0.05, w_x = rep(1, length(x)), w_y = rep(1, length(y))) } \arguments{ \item{x}{Vector of values sampled from the first distribution} \item{y}{Ve...
list( index = list( sd_section("Settings functions", "These functions are used in `staticdocs.r` to configure various settings that staticdocs uses when rendering a package. This is particularly useful for generating an index page that groups functions into useful categories", c(...
/staticdocs/index.r
no_license
jcheng5/staticdocs
R
false
false
402
r
list( index = list( sd_section("Settings functions", "These functions are used in `staticdocs.r` to configure various settings that staticdocs uses when rendering a package. This is particularly useful for generating an index page that groups functions into useful categories", c(...
fitYP41 <- function(Y, d, Z, beta1=1, beta2= -1, maxiter=60){ #### Do two things: (1) for the data, and given beta1, beta2; #### compute the baseline that max the EL. i.e. NPMLE. #### (2) Given the baseline and the 2 betas, compute the (log) EL value. #### there is no alpha, So Z is a vector or nx1 matrix. temp...
/R/fitYP41.R
no_license
cran/ELYP
R
false
false
496
r
fitYP41 <- function(Y, d, Z, beta1=1, beta2= -1, maxiter=60){ #### Do two things: (1) for the data, and given beta1, beta2; #### compute the baseline that max the EL. i.e. NPMLE. #### (2) Given the baseline and the 2 betas, compute the (log) EL value. #### there is no alpha, So Z is a vector or nx1 matrix. temp...
#' Makes a Growth Concentration Curve Function out of two income vectors #' #' @param x0 A vector of incomes for group/time 0 #' @param x1 A vector of incomes for group/time 1 #' @param w0 (optional) A vector of sample weights for group/time 0 #' @param w1 (optional) A vector of sample weights for group/time 1 #' @par...
/R/growthConcCurve.R
no_license
antrologos/inequalityTools
R
false
false
2,401
r
#' Makes a Growth Concentration Curve Function out of two income vectors #' #' @param x0 A vector of incomes for group/time 0 #' @param x1 A vector of incomes for group/time 1 #' @param w0 (optional) A vector of sample weights for group/time 0 #' @param w1 (optional) A vector of sample weights for group/time 1 #' @par...
#' Construct full paths to a group of raw input files #' #' For a group of samples this function creates the list of paths to the raw #' input files which can then be used in [loadCoverage]. The raw input #' files are either BAM files or BigWig files. #' #' @param datadir The main directory where each of the `sampledir...
/R/rawFiles.R
no_license
fallinwind/derfinder
R
false
false
2,917
r
#' Construct full paths to a group of raw input files #' #' For a group of samples this function creates the list of paths to the raw #' input files which can then be used in [loadCoverage]. The raw input #' files are either BAM files or BigWig files. #' #' @param datadir The main directory where each of the `sampledir...
# Set paths path = paste(gdrivepath,'research/proj_010_trump/',sep='') datpath = paste(path,'data/',sep='') rawpath = paste(path,'data/raw/',sep='') respath = paste(path,'results/',sep='') setwd(path) # Load libraries pkgs = c('choroplethr','stringr','choroplethrMaps','lubridate','stargazer','ggplot2','googlesheets' ...
/backup/10_16_2018/proj.R
no_license
eastnile/proj_010_trump
R
false
false
2,480
r
# Set paths path = paste(gdrivepath,'research/proj_010_trump/',sep='') datpath = paste(path,'data/',sep='') rawpath = paste(path,'data/raw/',sep='') respath = paste(path,'results/',sep='') setwd(path) # Load libraries pkgs = c('choroplethr','stringr','choroplethrMaps','lubridate','stargazer','ggplot2','googlesheets' ...
testlist <- list(a = 0L, b = 0L, x = c(175570943L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 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/1610055759-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
315
r
testlist <- list(a = 0L, b = 0L, x = c(175570943L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 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)
# simulated Dail Madsen count data # assume Gains are result of local population size, apparent survival function of habitat # assume single stream segment, no confluences data.fn <- function(nsites, surveys, alpha0, alpha1, cmin, cmax){ y <- array(dim=c(nsites,surveys)) X <- sort(runif(n=nsites,min=cmin,max=cmax)...
/simdata1.r
no_license
openfields/Occupancy
R
false
false
8,146
r
# simulated Dail Madsen count data # assume Gains are result of local population size, apparent survival function of habitat # assume single stream segment, no confluences data.fn <- function(nsites, surveys, alpha0, alpha1, cmin, cmax){ y <- array(dim=c(nsites,surveys)) X <- sort(runif(n=nsites,min=cmin,max=cmax)...
devtools::install_github("rensa/ggflags") library(tidyverse) library(ggflags) #library(ggrepel) tuesdata <- tidytuesdayR::tt_load(2020, week = 36) #Fertilizer fertilizer <- tuesdata$cereal_crop_yield_vs_fertilizer_application %>% filter(!is.na(Code)) %>% select(Entity,Code,Year,fertilizer=`Nitrogen fertilize...
/2020/Week 36 - Global Crop Yields/Crops.R
no_license
Rohan4201/tidy-tuesdays
R
false
false
5,897
r
devtools::install_github("rensa/ggflags") library(tidyverse) library(ggflags) #library(ggrepel) tuesdata <- tidytuesdayR::tt_load(2020, week = 36) #Fertilizer fertilizer <- tuesdata$cereal_crop_yield_vs_fertilizer_application %>% filter(!is.na(Code)) %>% select(Entity,Code,Year,fertilizer=`Nitrogen fertilize...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/GRAFitSBprofile.R \name{GRAFitSBprofile} \alias{GRAFitSBprofile} \title{GRAFit: Pixel-by-pixel Surface Brightness Profile Plot.} \usage{ GRAFitSBprofile( image = image, main_source = main_src, model = NULL, segim = segim, comp = c("...
/man/GRAFitSBprofile.Rd
no_license
HoseinHashemi/GRAFit
R
false
true
2,196
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/GRAFitSBprofile.R \name{GRAFitSBprofile} \alias{GRAFitSBprofile} \title{GRAFit: Pixel-by-pixel Surface Brightness Profile Plot.} \usage{ GRAFitSBprofile( image = image, main_source = main_src, model = NULL, segim = segim, comp = c("...
## Utility methods for adding components to plot #' Adding plot components to iheatmapr #' #' These are generic methods for adding new plot components to an #' \code{link{Iheatmap-class}} object. Not intended for end users; exported for #' developers seeking to create new Iheatmap subplots. #' @name add_component #...
/R/AllGenerics.R
permissive
ropensci/iheatmapr
R
false
false
10,619
r
## Utility methods for adding components to plot #' Adding plot components to iheatmapr #' #' These are generic methods for adding new plot components to an #' \code{link{Iheatmap-class}} object. Not intended for end users; exported for #' developers seeking to create new Iheatmap subplots. #' @name add_component #...
library(shiny) library(DT) library(ggplot2) library(ggdendro) library(datasets) library(rhandsontable) library(caret) library(psych) library(rpart) library(randomForest) library(logging) basicConfig() ui <- fluidPage(titlePanel("Projectissimo"), tabsetPanel( tabPanel(...
/ui.R
no_license
olegshlykov/projectissimo
R
false
false
8,425
r
library(shiny) library(DT) library(ggplot2) library(ggdendro) library(datasets) library(rhandsontable) library(caret) library(psych) library(rpart) library(randomForest) library(logging) basicConfig() ui <- fluidPage(titlePanel("Projectissimo"), tabsetPanel( tabPanel(...
utils::globalVariables("ssenv") #' @title Substitute new values into the input object #' #' @description #' Replaces existing values found in one object with new values #' #' @param x A character vector of the form "name=value" #' @param ssparams A character vector with arbitrary lines, #' currently imagined...
/rsatscan/R/params.R
no_license
ingted/R-Examples
R
false
false
7,468
r
utils::globalVariables("ssenv") #' @title Substitute new values into the input object #' #' @description #' Replaces existing values found in one object with new values #' #' @param x A character vector of the form "name=value" #' @param ssparams A character vector with arbitrary lines, #' currently imagined...
options <- commandArgs(trailingOnly = T) check_for_default <- integer(0) directory_name <- which(grepl("-dir", options)) quitNow <- 0 if(length(directory_name) > 1 | identical(check_for_default, directory_name)){ print("Metapop requires the name of the directory where the assembly and aligned files exist...
/MetaPop_Codon_Bias_Viz.R
no_license
Thexiyang/metapop
R
false
false
8,649
r
options <- commandArgs(trailingOnly = T) check_for_default <- integer(0) directory_name <- which(grepl("-dir", options)) quitNow <- 0 if(length(directory_name) > 1 | identical(check_for_default, directory_name)){ print("Metapop requires the name of the directory where the assembly and aligned files exist...
library(nat) ### Name: im3d-coords ### Title: Interconvert pixel and physical coordinates ### Aliases: im3d-coords xyzpos ijkpos ### ** Examples # make an emty im3d d=im3d(,dim=c(20,30,40),origin=c(10,20,30),voxdims=c(1,2,3)) # check round trip for origin stopifnot(all.equal(ijkpos(d,xyzpos(d,c(1,1,1))), c(1,1,1)))...
/data/genthat_extracted_code/nat/examples/im3d-coords.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
324
r
library(nat) ### Name: im3d-coords ### Title: Interconvert pixel and physical coordinates ### Aliases: im3d-coords xyzpos ijkpos ### ** Examples # make an emty im3d d=im3d(,dim=c(20,30,40),origin=c(10,20,30),voxdims=c(1,2,3)) # check round trip for origin stopifnot(all.equal(ijkpos(d,xyzpos(d,c(1,1,1))), c(1,1,1)))...
summary.scSpectra <- function(object,ncases=10, ...){ if (inherits(object,"scSpectra")==FALSE) { stop("object must be a scSpectra class object") } if (inherits(ncases,"numeric")==FALSE) { stop("ncases must be a valid number") } cat(paste("(",ncases," first mass spectra) \n",sep="")) print(h...
/R/summary.scSpectra.R
no_license
sgibb/MALDIrppa
R
false
false
833
r
summary.scSpectra <- function(object,ncases=10, ...){ if (inherits(object,"scSpectra")==FALSE) { stop("object must be a scSpectra class object") } if (inherits(ncases,"numeric")==FALSE) { stop("ncases must be a valid number") } cat(paste("(",ncases," first mass spectra) \n",sep="")) print(h...
with(a91d0cfc218694ba49ae274bb5810d7bc, {ROOT <- 'D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/db/Atadata2__3b3e4a3b-d382-4e98-9950-9b4e8b308c1c/version/1c4fa71c-191c-4da9-8102-b247ffddc5d3';FRAME909970$DATA_COLLECTION_TIME[FRAME909970$DATA_COLLECTION_TIME == ""] <- 0;});
/1c4fa71c-191c-4da9-8102-b247ffddc5d3/R/Temp/aY5QjNeONCzH2.R
no_license
ayanmanna8/test
R
false
false
277
r
with(a91d0cfc218694ba49ae274bb5810d7bc, {ROOT <- 'D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/db/Atadata2__3b3e4a3b-d382-4e98-9950-9b4e8b308c1c/version/1c4fa71c-191c-4da9-8102-b247ffddc5d3';FRAME909970$DATA_COLLECTION_TIME[FRAME909970$DATA_COLLECTION_TIME == ""] <- 0;});
getwd() ls() rm(list=ls()) setwd("F:/Rujuta/DataExploration") # Data Download, unzip file fileurl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" download.file(fileurl, destfile="./Assignment1/Data.zip") unzip("./Assignment1/Data.zip") # for doing the assignment in the most ef...
/plot1.R
no_license
RujutaJ1/ExData_Plotting1
R
false
false
1,125
r
getwd() ls() rm(list=ls()) setwd("F:/Rujuta/DataExploration") # Data Download, unzip file fileurl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" download.file(fileurl, destfile="./Assignment1/Data.zip") unzip("./Assignment1/Data.zip") # for doing the assignment in the most ef...
library(miceadds) ### Name: NMIwaldtest ### Title: Wald Test for Nested Multiply Imputed Datasets ### Aliases: NMIwaldtest create.designMatrices.waldtest summary.NMIwaldtest ### MIwaldtest summary.MIwaldtest ### Keywords: Nested multiple imputation summary ### ** Examples ## Not run: ##D ########################...
/data/genthat_extracted_code/miceadds/examples/NMIwaldtest.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
4,823
r
library(miceadds) ### Name: NMIwaldtest ### Title: Wald Test for Nested Multiply Imputed Datasets ### Aliases: NMIwaldtest create.designMatrices.waldtest summary.NMIwaldtest ### MIwaldtest summary.MIwaldtest ### Keywords: Nested multiple imputation summary ### ** Examples ## Not run: ##D ########################...
#' Class GMQLDataset #' #' Abstract class representing GMQL dataset #' #' @slot value value associated to GMQL dataset #' @name GMQLDataset-class #' @rdname GMQLDataset-class #' @noRd #' @return instance of GMQL dataset #' setClass("GMQLDataset", representation(value = "character")) #' GMQLDataset alloc Function #' ...
/R/AllClasses.R
no_license
DEIB-GECO/RGMQL
R
false
false
870
r
#' Class GMQLDataset #' #' Abstract class representing GMQL dataset #' #' @slot value value associated to GMQL dataset #' @name GMQLDataset-class #' @rdname GMQLDataset-class #' @noRd #' @return instance of GMQL dataset #' setClass("GMQLDataset", representation(value = "character")) #' GMQLDataset alloc Function #' ...
data <- read.table("household_power_consumption.txt", header=TRUE, sep=";", colClasses=c("character", "character", rep("numeric",7)), na="?") data$Time <- strptime(paste(data$Date, data$Time), "%d/%m/%Y %H:%M:%S") data$Date <-...
/plot2.R
no_license
balima78/ExData_Plotting1
R
false
false
642
r
data <- read.table("household_power_consumption.txt", header=TRUE, sep=";", colClasses=c("character", "character", rep("numeric",7)), na="?") data$Time <- strptime(paste(data$Date, data$Time), "%d/%m/%Y %H:%M:%S") data$Date <-...
\name{yq_breaks} \alias{yq_breaks} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Function to generate a sequence of breaks for scale_x_yearqtr, displaying all quarters in the series } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ yq_breaks(data, ...
/twViz/man/yq_breaks.Rd
no_license
dchiuten/twtr
R
false
false
1,614
rd
\name{yq_breaks} \alias{yq_breaks} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Function to generate a sequence of breaks for scale_x_yearqtr, displaying all quarters in the series } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ yq_breaks(data, ...
library("knitr") knit("submission.Rmd") test_that("positive integers can be added", { expect_equal(sum(5, 5), 10) expect_equal(sum(8, 2), 10) expect_equal(sum(1, 1), 2) }) test_that("negative integers can be added", { expect_equal(sum(15, -5), 10) expect_equal(sum(-8, -6), -14) expect_equal(sum(-10, 20), ...
/db/data/autotest_files/r/script_files/test_rmd.R
permissive
MarkUsProject/Markus
R
false
false
327
r
library("knitr") knit("submission.Rmd") test_that("positive integers can be added", { expect_equal(sum(5, 5), 10) expect_equal(sum(8, 2), 10) expect_equal(sum(1, 1), 2) }) test_that("negative integers can be added", { expect_equal(sum(15, -5), 10) expect_equal(sum(-8, -6), -14) expect_equal(sum(-10, 20), ...
library(tidyverse) polldata <- read_csv("data/ElectionPolling2020_Mod.csv") polldata <- polldata %>% mutate(spread = green - blue, startdate = as.Date(startdate, "%d/%m/%Y"), enddate = as.Date(enddate, "%d/%m/%Y")) save(polldata, file = "rda/polldata.rda")
/wrangle-data.R
no_license
abentsui/twelection2020
R
false
false
276
r
library(tidyverse) polldata <- read_csv("data/ElectionPolling2020_Mod.csv") polldata <- polldata %>% mutate(spread = green - blue, startdate = as.Date(startdate, "%d/%m/%Y"), enddate = as.Date(enddate, "%d/%m/%Y")) save(polldata, file = "rda/polldata.rda")
seed <- 903 log.wt <- 0.0 penalty <- 2.8115950178536287e-8 intervals.send <- c() intervals.recv <- c(56, 112, 225, 450, 900, 1800, 3600, 7200, 14400, 28800, 57600, 115200, 230400, 460800, 921600, 1843200, 3686400, 7372800, 14745600, 29491200, 58982400) dev.null <- 358759.0022669336 df.null <- 35567 dev.resid <- 225399....
/analysis/boot/boot903.R
no_license
patperry/interaction-proc
R
false
false
3,744
r
seed <- 903 log.wt <- 0.0 penalty <- 2.8115950178536287e-8 intervals.send <- c() intervals.recv <- c(56, 112, 225, 450, 900, 1800, 3600, 7200, 14400, 28800, 57600, 115200, 230400, 460800, 921600, 1843200, 3686400, 7372800, 14745600, 29491200, 58982400) dev.null <- 358759.0022669336 df.null <- 35567 dev.resid <- 225399....
library(comato) ### Name: analyze.similarity ### Title: Analyzing graph similarity. ### Aliases: analyze.similarity ### ** Examples require("igraph") g1 = set.vertex.attribute(erdos.renyi.game(15, 0.7, type="gnp"), "name", value=1:15) g2 = set.vertex.attribute(erdos.renyi.game(15, 0.7, type="gnp"), "name", value=1:...
/data/genthat_extracted_code/comato/examples/analyze.similarity.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
378
r
library(comato) ### Name: analyze.similarity ### Title: Analyzing graph similarity. ### Aliases: analyze.similarity ### ** Examples require("igraph") g1 = set.vertex.attribute(erdos.renyi.game(15, 0.7, type="gnp"), "name", value=1:15) g2 = set.vertex.attribute(erdos.renyi.game(15, 0.7, type="gnp"), "name", value=1:...
## Put comments here that give an overall description of what your ## functions do ## These two functions are inverting a matrix. #If the matrix has been already inverted, so the answer is taken from cashe ## Write a short comment describing this function ## This function is making an access to inverted matrix from ...
/cachematrix.R
no_license
Rus1886/1
R
false
false
991
r
## Put comments here that give an overall description of what your ## functions do ## These two functions are inverting a matrix. #If the matrix has been already inverted, so the answer is taken from cashe ## Write a short comment describing this function ## This function is making an access to inverted matrix from ...
#' @title Simulate the Confidence Interval for a the ratio of Variances #' @description Simulate the Confidence Interval for a the ratio of Variances #' @usage civar2.sim(n1, n2, sig1, sig2, alp = 0.05, N = 100, seed = 9857, dig = 4, plot = TRUE) #' #' @param n1 Sample size of population1 #' @param n2 Sample size of po...
/R/civar2.sim.R
permissive
jhk0530/Rstat
R
false
false
2,061
r
#' @title Simulate the Confidence Interval for a the ratio of Variances #' @description Simulate the Confidence Interval for a the ratio of Variances #' @usage civar2.sim(n1, n2, sig1, sig2, alp = 0.05, N = 100, seed = 9857, dig = 4, plot = TRUE) #' #' @param n1 Sample size of population1 #' @param n2 Sample size of po...
#' plotPacific #' A ggplot basemap that is Pacific-centered. Defaults to full North Pacific #' @param ew.breaks in 180-degree centered coordinates, provide your E/W limits and breaks #' @param ns.breaks in 0-degree centered coordinates, provide your E/W limits and breaks; 0 is minimum #' @param fillcol color to fil...
/R/plotPacific.R
no_license
mkapur/kaputils
R
false
false
2,104
r
#' plotPacific #' A ggplot basemap that is Pacific-centered. Defaults to full North Pacific #' @param ew.breaks in 180-degree centered coordinates, provide your E/W limits and breaks #' @param ns.breaks in 0-degree centered coordinates, provide your E/W limits and breaks; 0 is minimum #' @param fillcol color to fil...
source("getPowerConsumptionData.R") getPowerConsumptionData() png("plot2.png") plot(as.POSIXlt(power_consumption$Date), power_consumption$Global_active_power, type="l", xlab="", ylab="Global Active Power (kilowatts)") dev.off()
/plot2.R
no_license
billwebb/ExData_Plotting1
R
false
false
228
r
source("getPowerConsumptionData.R") getPowerConsumptionData() png("plot2.png") plot(as.POSIXlt(power_consumption$Date), power_consumption$Global_active_power, type="l", xlab="", ylab="Global Active Power (kilowatts)") dev.off()
# create a time series data #first create a vector of numerical values # 36 observations set.seed(1234) (sales = round(runif(36, 0,100))) length(sales) #This data can be daily, weekly, monthly, quarter, yearly data #create yearly time series : start year 1980 #Yearly---- (ysales = ts(sales, frequency = 1)) (yearly...
/92-wksp2/6b1-ts-data.R
no_license
DUanalytics/rAnalytics
R
false
false
1,745
r
# create a time series data #first create a vector of numerical values # 36 observations set.seed(1234) (sales = round(runif(36, 0,100))) length(sales) #This data can be daily, weekly, monthly, quarter, yearly data #create yearly time series : start year 1980 #Yearly---- (ysales = ts(sales, frequency = 1)) (yearly...
/3. Модуль 3/3.6. Разработка telegram ботов на языке R/tg_inline_keyboard_urls.R
no_license
selesnow/r_for_marketing
R
false
false
928
r
#' Define a new pipe #' #' All pipes of the package, including `%>%` and `%<>%`, are defined using this #' general approach. #' #' @param format_fun a function taking an argument `call`, which will be fed the quoted #' rhs, and should return the quoted expression of what the pipe should do. #' @param compound_fun eit...
/R/pipe.R
no_license
trinker/pipe
R
false
false
2,062
r
#' Define a new pipe #' #' All pipes of the package, including `%>%` and `%<>%`, are defined using this #' general approach. #' #' @param format_fun a function taking an argument `call`, which will be fed the quoted #' rhs, and should return the quoted expression of what the pipe should do. #' @param compound_fun eit...
# # This test file has been generated by kwb.test::create_test_files() # test_that("trees_to_script_info() works", { expect_error( kwb.code:::trees_to_script_info() # argument "x" is missing, with no default ) })
/tests/testthat/test-function-trees_to_script_info.R
permissive
KWB-R/kwb.code
R
false
false
229
r
# # This test file has been generated by kwb.test::create_test_files() # test_that("trees_to_script_info() works", { expect_error( kwb.code:::trees_to_script_info() # argument "x" is missing, with no default ) })
## logistic plot for individual in delta value choice.beta = data.frame(ID=double(), beta=double(), p=double(), stringsAsFactors=FALSE)[1:length(id.filtered),] for (i in 1:length(id.filtered)) { d = choice %>% filter(ID == id.filtered[i], is...
/logistic_update_2_24.R
no_license
christineli0330/Choice_task_analysis
R
false
false
2,909
r
## logistic plot for individual in delta value choice.beta = data.frame(ID=double(), beta=double(), p=double(), stringsAsFactors=FALSE)[1:length(id.filtered),] for (i in 1:length(id.filtered)) { d = choice %>% filter(ID == id.filtered[i], is...
library(AnnuityRIR) ### Name: PV_post_mood_pm ### Title: Compute the present expected value of an n-payment annuity, with ### payments of 1 unit each made at the end of every year ### (annuity-immediate), valued at the rate X, with the method of Mood ### _et al._ using some positive moments of the distribution....
/data/genthat_extracted_code/AnnuityRIR/examples/PV_post_mood_pm.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
740
r
library(AnnuityRIR) ### Name: PV_post_mood_pm ### Title: Compute the present expected value of an n-payment annuity, with ### payments of 1 unit each made at the end of every year ### (annuity-immediate), valued at the rate X, with the method of Mood ### _et al._ using some positive moments of the distribution....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/types.R \name{type-predicates} \alias{type-predicates} \alias{is_list} \alias{is_atomic} \alias{is_vector} \alias{is_integer} \alias{is_double} \alias{is_character} \alias{is_logical} \alias{is_raw} \alias{is_bytes} \alias{is_null} \title{Typ...
/man/type-predicates.Rd
no_license
EdwinTh/rlang
R
false
true
1,492
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/types.R \name{type-predicates} \alias{type-predicates} \alias{is_list} \alias{is_atomic} \alias{is_vector} \alias{is_integer} \alias{is_double} \alias{is_character} \alias{is_logical} \alias{is_raw} \alias{is_bytes} \alias{is_null} \title{Typ...
#' Title #' #' @param id #' @param label #' @param markers #' @param sortConditions #' @param colorConditions #' @param annotation #' #' @return #' @export #' #' @examples flagModuleUI <- function(id, label = "qcViolin", markers, sortConditions, colorConditions, annotation) { # Create a namespa...
/R/flagSamples.R
permissive
laderast/flowDashboard
R
false
false
1,122
r
#' Title #' #' @param id #' @param label #' @param markers #' @param sortConditions #' @param colorConditions #' @param annotation #' #' @return #' @export #' #' @examples flagModuleUI <- function(id, label = "qcViolin", markers, sortConditions, colorConditions, annotation) { # Create a namespa...
\name{get.raxml.treeLikelihoods} \alias{get.raxml.treeLikelihoods} \title{Extract likelihoods from a RAxML info file} \description{Reads the info file from a RAxML site-likelihood analysis with multiple input trees. Probably not often needed on its own, but used in \code{match.lnL.to.trees}.} \usage{ get.raxml.tree...
/man/get.raxml.treeLikelihoods.Rd
no_license
andrew-hipp/RADami
R
false
false
877
rd
\name{get.raxml.treeLikelihoods} \alias{get.raxml.treeLikelihoods} \title{Extract likelihoods from a RAxML info file} \description{Reads the info file from a RAxML site-likelihood analysis with multiple input trees. Probably not often needed on its own, but used in \code{match.lnL.to.trees}.} \usage{ get.raxml.tree...
library(ExonModelStrainXmap) mapConnect(dbPackage="xmapcore") trs <- getAllTranscripts() res <- RunExonModelWorkflow(eset2, idlist=trs[1643:1650], analysisUnit="probeset") res <- RunExonModelWorkflow(eset2, idlist=trs[500:510], analysisUnit="probeset") resmulti <- NULL ressingles <- NULL i <- 1 while(i < ...
/tests/tests2.R
no_license
laderast/ExonModelStrain
R
false
false
922
r
library(ExonModelStrainXmap) mapConnect(dbPackage="xmapcore") trs <- getAllTranscripts() res <- RunExonModelWorkflow(eset2, idlist=trs[1643:1650], analysisUnit="probeset") res <- RunExonModelWorkflow(eset2, idlist=trs[500:510], analysisUnit="probeset") resmulti <- NULL ressingles <- NULL i <- 1 while(i < ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/articles.R \docType{data} \name{suffix_lowercase} \alias{suffix_lowercase} \title{Catalan articles in lowercase, separated by comma} \format{ An object of class \code{character} of length 11. } \usage{ suffix_lowercase } \description{ Catalan...
/man/suffix_lowercase.Rd
permissive
jmones/catmunalias
R
false
true
384
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/articles.R \docType{data} \name{suffix_lowercase} \alias{suffix_lowercase} \title{Catalan articles in lowercase, separated by comma} \format{ An object of class \code{character} of length 11. } \usage{ suffix_lowercase } \description{ Catalan...
# Load required packages library("VGAM") library("BMS") library("expectreg") library("fGarch") library("numDeriv") library("rootSolve") library("evd") library("MASS") library("stabledist") # Uncomment to change your working directory setwd() # Set parameters RiskLevel = 0.01 # Predetermined Value at Risk level Con...
/TERES_EVT.R
no_license
Ver2307/CRIX---TERES-EVT
R
false
false
3,603
r
# Load required packages library("VGAM") library("BMS") library("expectreg") library("fGarch") library("numDeriv") library("rootSolve") library("evd") library("MASS") library("stabledist") # Uncomment to change your working directory setwd() # Set parameters RiskLevel = 0.01 # Predetermined Value at Risk level Con...
#' Flip x,y to y,x, and vice versa #' #' @export #' @param input Feature of features #' @template lint #' @return a \code{\link{data-Feature}} or \code{\link{data-FeatureCollection}} #' @examples #' # a point #' serbia <- '{ #' "type": "Feature", #' "properties": {"color": "red"}, #' "geometry": { #' "type": ...
/lawn/R/flip.R
no_license
ingted/R-Examples
R
false
false
904
r
#' Flip x,y to y,x, and vice versa #' #' @export #' @param input Feature of features #' @template lint #' @return a \code{\link{data-Feature}} or \code{\link{data-FeatureCollection}} #' @examples #' # a point #' serbia <- '{ #' "type": "Feature", #' "properties": {"color": "red"}, #' "geometry": { #' "type": ...
#' gibbsHMM_PT #' #' parallel tempering with a column prior - option to mix over column or stick to j=1 #' @param x, alpha, log=False #' @keywords dirichlet #' @export #' @examples dDirichlet(c(.1, .9), c(0.1,0.1)) ReplicateSimer2.old<-function( N, n, Kfit=10, SimID, ITERATIONS,BURN, AMAX, PRIOR_TYPE, PTchain=20){...
/R/ReplicateSimer2.old.R
no_license
zoevanhavre/Zhmm.0
R
false
false
2,080
r
#' gibbsHMM_PT #' #' parallel tempering with a column prior - option to mix over column or stick to j=1 #' @param x, alpha, log=False #' @keywords dirichlet #' @export #' @examples dDirichlet(c(.1, .9), c(0.1,0.1)) ReplicateSimer2.old<-function( N, n, Kfit=10, SimID, ITERATIONS,BURN, AMAX, PRIOR_TYPE, PTchain=20){...
library(minque) ### Name: brate ### Title: Cotton boll retention rate data ### Aliases: brate ### Keywords: datasets cotton boll retention linear mixed model MINQUE REML ### resampling jackknife ### ** Examples library(minque) data(brate) head(brate) brate$Geno=factor(brate$Geno) brate$Pos=factor(brate$Pos...
/data/genthat_extracted_code/minque/examples/brate.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
617
r
library(minque) ### Name: brate ### Title: Cotton boll retention rate data ### Aliases: brate ### Keywords: datasets cotton boll retention linear mixed model MINQUE REML ### resampling jackknife ### ** Examples library(minque) data(brate) head(brate) brate$Geno=factor(brate$Geno) brate$Pos=factor(brate$Pos...
## By default, do not run the tests ## which also means do not run on CRAN runTests <- FALSE ## Use the Travis / GitHub integrations as we set this ## environment variable to "yes" in .travis.yml if (Sys.getenv("RunGgplot2Tests=yes") == "yes") runTests <- TRUE ## Also run the tests when building on Dean's machine if (i...
/tests/testthat/test-ggMarginal.R
permissive
2533245542/ggExtra
R
false
false
1,825
r
## By default, do not run the tests ## which also means do not run on CRAN runTests <- FALSE ## Use the Travis / GitHub integrations as we set this ## environment variable to "yes" in .travis.yml if (Sys.getenv("RunGgplot2Tests=yes") == "yes") runTests <- TRUE ## Also run the tests when building on Dean's machine if (i...
# Hausaufgabe 5 # Diffusionsprozesse. setwd("\\\\fs.univie.ac.at\\homedirs\\a1277687\\Desktop\\NA für finanzmathematik") ITO_SIM_PR <- function( iter = 100, anz_perioden = 50, anfang = 1.05, anz_schritte=900, sigma=0.05, mlt= 0.7){ random_vals <- matrix(rnorm(...
/Simulation eines Diffusionsprozesses_Timur_Sudak_a1277687.r
no_license
Timsud/Finanzmathematik
R
false
false
6,137
r
# Hausaufgabe 5 # Diffusionsprozesse. setwd("\\\\fs.univie.ac.at\\homedirs\\a1277687\\Desktop\\NA für finanzmathematik") ITO_SIM_PR <- function( iter = 100, anz_perioden = 50, anfang = 1.05, anz_schritte=900, sigma=0.05, mlt= 0.7){ random_vals <- matrix(rnorm(...
##These functions compute the inverse of a matrix. To speed ## up computation time, the inverse of the matrix is ## cached to avoid unnecessary computations. ##This function creates a "matrix", which ## is really just a list which contains a function ## to 1. set the value of the matrix ## 2. Get the value of the ma...
/cachematrix.R
no_license
mwalter4/ProgrammingAssignment2
R
false
false
1,422
r
##These functions compute the inverse of a matrix. To speed ## up computation time, the inverse of the matrix is ## cached to avoid unnecessary computations. ##This function creates a "matrix", which ## is really just a list which contains a function ## to 1. set the value of the matrix ## 2. Get the value of the ma...
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "sonar") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "Class") lrn = makeLearner("clas...
/models/openml_sonar/classification_Class/56b1798283c9122b42eeebdaf9ee0b32/code.R
no_license
pysiakk/CaseStudies2019S
R
false
false
741
r
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "sonar") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "Class") lrn = makeLearner("clas...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/int.R \name{integrateRegCurve} \alias{integrateRegCurve} \title{Integrate the area over/under the regularization path of a penalized regression model} \usage{ integrateRegCurve(fit, weighted = FALSE) } \arguments{ \item{fit}{A regularized reg...
/man/integrateRegCurve.Rd
no_license
Syksy/ePCR
R
false
true
1,624
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/int.R \name{integrateRegCurve} \alias{integrateRegCurve} \title{Integrate the area over/under the regularization path of a penalized regression model} \usage{ integrateRegCurve(fit, weighted = FALSE) } \arguments{ \item{fit}{A regularized reg...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getK.R \name{getK} \alias{getK} \title{GetK function} \usage{ getK(..., timeVECT, typeOF = FALSE) } \arguments{ \item{...}{One of more getMPN OF getk objects} \item{timeVECT}{vector containing the time/dose points (necessary if getMPN as obj...
/man/getK.Rd
no_license
mverbyla/viralEXP
R
false
true
435
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getK.R \name{getK} \alias{getK} \title{GetK function} \usage{ getK(..., timeVECT, typeOF = FALSE) } \arguments{ \item{...}{One of more getMPN OF getk objects} \item{timeVECT}{vector containing the time/dose points (necessary if getMPN as obj...
#' @title Random Assignment Generator for a Factorial Experiment with Many Conditions #' #' @description This function provides a list of random numbers that can be used to assign #' participants to conditions (cells) in an experiment with many conditions, such as a factorial #' experiment. The randomization is r...
/R/random_assignment_generator.R
no_license
cran/MOST
R
false
false
1,764
r
#' @title Random Assignment Generator for a Factorial Experiment with Many Conditions #' #' @description This function provides a list of random numbers that can be used to assign #' participants to conditions (cells) in an experiment with many conditions, such as a factorial #' experiment. The randomization is r...
#' @export themeNewVal <- function(this,p.new,input){ out=list() if(themeListDepth(this)==2){ item=names(this) newtxt=c() for(subitem in head(names(this[[1]]),-1)){ newval=input[[paste0("pop",item,subitem)]] if(this[[1]][[subitem]]['class']=='character') newval=paste0("'",newval,"'") ...
/ggedit/R/themeNewVal.R
no_license
rpodcast/ggedit
R
false
false
2,068
r
#' @export themeNewVal <- function(this,p.new,input){ out=list() if(themeListDepth(this)==2){ item=names(this) newtxt=c() for(subitem in head(names(this[[1]]),-1)){ newval=input[[paste0("pop",item,subitem)]] if(this[[1]][[subitem]]['class']=='character') newval=paste0("'",newval,"'") ...
[heading "FirstName" data [FirstName] format [info 100 edge [size: 1x1] left]] [heading "LastName" data [LastName] format [info 100 edge [size: 1x1] left]] [heading "Address" data [to-human "Address"] format [info 180 edge [size: 1x1] left]] [heading "Email" data [Email] format [info 120 edge [size: 1x1] left]] [he...
/db-overlays/billing_complete/person/listing-layout.r
permissive
mikeyaunish/DB-Rider
R
false
false
474
r
[heading "FirstName" data [FirstName] format [info 100 edge [size: 1x1] left]] [heading "LastName" data [LastName] format [info 100 edge [size: 1x1] left]] [heading "Address" data [to-human "Address"] format [info 180 edge [size: 1x1] left]] [heading "Email" data [Email] format [info 120 edge [size: 1x1] left]] [he...
#' Get or set \code{gene_id_type} from a SingleCellExperiment object #' @rdname gene_id_type #' @param object A \code{\link{SingleCellExperiment}} object. #' @param value Value to be assigned to corresponding object. #' #' @return gene id type string #' @author Luyi Tian #' #' @export #' #' @examples #' data("sc_sampl...
/R-raw/scGPS_methods.R
no_license
quanaibn/scGPS
R
false
false
10,580
r
#' Get or set \code{gene_id_type} from a SingleCellExperiment object #' @rdname gene_id_type #' @param object A \code{\link{SingleCellExperiment}} object. #' @param value Value to be assigned to corresponding object. #' #' @return gene id type string #' @author Luyi Tian #' #' @export #' #' @examples #' data("sc_sampl...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/print_ROCit.R \name{print.rocit} \alias{print.rocit} \title{Print \code{rocit} Object} \usage{ \method{print}{rocit}(x, ... = NULL) } \arguments{ \item{x}{An object of class \code{"rocit"}, returned by \code{\link{rocit}} function.} \item{.....
/man/print.rocit.Rd
no_license
cran/ROCit
R
false
true
834
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/print_ROCit.R \name{print.rocit} \alias{print.rocit} \title{Print \code{rocit} Object} \usage{ \method{print}{rocit}(x, ... = NULL) } \arguments{ \item{x}{An object of class \code{"rocit"}, returned by \code{\link{rocit}} function.} \item{.....
### ### $Id: testRPPASpatialParams.R 956 2015-01-26 01:40:28Z proebuck $ ### options(warn=1) library(SuperCurve) source("checkFuncs") ########################### ## tests of cutoff checkException(RPPASpatialParams(cutoff="bogus"), msg="invalid character value should fail") checkException(RPPASpatialP...
/tests/testRPPASpatialParams.R
no_license
rmylonas/SuperCurvePAF
R
false
false
1,981
r
### ### $Id: testRPPASpatialParams.R 956 2015-01-26 01:40:28Z proebuck $ ### options(warn=1) library(SuperCurve) source("checkFuncs") ########################### ## tests of cutoff checkException(RPPASpatialParams(cutoff="bogus"), msg="invalid character value should fail") checkException(RPPASpatialP...
\name{MultiMeasure-class} \alias{MultiMeasure-class} \docType{class} \title{Multi-platform genomic measurements across the same samples - class} \description{ An S4 class that stores normalised matched genomic data from multiple platforms and/or laboratory conditions (e.g. from microarrays, RNA-Seq and other seq...
/man/MultiMeasure-class.Rd
permissive
timpeters82/consensus
R
false
false
1,302
rd
\name{MultiMeasure-class} \alias{MultiMeasure-class} \docType{class} \title{Multi-platform genomic measurements across the same samples - class} \description{ An S4 class that stores normalised matched genomic data from multiple platforms and/or laboratory conditions (e.g. from microarrays, RNA-Seq and other seq...
#!/usr/bin/env Rscript #--------------- # initialization #--------------- source('pascal/lib/init.R') source('pascal/lib/muts.R') # additional packages suppressMessages(pacman::p_load(yaml)) sysprefix="umask 002 && unset PYTHONPATH && source /home/bermans/miniconda2/envs/pyclone/bin/activate /home/bermans/miniconda...
/R/clonality/pyclone.R
permissive
lmexj/pascal
R
false
false
10,248
r
#!/usr/bin/env Rscript #--------------- # initialization #--------------- source('pascal/lib/init.R') source('pascal/lib/muts.R') # additional packages suppressMessages(pacman::p_load(yaml)) sysprefix="umask 002 && unset PYTHONPATH && source /home/bermans/miniconda2/envs/pyclone/bin/activate /home/bermans/miniconda...
\name{pop.index} \alias{pop.index} \title{ Calculation of population index } \description{Calculates population index of a meteor shower for a given magnitude data, specified period of days and magnitude values. } \usage{ pop.index(data,year, month, day.beg, day.end=day.beg, shw, mag=-6:7) } \arguments{ \...
/man/pop.index.Rd
no_license
arturochian/MetFns
R
false
false
3,205
rd
\name{pop.index} \alias{pop.index} \title{ Calculation of population index } \description{Calculates population index of a meteor shower for a given magnitude data, specified period of days and magnitude values. } \usage{ pop.index(data,year, month, day.beg, day.end=day.beg, shw, mag=-6:7) } \arguments{ \...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/zchunk_L111.nonghg_en_R_S_T_Y.R \name{module_emissions_L111.nonghg_en_R_S_T_Y} \alias{module_emissions_L111.nonghg_en_R_S_T_Y} \title{module_emissions_L111.nonghg_en_R_S_T_Y} \usage{ module_emissions_L111.nonghg_en_R_S_T_Y(command, ...) } \ar...
/man/module_emissions_L111.nonghg_en_R_S_T_Y.Rd
permissive
Liyang-Guo/gcamdata
R
false
true
1,357
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/zchunk_L111.nonghg_en_R_S_T_Y.R \name{module_emissions_L111.nonghg_en_R_S_T_Y} \alias{module_emissions_L111.nonghg_en_R_S_T_Y} \title{module_emissions_L111.nonghg_en_R_S_T_Y} \usage{ module_emissions_L111.nonghg_en_R_S_T_Y(command, ...) } \ar...
################ ### Figure 25 ### ################ require(RMySQL) con<-dbConnect(MySQL(),dbname="MethData_Lister_hg18") reNucleotide_Element<-dbGetQuery(con,"SELECT R.nucleotide,R.id_In_RE,R.position,MPA.methCoef, MPA.name,MPA.nReads,E.id_In_Type,E.nCG,E.chrom,E.chromStart,E.chromEnd,MEA.methCoef,MEA.posInf,M...
/Genomic_Evaluation_of_individual_CpG_Methylation/R/figure25.R
no_license
vbarrera/thesis
R
false
false
14,051
r
################ ### Figure 25 ### ################ require(RMySQL) con<-dbConnect(MySQL(),dbname="MethData_Lister_hg18") reNucleotide_Element<-dbGetQuery(con,"SELECT R.nucleotide,R.id_In_RE,R.position,MPA.methCoef, MPA.name,MPA.nReads,E.id_In_Type,E.nCG,E.chrom,E.chromStart,E.chromEnd,MEA.methCoef,MEA.posInf,M...
#Title #A function for input the sampling date readSamplingDate <- function() { sd <- readline(prompt="Enter the sampling date (year-month-day): ") return(sd) } samplingDate<-readSamplingDate() #A function for input the sampling time readSamplingTime <- function() { st <- readline(prompt=...
/Radioactivity/SamplingDateReadFunction.R
no_license
Parek86/PrimeCoolR
R
false
false
571
r
#Title #A function for input the sampling date readSamplingDate <- function() { sd <- readline(prompt="Enter the sampling date (year-month-day): ") return(sd) } samplingDate<-readSamplingDate() #A function for input the sampling time readSamplingTime <- function() { st <- readline(prompt=...
average_score <- function(m, s){ ## takes in a matrix m and a vector of scores s ## returns the average score per statement nr <- nrow(m) total_score <- 0 for(i in 1:length(s)){ total_score <- total_score + s[i] } avg_score <- total_score/nr } col...
/R_Functions/Functions Folder V2/Old Functions/dataManipulation/matrixFunctions.R
no_license
dmcmill/4C_QuantWritingAnalysis
R
false
false
1,894
r
average_score <- function(m, s){ ## takes in a matrix m and a vector of scores s ## returns the average score per statement nr <- nrow(m) total_score <- 0 for(i in 1:length(s)){ total_score <- total_score + s[i] } avg_score <- total_score/nr } col...
## object for storing matrices with cached inverse matrix value ## method to create and manage the object ## x = original matrix, i = the inverse matrix (solve(x)) makeCacheMatrix <- function(x = matrix()) { i <- NULL set <- function(y) { # change matrix, set cached inverse to NULL x <<- y i <<- NULL } ...
/cachematrix.R
no_license
tormave/ProgrammingAssignment2
R
false
false
868
r
## object for storing matrices with cached inverse matrix value ## method to create and manage the object ## x = original matrix, i = the inverse matrix (solve(x)) makeCacheMatrix <- function(x = matrix()) { i <- NULL set <- function(y) { # change matrix, set cached inverse to NULL x <<- y i <<- NULL } ...
source("1.0_Climate_data_import.R") create_met_ensemble <- function(n.ens = 10){ clim.dat.2018 <- get_daymet(2018, 2018) ens.2018 <- list() for(i in 1:length(clim.dat.2018)){ county <- clim.dat.2018[[i]] county.name <- names(clim.dat.2018[i]) date <- county$date # save dates county <- select(coun...
/5.1_Create_Met_Ensemble.R
permissive
carina-t/Lil_Aye_Deez_2k19
R
false
false
1,679
r
source("1.0_Climate_data_import.R") create_met_ensemble <- function(n.ens = 10){ clim.dat.2018 <- get_daymet(2018, 2018) ens.2018 <- list() for(i in 1:length(clim.dat.2018)){ county <- clim.dat.2018[[i]] county.name <- names(clim.dat.2018[i]) date <- county$date # save dates county <- select(coun...
US_7cases2 <- read.csv(url("https://raw.githubusercontent.com/Reinalynn/MSDS692/master/Data/US_7cases2.csv"), header = TRUE, stringsAsFactors = FALSE) US_7deaths2 <- read.csv(url("https://raw.githubusercontent.com/Reinalynn/MSDS692/master/Data/US_7deaths2.csv"), header = TRUE, stringsAsFactors = FALSE) US_7cases2t <- a...
/Code/final_forecasting0624.R
permissive
Reinalynn/Forecasting-COVID-19-Cases-and-Deaths-Using-Time-Series-in-R
R
false
false
5,640
r
US_7cases2 <- read.csv(url("https://raw.githubusercontent.com/Reinalynn/MSDS692/master/Data/US_7cases2.csv"), header = TRUE, stringsAsFactors = FALSE) US_7deaths2 <- read.csv(url("https://raw.githubusercontent.com/Reinalynn/MSDS692/master/Data/US_7deaths2.csv"), header = TRUE, stringsAsFactors = FALSE) US_7cases2t <- a...
library( "ape" ) library( "geiger" ) library( "expm" ) library( "nloptr" ) source( "masternegloglikeeps1.R" ) source( "Qmatrixwoodherb2.R" ) source("Pruning2.R") sim.tree<-read.tree("tree50time94.txt") sim.chrom<-read.table("chrom50time94.txt", header=FALSE) last.state=50 x.0<- log(c(0.12, 0.001, 0.25, 0.002,0.036, ...
/Simulations tree height/50 my/optim50tree94.R
no_license
roszenil/Bichromdryad
R
false
false
821
r
library( "ape" ) library( "geiger" ) library( "expm" ) library( "nloptr" ) source( "masternegloglikeeps1.R" ) source( "Qmatrixwoodherb2.R" ) source("Pruning2.R") sim.tree<-read.tree("tree50time94.txt") sim.chrom<-read.table("chrom50time94.txt", header=FALSE) last.state=50 x.0<- log(c(0.12, 0.001, 0.25, 0.002,0.036, ...
# generate sequence for weather predicting task # set random seed set.seed(20180824) # set number of trials as 200 n_trial <- 200 # load probability table probs <- readr::read_csv(file.path("content/resources/config/WxPredict/prob_table.csv")) # use multinomial distribution to get the stimuli sequence stim_seq <- numer...
/R/config/WeatherPrediction/seqgen.R
permissive
iquizoo/docs
R
false
false
1,097
r
# generate sequence for weather predicting task # set random seed set.seed(20180824) # set number of trials as 200 n_trial <- 200 # load probability table probs <- readr::read_csv(file.path("content/resources/config/WxPredict/prob_table.csv")) # use multinomial distribution to get the stimuli sequence stim_seq <- numer...
setwd("C:/Users/wbowers/Documents/tcga_replication/data") set.seed(123.456) exp.data <- read.csv("TCGA_SARC_data_raw.csv", row.names = 1, stringsAsFactors = FALSE) # exp.data <- exp.data[1:1000,] # Filter out all genes with < 90% nonzero expression ind.90filt <- c() for (i in 1:nrow(exp.data)){ if ((sum(ex...
/scripts/R/explore/mrna_norm_2.R
no_license
whtbowers/TCGA-SARC_graphs
R
false
false
1,472
r
setwd("C:/Users/wbowers/Documents/tcga_replication/data") set.seed(123.456) exp.data <- read.csv("TCGA_SARC_data_raw.csv", row.names = 1, stringsAsFactors = FALSE) # exp.data <- exp.data[1:1000,] # Filter out all genes with < 90% nonzero expression ind.90filt <- c() for (i in 1:nrow(exp.data)){ if ((sum(ex...
\name{dB_getSWC} \alias{dB_getSWC} %- Also NEED an '\alias' for EACH other topic documented here. \title{Get soil moisture data from EURAC micro-meteo station (Mazia/Matsch) %% ~~function to do ... ~~ } \description{ Retrieve soil moisture data from EURAC micro-meteo station located in Mazia/Matsch } \usage{ dB_getSWC...
/man/dB_getSWC.Rd
no_license
zarch/DataBaseAlpEnvEURAC
R
false
false
2,595
rd
\name{dB_getSWC} \alias{dB_getSWC} %- Also NEED an '\alias' for EACH other topic documented here. \title{Get soil moisture data from EURAC micro-meteo station (Mazia/Matsch) %% ~~function to do ... ~~ } \description{ Retrieve soil moisture data from EURAC micro-meteo station located in Mazia/Matsch } \usage{ dB_getSWC...
# Just a note: many of my comments -- notes/explanations -- are in the R scripts # "approvalgraph_code.R" and "model_code.R." Check in there to get a better # sense of my thinking when putting together this ShinyApp! # Download relevant libraries! library(shiny) library(readr) library(sentimentr) library(tidyverse)...
/app.R
no_license
trishprabhu/analyzing-realdonaldTrump
R
false
false
32,172
r
# Just a note: many of my comments -- notes/explanations -- are in the R scripts # "approvalgraph_code.R" and "model_code.R." Check in there to get a better # sense of my thinking when putting together this ShinyApp! # Download relevant libraries! library(shiny) library(readr) library(sentimentr) library(tidyverse)...
crs1 <- "+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0" country_settings <- list( "uganda" = list( "boundary_shape_path" = "shapes/uga_admbnda_adm1/uga_admbnda_adm1_UBOS_v2.shp", "boundary_layer_name" = "uga_admbnda_adm1_UBOS_v2", "catchment_id_column" = "pcode" ), "kenya" = list( ...
/settings.R
no_license
tedbol1/statistical_floodimpact_kenya
R
false
false
629
r
crs1 <- "+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0" country_settings <- list( "uganda" = list( "boundary_shape_path" = "shapes/uga_admbnda_adm1/uga_admbnda_adm1_UBOS_v2.shp", "boundary_layer_name" = "uga_admbnda_adm1_UBOS_v2", "catchment_id_column" = "pcode" ), "kenya" = list( ...
pred.clusters <- function(dataset,rawModel,additionalInfo){ #dataset:= list of 2 objects - #datasetURI:= character sring, code name of dataset #dataEntry:= data.frame with 2 columns, #1st:name of compound,2nd:data.frame with values (colnames are feature names) #rawModel:= numeric vector showing cl...
/clusteringPkg.Rcheck/00_pkg_src/clusteringPkg/R/pred.clusters.R
no_license
GTsiliki/clustPkg
R
false
false
1,700
r
pred.clusters <- function(dataset,rawModel,additionalInfo){ #dataset:= list of 2 objects - #datasetURI:= character sring, code name of dataset #dataEntry:= data.frame with 2 columns, #1st:name of compound,2nd:data.frame with values (colnames are feature names) #rawModel:= numeric vector showing cl...
library("sp") library('methods') library("plyr") library("dplyr") #library(rSOILWAT2) #These are the functions I need: # if (!exists("vwcmatric.dy")) vwcmatric.dy <- get_Response_aggL(swof["sw_vwcmatric"], tscale = "dy", # scaler = 1, FUN = stats::weighte...
/For_Sense/Ex_Below3DD_JulSep.R
no_license
bobshriver/Exposure_scripts
R
false
false
7,245
r
library("sp") library('methods') library("plyr") library("dplyr") #library(rSOILWAT2) #These are the functions I need: # if (!exists("vwcmatric.dy")) vwcmatric.dy <- get_Response_aggL(swof["sw_vwcmatric"], tscale = "dy", # scaler = 1, FUN = stats::weighte...