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
#objetive function FOR THE METHOD OF MAXIMUN ENTROPY IN THE MEAN #FUNCTION:funMEM2 function(lambda,alpha,mu,ita=2,N=200) { #verifications # lambda,alpha size bigger than 0 if (length(alpha) <= 0 | length(lambda) <= 0 | length(mu) <= 0) return(1001) if (length(alpha) != length(lambda) | length(alpha) != length(mu)...
/opt/funMEMpoisson.R
no_license
erikapat/A-review-of-maximum-entropy-methods
R
false
false
807
r
#objetive function FOR THE METHOD OF MAXIMUN ENTROPY IN THE MEAN #FUNCTION:funMEM2 function(lambda,alpha,mu,ita=2,N=200) { #verifications # lambda,alpha size bigger than 0 if (length(alpha) <= 0 | length(lambda) <= 0 | length(mu) <= 0) return(1001) if (length(alpha) != length(lambda) | length(alpha) != length(mu)...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/competeMicrobiota.R \name{allSugarScoresForOneGenome} \alias{allSugarScoresForOneGenome} \title{Calculate Completeness Of All Sugar Degradation Pathways Within One Genome} \usage{ allSugarScoresForOneGenome(geneVec, allSugars, ER) } \argument...
/man/allSugarScoresForOneGenome.Rd
permissive
MolyWang/microCompet
R
false
true
1,264
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/competeMicrobiota.R \name{allSugarScoresForOneGenome} \alias{allSugarScoresForOneGenome} \title{Calculate Completeness Of All Sugar Degradation Pathways Within One Genome} \usage{ allSugarScoresForOneGenome(geneVec, allSugars, ER) } \argument...
library(safer) ### Name: decrypt_file ### Title: Decrypt a file ### Aliases: decrypt_file ### ** Examples # symmetric case: write.table(iris, "iris.csv") all( encrypt_file("iris.csv", outfile = "iris_encrypted.bin") , file.exists("iris_encrypted.bin") , decrypt_file("iris_encrypted.bin", outfile = "iris_2.csv...
/data/genthat_extracted_code/safer/examples/decrypt_file.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,441
r
library(safer) ### Name: decrypt_file ### Title: Decrypt a file ### Aliases: decrypt_file ### ** Examples # symmetric case: write.table(iris, "iris.csv") all( encrypt_file("iris.csv", outfile = "iris_encrypted.bin") , file.exists("iris_encrypted.bin") , decrypt_file("iris_encrypted.bin", outfile = "iris_2.csv...
ssfunnel.smd <- function(y, s2, n, alpha, log.ss, xlim, ylim, xlab, ylab, cols.contour, cols, cex.pts, lwd.contour, pch, ...){ plot.default(y, n, xlim = xlim, ylim = ylim, type = "n", log = ifelse(log.ss, "y", ""), xlab = xlab, ylab = ylab, ...) points(y, n, pch = pch, col = cols, cex = cex.pts) if(l...
/R/ssfunnel.smd.R
no_license
cran/altmeta
R
false
false
662
r
ssfunnel.smd <- function(y, s2, n, alpha, log.ss, xlim, ylim, xlab, ylab, cols.contour, cols, cex.pts, lwd.contour, pch, ...){ plot.default(y, n, xlim = xlim, ylim = ylim, type = "n", log = ifelse(log.ss, "y", ""), xlab = xlab, ylab = ylab, ...) points(y, n, pch = pch, col = cols, cex = cex.pts) if(l...
#Text & Puzzles #https://fivethirtyeight.com/features/can-you-solve-the-vexing-vexillology/ library(tidyverse) palabras<-tibble(word=read_lines("https://norvig.com/ngrams/enable1.txt")) palabras letras<-c("a","p","x","m","e","l","g") letra_central<-"g" #Palabras que contengan g palabras_g<-palabras[str_detect(pa...
/spelling_bee.R
no_license
jcval94/Random_Projects
R
false
false
2,080
r
#Text & Puzzles #https://fivethirtyeight.com/features/can-you-solve-the-vexing-vexillology/ library(tidyverse) palabras<-tibble(word=read_lines("https://norvig.com/ngrams/enable1.txt")) palabras letras<-c("a","p","x","m","e","l","g") letra_central<-"g" #Palabras que contengan g palabras_g<-palabras[str_detect(pa...
# Author: Robert J. Hijmans # Date : October 2008 # Version 0.9 # Licence GPL v3 # To sp pixel/grid objects setAs('Raster', 'GridTopology', function(from) { rs <- res(from) orig <- bbox(from)[,1] + 0.5 * rs GridTopology(orig, rs, dim(from)[2:1] ) } ) setAs('GridTopology', 'RasterLayer', ...
/R/coerce.R
no_license
nydydn/raster
R
false
false
9,870
r
# Author: Robert J. Hijmans # Date : October 2008 # Version 0.9 # Licence GPL v3 # To sp pixel/grid objects setAs('Raster', 'GridTopology', function(from) { rs <- res(from) orig <- bbox(from)[,1] + 0.5 * rs GridTopology(orig, rs, dim(from)[2:1] ) } ) setAs('GridTopology', 'RasterLayer', ...
stocks <- read.csv("StocksCluster.csv") dec <- subset(stocks, stocks$PositiveDec > 0) table(stocks$PositiveDec) max(cor(stocks[,1:11])) cor(stocks$ReturnJan, stocks$ReturnFeb) colMeans(stocks) library(caTools) set.seed(144) spl = sample.split(stocks$PositiveDec, SplitRatio = 0.7) stocksTrain = subset(stocks, spl == T...
/Clustering_K_Means/hw6_3.R
no_license
tagler/MIT_Analytics_Edge
R
false
false
2,293
r
stocks <- read.csv("StocksCluster.csv") dec <- subset(stocks, stocks$PositiveDec > 0) table(stocks$PositiveDec) max(cor(stocks[,1:11])) cor(stocks$ReturnJan, stocks$ReturnFeb) colMeans(stocks) library(caTools) set.seed(144) spl = sample.split(stocks$PositiveDec, SplitRatio = 0.7) stocksTrain = subset(stocks, spl == T...
Evaluate_network<-function(TSNet,Data){ # -- Performance evaluation in estimating tumor-purity based on synthetic data # -- INPUT # -- TSNet: object returned by function deNet # -- Data: object returned by function Synthetic_data # -- OUTPUT # -- True Positive and False Positive in detecting networ...
/R/Evaluate_network.R
no_license
jie108/TSNet
R
false
false
1,357
r
Evaluate_network<-function(TSNet,Data){ # -- Performance evaluation in estimating tumor-purity based on synthetic data # -- INPUT # -- TSNet: object returned by function deNet # -- Data: object returned by function Synthetic_data # -- OUTPUT # -- True Positive and False Positive in detecting networ...
# @@@@@@@@@@@@@@@@@@@@@ # graph functions----- # @@@@@@@@@@@@@@@@@@@@@ #' ggcovid #' #' Plot results of `glm_pp` #' #' @param dat a glm_pp object #' @param x_var date or cases. Date plots the time-serie of the slope of the variable of interest in the model, #' cases takes the last day and plot the slope of the va...
/code/functions_graph.R
permissive
marchionniLab/covid19census_analysis
R
false
false
10,125
r
# @@@@@@@@@@@@@@@@@@@@@ # graph functions----- # @@@@@@@@@@@@@@@@@@@@@ #' ggcovid #' #' Plot results of `glm_pp` #' #' @param dat a glm_pp object #' @param x_var date or cases. Date plots the time-serie of the slope of the variable of interest in the model, #' cases takes the last day and plot the slope of the va...
\name{RcmdrPlugin.StatisticalURV-internal} \title{Internal RcmdrURVPlugin objects} \alias{oneWayANOVA} \alias{OnPosthoc} \alias{OnOptions} \alias{OnGraphics} \alias{twoWayANOVA} \alias{OnModelsTwoWayANOVA} \alias{OnGraphicsTwoWayANOVA} \alias{OnCancel} \alias{OnHelp} \description{Internal RcmdrPlugin.StatisticalURV obj...
/man/RcmdrPlugin.StatisticalURV-internal.Rd
no_license
cran/RcmdrPlugin.StatisticalURV
R
false
false
396
rd
\name{RcmdrPlugin.StatisticalURV-internal} \title{Internal RcmdrURVPlugin objects} \alias{oneWayANOVA} \alias{OnPosthoc} \alias{OnOptions} \alias{OnGraphics} \alias{twoWayANOVA} \alias{OnModelsTwoWayANOVA} \alias{OnGraphicsTwoWayANOVA} \alias{OnCancel} \alias{OnHelp} \description{Internal RcmdrPlugin.StatisticalURV obj...
############################################ # Cross-population analysis of high-grade serous ovarian cancer does not support four subtypes # # Way, G.P., Rudd, J., Wang, C., Hamidi, H., Fridley, L.B, # Konecny, G., Goode, E., Greene, C.S., Doherty, J.A. # ~~~~~~~~~~~~~~~~~~~~~ # This script will summarize all of th...
/4.Survival/Scripts/B.Summarize_Survival.R
permissive
amyecampbell/clonedHGSCdata
R
false
false
10,909
r
############################################ # Cross-population analysis of high-grade serous ovarian cancer does not support four subtypes # # Way, G.P., Rudd, J., Wang, C., Hamidi, H., Fridley, L.B, # Konecny, G., Goode, E., Greene, C.S., Doherty, J.A. # ~~~~~~~~~~~~~~~~~~~~~ # This script will summarize all of th...
## File Name: Q3.testlet.R ## File Version: 1.14 ## File Last Change: 2017-05-10 18:41:24 ################################################################################ # Summarizing testlet effect using Q3 statistic Q3.testlet <- function( q3.res , testle...
/R/Q3.testlet.R
no_license
SanVerhavert/sirt
R
false
false
2,491
r
## File Name: Q3.testlet.R ## File Version: 1.14 ## File Last Change: 2017-05-10 18:41:24 ################################################################################ # Summarizing testlet effect using Q3 statistic Q3.testlet <- function( q3.res , testle...
context("errors") test_that("error is propagated", { expect_error( r(function() 1 + "A", error = "error"), "non-numeric argument to binary operator" ) gc() }) test_that("error object is passed", { err <- NULL tryCatch( r(function() 1 + "A", error = "error"), error = function(e) err <<- e ...
/tests/testthat/test-error.R
permissive
bedantaguru/callr
R
false
false
5,909
r
context("errors") test_that("error is propagated", { expect_error( r(function() 1 + "A", error = "error"), "non-numeric argument to binary operator" ) gc() }) test_that("error object is passed", { err <- NULL tryCatch( r(function() 1 + "A", error = "error"), error = function(e) err <<- e ...
# These are various computing functions of general utility # Helper function that computes sum or fraction of NAs for every variable in a dataset numNA <- function(x, frac=FALSE, n=FALSE) { if(frac) return(mean(is.na(x))) else if(n) return(length(x) - sum(is.na(x))) else return(sum(is.na(x)) ) } # ...
/HelperFunctionsMisc/ComputingMisc.R
no_license
sztal/MA
R
false
false
2,983
r
# These are various computing functions of general utility # Helper function that computes sum or fraction of NAs for every variable in a dataset numNA <- function(x, frac=FALSE, n=FALSE) { if(frac) return(mean(is.na(x))) else if(n) return(length(x) - sum(is.na(x))) else return(sum(is.na(x)) ) } # ...
### BEST RESPONSE FUNCTION best_response = function(j, g, payoff) { neighbor_strats = table(V(g)[nei(j)]$strategy) payoff_table = rbind( neighbor_strats , payoff[as.numeric(names(neighbor_strats))] , neighbor_strats*payoff[as.numeric(names(neighbor_strats))] ) as.numeric(names(neighbor_strats)[wh...
/coordination_game.R
no_license
joshua-a-becker/CoordinationGame
R
false
false
4,212
r
### BEST RESPONSE FUNCTION best_response = function(j, g, payoff) { neighbor_strats = table(V(g)[nei(j)]$strategy) payoff_table = rbind( neighbor_strats , payoff[as.numeric(names(neighbor_strats))] , neighbor_strats*payoff[as.numeric(names(neighbor_strats))] ) as.numeric(names(neighbor_strats)[wh...
% Generated by roxygen2 (4.0.2): do not edit by hand \docType{data} \name{circulation} \alias{circulation} \title{circulation data set} \format{TBA} \source{ TBA } \description{ circulation data set } \examples{ # } \references{ See citation('earlywarnings') } \keyword{datasets}
/earlywarnings/man/circulation.Rd
no_license
SystemsBiologyMcG/earlywarnings-R
R
false
false
281
rd
% Generated by roxygen2 (4.0.2): do not edit by hand \docType{data} \name{circulation} \alias{circulation} \title{circulation data set} \format{TBA} \source{ TBA } \description{ circulation data set } \examples{ # } \references{ See citation('earlywarnings') } \keyword{datasets}
#' @include AllClasses.R AllGenerics.R NULL #' Length of the TidySet #' #' Returns the number of sets in the object. #' @param x A TidySet object. #' #' No replacement function is available, either delete sets or add them. #' @return A numeric value. #' @seealso [dim()], [ncol()] and [nrow()]. #' Also look at [lengths...
/R/length.R
permissive
ropensci/BaseSet
R
false
false
10,151
r
#' @include AllClasses.R AllGenerics.R NULL #' Length of the TidySet #' #' Returns the number of sets in the object. #' @param x A TidySet object. #' #' No replacement function is available, either delete sets or add them. #' @return A numeric value. #' @seealso [dim()], [ncol()] and [nrow()]. #' Also look at [lengths...
#' @import stats NULL ################################################################################### # Standardized version of Abadie's IPW DID estimator #' Standardized inverse probability weighted DiD estimator, with repeated cross-section data #' @description \code{std_ipw_did_rc} is used to compute inverse pr...
/std_ipw_did_rc.R
no_license
sebbych/amazonia
R
false
false
9,399
r
#' @import stats NULL ################################################################################### # Standardized version of Abadie's IPW DID estimator #' Standardized inverse probability weighted DiD estimator, with repeated cross-section data #' @description \code{std_ipw_did_rc} is used to compute inverse pr...
# Ejecuta el siguiente código x <- c(1,3,5,7) y <- c(2,4,6,8) my_function <- function(x) { result <- mean(x) character <- as.character(result) } z <- x * y my_function(z)
/01interfaz-rstudio/06panel-entorno/mi_codigo.R
no_license
rsanchezs/ciencia-datos-con-r-tareas
R
false
false
179
r
# Ejecuta el siguiente código x <- c(1,3,5,7) y <- c(2,4,6,8) my_function <- function(x) { result <- mean(x) character <- as.character(result) } z <- x * y my_function(z)
library(dplyr) #Read in college scorecard data scorecard_data <- read.csv("~/Most_Recent_Cohorts.csv", stringsAsFactors = FALSE) # Filter out only schools that are predominantly bachelor's degree providing # Get rid of mischaracterized schools - we only want schools that offer bachelor's degrees # Get rid of n...
/preProc.R
no_license
jgoldstein2/Shiny_App
R
false
false
2,729
r
library(dplyr) #Read in college scorecard data scorecard_data <- read.csv("~/Most_Recent_Cohorts.csv", stringsAsFactors = FALSE) # Filter out only schools that are predominantly bachelor's degree providing # Get rid of mischaracterized schools - we only want schools that offer bachelor's degrees # Get rid of n...
library(maps) library(readxl) library(tigris) library(tidyverse) library(sf) library(choroplethr) library(choroplethrMaps) library(ggplot2) library(ggrepel) library(ggpubr) setwd("/Users/Jessica/Documents/Yale/Grubaugh lab") #### Read in UK data #### UK<-read_excel("UK_SA_BR_to_US_Dec.xlsx", sheet = "UK to US cities")...
/codes/B117 code Fig 1A 1B 3.8.21.R
no_license
grubaughlab/paper_2021_B117-US
R
false
false
9,439
r
library(maps) library(readxl) library(tigris) library(tidyverse) library(sf) library(choroplethr) library(choroplethrMaps) library(ggplot2) library(ggrepel) library(ggpubr) setwd("/Users/Jessica/Documents/Yale/Grubaugh lab") #### Read in UK data #### UK<-read_excel("UK_SA_BR_to_US_Dec.xlsx", sheet = "UK to US cities")...
get.movements<-function(movement, hm, features = NULL) { movement.summary = which(movement != 0, arr.ind = T) indices = which(movement != 0) type = movement[indices] scale = hm[indices] robust = c() if (length(features) > 0) { if (is.matrix(features)) { robust = features[indices] ro...
/R/get_movements.R
no_license
maxconway/hbm
R
false
false
992
r
get.movements<-function(movement, hm, features = NULL) { movement.summary = which(movement != 0, arr.ind = T) indices = which(movement != 0) type = movement[indices] scale = hm[indices] robust = c() if (length(features) > 0) { if (is.matrix(features)) { robust = features[indices] ro...
##' RMSE of standard errors associating with paired ##' differences on the provided index score. All ##' pairs of points used to fit the model figure in ##' this average. The paired differences are decorrelated ##' from the index itself before their standard errors are ##' computed. ##' ##' @title SE of paired differ...
/R/ppse.R
no_license
benthestatistician/PISE
R
false
false
16,829
r
##' RMSE of standard errors associating with paired ##' differences on the provided index score. All ##' pairs of points used to fit the model figure in ##' this average. The paired differences are decorrelated ##' from the index itself before their standard errors are ##' computed. ##' ##' @title SE of paired differ...
#------------------------------------------------------------------------------------------------------------------ #Problem 1 #--------------------------------------------------------------------------------------------------------------- library(lattice) library(MASS) library(psych) r<-runif(1000,min=0,max = 1)...
/Enterprise-Assignment1.R
no_license
Jayesh88/Statistics
R
false
false
3,771
r
#------------------------------------------------------------------------------------------------------------------ #Problem 1 #--------------------------------------------------------------------------------------------------------------- library(lattice) library(MASS) library(psych) r<-runif(1000,min=0,max = 1)...
library(rfPermute) ### Name: plotPredictedProbs ### Title: Plot Predicted Probabilities ### Aliases: plotPredictedProbs ### ** Examples data(mtcars) rf <- randomForest(factor(am) ~ ., mtcars) plotPredictedProbs(rf, bins = 20)
/data/genthat_extracted_code/rfPermute/examples/plotPredictedProbs.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
235
r
library(rfPermute) ### Name: plotPredictedProbs ### Title: Plot Predicted Probabilities ### Aliases: plotPredictedProbs ### ** Examples data(mtcars) rf <- randomForest(factor(am) ~ ., mtcars) plotPredictedProbs(rf, bins = 20)
############################################################################# # # XLConnect # Copyright (C) 2010-2021 Mirai Solutions GmbH # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation...
/R/aref2idx.R
no_license
miraisolutions/xlconnect
R
false
false
1,408
r
############################################################################# # # XLConnect # Copyright (C) 2010-2021 Mirai Solutions GmbH # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation...
## summary.lineupdist.R ## Karl W Broman # summary.lineupdist # #' Summarize inter-individual distances #' #' Summarize the results of \code{\link{distee}} or \code{\link{disteg}}, with #' inter-individual distances between two sets of gene expression data. #' #' #' @param object Output of \code{\link{distee}} or \cod...
/lineup/R/summary.lineupdist.R
no_license
ingted/R-Examples
R
false
false
6,437
r
## summary.lineupdist.R ## Karl W Broman # summary.lineupdist # #' Summarize inter-individual distances #' #' Summarize the results of \code{\link{distee}} or \code{\link{disteg}}, with #' inter-individual distances between two sets of gene expression data. #' #' #' @param object Output of \code{\link{distee}} or \cod...
set.seed(103) G <- 500 draws <- 0 while (length(draws) < G + 1){ U <- runif(3) if (U[2] <= exp(-log(U[1]) - ((-log(U[1]))^2)/2 - 1/2) & U[3] <= 1/2) draws <- c(draws, -log(U[1])) if (U[2] <= exp(-log(U[1]) - ((-log(U[1]))^2)/2 - 1/2) & U[3] > 1/2) draws...
/Bayes Metrics Greenberg Solutions/AnswerEx5_5.r
no_license
anhnguyendepocen/Bayes_Econometrics_Greenberg
R
false
false
441
r
set.seed(103) G <- 500 draws <- 0 while (length(draws) < G + 1){ U <- runif(3) if (U[2] <= exp(-log(U[1]) - ((-log(U[1]))^2)/2 - 1/2) & U[3] <= 1/2) draws <- c(draws, -log(U[1])) if (U[2] <= exp(-log(U[1]) - ((-log(U[1]))^2)/2 - 1/2) & U[3] > 1/2) draws...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hippo.R \name{hippo_diagnostic_plot} \alias{hippo_diagnostic_plot} \title{Create zero-inflation plot compared to reference Poisson line (e^{-x})} \usage{ hippo_diagnostic_plot(sce, show_outliers = FALSE, zvalue_thresh = 10) } \arguments{ \ite...
/man/hippo_diagnostic_plot.Rd
no_license
yanshushu815/HIPPO
R
false
true
1,002
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hippo.R \name{hippo_diagnostic_plot} \alias{hippo_diagnostic_plot} \title{Create zero-inflation plot compared to reference Poisson line (e^{-x})} \usage{ hippo_diagnostic_plot(sce, show_outliers = FALSE, zvalue_thresh = 10) } \arguments{ \ite...
\name{getCenter-methods} \docType{methods} \alias{getCenter-methods} \alias{getCenter,Fa-method} \title{Access Center slot} \description{ Accessor method to the Center slot of an object of class \code{"Fa"} and its subclasses. } \section{Methods}{ \describe{ \item{\code{signature(obj = "Fa")}}{ Accessor me...
/man/getCenter-methods.Rd
no_license
cran/robustfa
R
false
false
424
rd
\name{getCenter-methods} \docType{methods} \alias{getCenter-methods} \alias{getCenter,Fa-method} \title{Access Center slot} \description{ Accessor method to the Center slot of an object of class \code{"Fa"} and its subclasses. } \section{Methods}{ \describe{ \item{\code{signature(obj = "Fa")}}{ Accessor me...
#' Force Install and Load One or More GitHub Packages #' #' This function is a wrapper for \code{\link[remotes]{install_github}} #' which is the same as \code{\link[devtools]{install_github}} and #' \code{\link[base]{require}}. It checks to see if a #' package is installed, if not it attempts to install the package...
/R/p_load_current_gh.R
no_license
Balharbi/pacman
R
false
false
2,355
r
#' Force Install and Load One or More GitHub Packages #' #' This function is a wrapper for \code{\link[remotes]{install_github}} #' which is the same as \code{\link[devtools]{install_github}} and #' \code{\link[base]{require}}. It checks to see if a #' package is installed, if not it attempts to install the package...
contrast_code_categorical_variable <- function(in_file, in_contrast_code_file, out_file, overwrite = F) { if (!file.exists(in_file)) { stop(paste0(in_file, " does not exist.")) } if (!file.exists(in_contrast_code_file)) { stop(paste0(in_contrast_code_file, " does not exist.")) } if (file.exists(out_...
/bash/contrast_code_categorical_variable.R
permissive
epongpipat/ppi
R
false
false
758
r
contrast_code_categorical_variable <- function(in_file, in_contrast_code_file, out_file, overwrite = F) { if (!file.exists(in_file)) { stop(paste0(in_file, " does not exist.")) } if (!file.exists(in_contrast_code_file)) { stop(paste0(in_contrast_code_file, " does not exist.")) } if (file.exists(out_...
library(compiler) initVec <- function(){ veclength <- 10*1000; v <- vector(mode="numeric", length=veclength); for(i in 1:veclength) v[i] = i v } vecOp <- function(){ v1 <- initVec(); for(i in 1:500){ lapply(v1, function(v){v+1}) } } print(cmpfun(vecOp)())
/testing/tests/lapply.R
no_license
saskaale/r-with-bytecode-debugger
R
false
false
294
r
library(compiler) initVec <- function(){ veclength <- 10*1000; v <- vector(mode="numeric", length=veclength); for(i in 1:veclength) v[i] = i v } vecOp <- function(){ v1 <- initVec(); for(i in 1:500){ lapply(v1, function(v){v+1}) } } print(cmpfun(vecOp)())
#' module_emissions_L1211.nonco2_awb_R_S_T_Y_IRR #' #' Produce irrigated and rainfed production shares, and agricultural waste burning emissions by irrigated & rainfed production shares. #' #' @param command API command to execute #' @param ... other optional parameters, depending on command #' @return Depends on \code...
/R/zchunk_L1211.nonco2_awb_R_S_T_Y_IRR.R
no_license
shaohuizhang/gcamdata
R
false
false
6,149
r
#' module_emissions_L1211.nonco2_awb_R_S_T_Y_IRR #' #' Produce irrigated and rainfed production shares, and agricultural waste burning emissions by irrigated & rainfed production shares. #' #' @param command API command to execute #' @param ... other optional parameters, depending on command #' @return Depends on \code...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 2.22539640186743e-308, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L))) result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist) st...
/CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615785078-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
329
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 2.22539640186743e-308, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L))) result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist) st...
context("FCS header parsing...") test_that("txt_to_spill", { #test spill to txt mat <- matrix(rnorm(16), nrow = 4, dimnames = list(NULL, letters[1:4])) s1 <- spill2txt(mat) s2 <- spill2txt(mat, cpp = FALSE) v1 <- strsplit(s1, ",")[[1]] v2 <- strsplit(s2, ",")[[1]] expect_equal(v1[1:5],...
/tests/testthat/test-fcsTextParse.R
no_license
RGLab/flowCore
R
false
false
3,211
r
context("FCS header parsing...") test_that("txt_to_spill", { #test spill to txt mat <- matrix(rnorm(16), nrow = 4, dimnames = list(NULL, letters[1:4])) s1 <- spill2txt(mat) s2 <- spill2txt(mat, cpp = FALSE) v1 <- strsplit(s1, ",")[[1]] v2 <- strsplit(s2, ",")[[1]] expect_equal(v1[1:5],...
\name{SpatDelayDiff-package} \alias{SpatDelayDiff-package} \alias{SpatDelayDiff} \docType{package} \title{ Package for estimating parameters of a spatial or nonspatial version of a delay-difference model } \description{ More about what it does (maybe more than one line) ~~ A concise (1-5 lines) description of the packa...
/man/SpatDelayDiff-package.Rd
no_license
James-Thorson/spatial_delay-difference
R
false
false
1,093
rd
\name{SpatDelayDiff-package} \alias{SpatDelayDiff-package} \alias{SpatDelayDiff} \docType{package} \title{ Package for estimating parameters of a spatial or nonspatial version of a delay-difference model } \description{ More about what it does (maybe more than one line) ~~ A concise (1-5 lines) description of the packa...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/analyse.R \name{superFreq} \alias{superFreq} \title{Wrapper to run default superFreq analysis} \usage{ superFreq(metaDataFile, captureRegions = "", normalDirectory, Rdirectory, plotDirectory, reference, genome = "hg19", BQoffset = 33, cpus ...
/man/superFreq.Rd
permissive
xtmgah/superFreq
R
false
true
10,910
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/analyse.R \name{superFreq} \alias{superFreq} \title{Wrapper to run default superFreq analysis} \usage{ superFreq(metaDataFile, captureRegions = "", normalDirectory, Rdirectory, plotDirectory, reference, genome = "hg19", BQoffset = 33, cpus ...
richness_pdf = function(p){ dpoibin(kk = 0:length(p), pp = p) } probit = qnorm inv_probit = pnorm #' @importFrom mvtnorm rmvnorm #' @importFrom poibin dpoibin #' @importFrom progress progress_bar #' @export bc_stack = function(p_train, y_train, p_test, iters = 1010, burn = 10, thin = 2, verbose...
/R/bc.R
no_license
davharris/sdmstack
R
false
false
1,081
r
richness_pdf = function(p){ dpoibin(kk = 0:length(p), pp = p) } probit = qnorm inv_probit = pnorm #' @importFrom mvtnorm rmvnorm #' @importFrom poibin dpoibin #' @importFrom progress progress_bar #' @export bc_stack = function(p_train, y_train, p_test, iters = 1010, burn = 10, thin = 2, verbose...
plot_pcoa.from_object <- function( matrix, file_in = "matrix_object", my_width = 1000, my_height = 1000, samples = dimnames(matrix)[[2]], input_dir = "./", output_PCoA_dir =...
/plot_pcoa.from_object.r
permissive
DrOppenheimer/matR-apps
R
false
false
9,453
r
plot_pcoa.from_object <- function( matrix, file_in = "matrix_object", my_width = 1000, my_height = 1000, samples = dimnames(matrix)[[2]], input_dir = "./", output_PCoA_dir =...
## Read data ## Use fread because the file contains many lines require(data.table) data <- fread("household_power_consumption.txt", na.string="?") ## Keep only rows with date = February 1st,2007 or February 2nd, 2007 data<- subset(data, Date=="1/2/2007" | Date =="2/2/2007") table(data$Date) str(data) ## Convert colum...
/plot2.r
no_license
rfeu/ExData_Plotting1
R
false
false
813
r
## Read data ## Use fread because the file contains many lines require(data.table) data <- fread("household_power_consumption.txt", na.string="?") ## Keep only rows with date = February 1st,2007 or February 2nd, 2007 data<- subset(data, Date=="1/2/2007" | Date =="2/2/2007") table(data$Date) str(data) ## Convert colum...
library(Surrogate) ### Name: Prentice ### Title: Evaluates surrogacy based on the Prentice criteria for ### continuous endpoints (single-trial setting) ### Aliases: Prentice ### Keywords: Single-trial setting Prentice criteria ### ** Examples ## Load the ARMD dataset data(ARMD) ## Evaluate the Prentice criteria...
/data/genthat_extracted_code/Surrogate/examples/Prentice.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
464
r
library(Surrogate) ### Name: Prentice ### Title: Evaluates surrogacy based on the Prentice criteria for ### continuous endpoints (single-trial setting) ### Aliases: Prentice ### Keywords: Single-trial setting Prentice criteria ### ** Examples ## Load the ARMD dataset data(ARMD) ## Evaluate the Prentice criteria...
#Forecasting time series data #In this project we will be building and forecasting times series based on wikipedia data from which we will extract the #number of view on a particular search. #getting wikipedia trend data #here we will search for number of views for Lionel Messi for the mentioned dates lib...
/TimeSeris,WikipediaData,Prophet.R
no_license
shub9699/Time_Series_in_R
R
false
false
1,449
r
#Forecasting time series data #In this project we will be building and forecasting times series based on wikipedia data from which we will extract the #number of view on a particular search. #getting wikipedia trend data #here we will search for number of views for Lionel Messi for the mentioned dates lib...
\name{extPrompt-package} \alias{extPrompt-package} \docType{package} \title{ Embed current time in the R prompt } \description{ Embed current time in the R prompt when it is running in interactive mode. It does so by treating the \code{options()$prompt} string as a \code{strftime} format string. } \details{ Th...
/man/extPrompt-package.Rd
no_license
musically-ut/extPrompt
R
false
false
941
rd
\name{extPrompt-package} \alias{extPrompt-package} \docType{package} \title{ Embed current time in the R prompt } \description{ Embed current time in the R prompt when it is running in interactive mode. It does so by treating the \code{options()$prompt} string as a \code{strftime} format string. } \details{ Th...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pinpoint_operations.R \name{pinpoint_get_campaign} \alias{pinpoint_get_campaign} \title{Returns information about a campaign} \usage{ pinpoint_get_campaign(ApplicationId, CampaignId) } \arguments{ \item{ApplicationId}{[required] The unique ID...
/cran/paws.customer.engagement/man/pinpoint_get_campaign.Rd
permissive
peoplecure/paws
R
false
true
613
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pinpoint_operations.R \name{pinpoint_get_campaign} \alias{pinpoint_get_campaign} \title{Returns information about a campaign} \usage{ pinpoint_get_campaign(ApplicationId, CampaignId) } \arguments{ \item{ApplicationId}{[required] The unique ID...
library(shiny) library(DT) library(tidyverse) bcl <- read_csv("bcl-data.csv") %>% mutate_if(is.character, str_to_title) %>% # for readable names, etc replace_na(list(Sweetness = 0L)) #the L specifies this is an integer ui <- fluidPage( titlePanel("BC Liquor Store prices"), sidebarLayout( # Sidebar of widget...
/bcl/app.R
no_license
STAT545-UBC-hw-2018-19/hw08-shreeramsenthi
R
false
false
2,718
r
library(shiny) library(DT) library(tidyverse) bcl <- read_csv("bcl-data.csv") %>% mutate_if(is.character, str_to_title) %>% # for readable names, etc replace_na(list(Sweetness = 0L)) #the L specifies this is an integer ui <- fluidPage( titlePanel("BC Liquor Store prices"), sidebarLayout( # Sidebar of widget...
#======================================================================================================================# # Script created by Mark Christie, contact at Redpath.Christie@gmail.com # Script created in version R 3.0.1 # This script: This script parses a SAM file with a header and creates a new file with (...
/old/SamFormatter.R
no_license
RedpathsRepos/rscript
R
false
false
1,536
r
#======================================================================================================================# # Script created by Mark Christie, contact at Redpath.Christie@gmail.com # Script created in version R 3.0.1 # This script: This script parses a SAM file with a header and creates a new file with (...
# Compare emissions from motor vehicle sources in Baltimore City with emissions from # motor vehicle sources in Los Angeles County, California (fips == "06037"). # Which city has seen greater changes over time in motor vehicle emissions? # load the ggplot library library(ggplot2) # now, access the Work file source("...
/plot6.R
no_license
mstaneluis/ExData_Plotting2
R
false
false
1,555
r
# Compare emissions from motor vehicle sources in Baltimore City with emissions from # motor vehicle sources in Los Angeles County, California (fips == "06037"). # Which city has seen greater changes over time in motor vehicle emissions? # load the ggplot library library(ggplot2) # now, access the Work file source("...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/input_pclakeconfig.R \name{input_pclakeconfig} \alias{input_pclakeconfig} \title{Inputs values into a PCLake config file} \usage{ input_pclakeconfig(file, par_list, column = "sSet1", verbose = FALSE) } \arguments{ \item{file}{filepath;} \ite...
/man/input_pclakeconfig.Rd
no_license
carollcb/LakeEnsemblR.WQ
R
false
true
617
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/input_pclakeconfig.R \name{input_pclakeconfig} \alias{input_pclakeconfig} \title{Inputs values into a PCLake config file} \usage{ input_pclakeconfig(file, par_list, column = "sSet1", verbose = FALSE) } \arguments{ \item{file}{filepath;} \ite...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_peaks.R \name{plot_peaks} \alias{plot_peaks} \title{@title plot_peaks} \usage{ plot_peaks(Autotuner, boundary = 10, peak, showLegend = TRUE) } \arguments{ \item{Autotuner}{An Autotuner objected containing sample specific raw data.} \ite...
/man/plot_peaks.Rd
permissive
KujawinskiLaboratory/Autotuner
R
false
true
1,149
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_peaks.R \name{plot_peaks} \alias{plot_peaks} \title{@title plot_peaks} \usage{ plot_peaks(Autotuner, boundary = 10, peak, showLegend = TRUE) } \arguments{ \item{Autotuner}{An Autotuner objected containing sample specific raw data.} \ite...
#ETL #customer_segment c_segment=data.frame(segment_name=unique(df1$Customer.Segment)) c_segment$segment_id=1:nrow(c_segment) c_segment_id_list <- sapply(df1$Customer.Segment, function(x) c_segment$segment_id[c_segment$segment_name == x]) df1$segment_id=c_segment_id_list dbWriteTable(con1, name="customer_segment", valu...
/ETL.R
no_license
xluxing/group4finalproject
R
false
false
5,240
r
#ETL #customer_segment c_segment=data.frame(segment_name=unique(df1$Customer.Segment)) c_segment$segment_id=1:nrow(c_segment) c_segment_id_list <- sapply(df1$Customer.Segment, function(x) c_segment$segment_id[c_segment$segment_name == x]) df1$segment_id=c_segment_id_list dbWriteTable(con1, name="customer_segment", valu...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils-upload.R \name{ee_utils_create_manifest_image} \alias{ee_utils_create_manifest_image} \title{Create a manifest to upload an image} \usage{ ee_utils_create_manifest_image( gs_uri, assetId, properties = NULL, start_time = "1970-01...
/man/ee_utils_create_manifest_image.Rd
permissive
KirkMSaylor/rgee
R
false
true
2,100
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils-upload.R \name{ee_utils_create_manifest_image} \alias{ee_utils_create_manifest_image} \title{Create a manifest to upload an image} \usage{ ee_utils_create_manifest_image( gs_uri, assetId, properties = NULL, start_time = "1970-01...
### Automating shell file generation # 1. Preliminary data (this is a randomisation section and, to save resources, doesn't have to be re-run every time) #indices <- read.csv(file="Indices_of_5k_vars_used_for_MCC.csv") #to_use <- sample(1:5000, 24, replace=FALSE) # choose 24 of the 5k trees used in the MCC #tree...
/MuHiSSE/4b-ClusterCodeVR.r
no_license
maoroi/DivRates
R
false
false
27,126
r
### Automating shell file generation # 1. Preliminary data (this is a randomisation section and, to save resources, doesn't have to be re-run every time) #indices <- read.csv(file="Indices_of_5k_vars_used_for_MCC.csv") #to_use <- sample(1:5000, 24, replace=FALSE) # choose 24 of the 5k trees used in the MCC #tree...
\name{bi_wrapper} \alias{bi_wrapper} \title{Bi Wrapper} \arguments{ \item{client}{is either "draw", "filter", "sample"... see LibBi documentation.} \item{model_file_name}{path to a model file (typically ending in ".bi"); libbi will be executed from within the same folder.} \item{config}{path to a configur...
/man/bi_wrapper.Rd
no_license
pierrejacob/RBi
R
false
false
1,413
rd
\name{bi_wrapper} \alias{bi_wrapper} \title{Bi Wrapper} \arguments{ \item{client}{is either "draw", "filter", "sample"... see LibBi documentation.} \item{model_file_name}{path to a model file (typically ending in ".bi"); libbi will be executed from within the same folder.} \item{config}{path to a configur...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/ra6.R \name{ra6} \alias{ra6} \title{Function to return the RA6 hydrologic indicator statistic for a given data frame} \usage{ ra6(qfiletempf) } \arguments{ \item{qfiletempf}{data frame containing a "discharge" column containing daily ...
/man/ra6.Rd
permissive
joycezw/EflowStats
R
false
false
807
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/ra6.R \name{ra6} \alias{ra6} \title{Function to return the RA6 hydrologic indicator statistic for a given data frame} \usage{ ra6(qfiletempf) } \arguments{ \item{qfiletempf}{data frame containing a "discharge" column containing daily ...
N <- 72000 n.sim <- 1000001 set.seed(43) source("/u/maechler/R/Pkgs/diptest/stuff/dip_N_do.R", echo=TRUE)
/stuff/d72k_do.R
no_license
simonpedrogonzalez/diptest
R
false
false
107
r
N <- 72000 n.sim <- 1000001 set.seed(43) source("/u/maechler/R/Pkgs/diptest/stuff/dip_N_do.R", echo=TRUE)
## Usage: ## source("plot1.R") ## plot1() ## plot1 <- function() { # read data from disk data <- read.table("../household_power_consumption.txt", sep=";", header=TRUE, na.strings = "?") #convert date string into date object data$Date <- as.Date(data$Date,"%d/%m/%Y") # filter by date filtered <- data[data...
/plot1.R
no_license
cguegi/ExData_Plotting1
R
false
false
698
r
## Usage: ## source("plot1.R") ## plot1() ## plot1 <- function() { # read data from disk data <- read.table("../household_power_consumption.txt", sep=";", header=TRUE, na.strings = "?") #convert date string into date object data$Date <- as.Date(data$Date,"%d/%m/%Y") # filter by date filtered <- data[data...
w2test<-c(40.57903, 51.5263, 54.01269, 90.70031, 110.56461, 117.86191, 137.16324, 147.69461, 160.77858, 187.4198) require(WeibullR) obj<-wblr(w2test) obj<-wblr.fit(obj, dist="weibull3p", method.fit="mle", modify.by.t0=TRUE, xlab="time - t0", col="purple") plot(obj, xlab="time...
/scripts/three_parameter_FM.r
no_license
openrelia/WeibullR.gallery
R
false
false
3,230
r
w2test<-c(40.57903, 51.5263, 54.01269, 90.70031, 110.56461, 117.86191, 137.16324, 147.69461, 160.77858, 187.4198) require(WeibullR) obj<-wblr(w2test) obj<-wblr.fit(obj, dist="weibull3p", method.fit="mle", modify.by.t0=TRUE, xlab="time - t0", col="purple") plot(obj, xlab="time...
################################################## ### PROG8430 ## ### Unsupervised Learning: K-Means Clustering ## ################################################## # ## ################################################## # W...
/Clustering/HarshitaSingh_Query.R
no_license
harshitasingh115/R-Projects
R
false
false
6,435
r
################################################## ### PROG8430 ## ### Unsupervised Learning: K-Means Clustering ## ################################################## # ## ################################################## # W...
library(shiny) # Define UI for application that draws a histogram ui <- fluidPage( # Application title titlePanel("Distribution specifications"), # Sidebar with a slider input for number of bins sidebarLayout( sidebarPanel( selectInput("dist", "Distribution:", ...
/RShiny/Ex2-base-app.R
no_license
anhnguyendepocen/stats-club
R
false
false
3,817
r
library(shiny) # Define UI for application that draws a histogram ui <- fluidPage( # Application title titlePanel("Distribution specifications"), # Sidebar with a slider input for number of bins sidebarLayout( sidebarPanel( selectInput("dist", "Distribution:", ...
## ---- include = FALSE--------------------------------------------------------- knitr::opts_chunk$set( fig.path = "man/figures/", comment = NA ) ## ----data-setup--------------------------------------------------------------- set.seed(1234) N = 2500 x = rnorm(N) lp = 0 + .5*x y = rbinom(N, size = 1, prob = plogi...
/vignettes/Demo.R
permissive
JoelitonVieira/confusionMatrix
R
false
false
1,110
r
## ---- include = FALSE--------------------------------------------------------- knitr::opts_chunk$set( fig.path = "man/figures/", comment = NA ) ## ----data-setup--------------------------------------------------------------- set.seed(1234) N = 2500 x = rnorm(N) lp = 0 + .5*x y = rbinom(N, size = 1, prob = plogi...
setwd('/Users/ivanliu/Google Drive/Melbourne Datathon/Melbourne_Datathon_2015_Kaggle') rm(list=ls()); gc() dt_1 <- read.csv('../Datathon_Full_Dataset/Datathon WC Data Games 1-10.csv', stringsAsFactors=FALSE,na.strings = "") dt_2 <- read.csv('../Datathon_Full_Dataset/Datathon WC Data Games 11-20.csv', stringsAsFactors=...
/Rscripts/archive/5_Feature_engineering.R
no_license
enfeizhan/Melbourne_Datathon_2015_Kaggle
R
false
false
36,036
r
setwd('/Users/ivanliu/Google Drive/Melbourne Datathon/Melbourne_Datathon_2015_Kaggle') rm(list=ls()); gc() dt_1 <- read.csv('../Datathon_Full_Dataset/Datathon WC Data Games 1-10.csv', stringsAsFactors=FALSE,na.strings = "") dt_2 <- read.csv('../Datathon_Full_Dataset/Datathon WC Data Games 11-20.csv', stringsAsFactors=...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hexagonalPlotEval.R \name{hexagonalPlotEval} \alias{hexagonalPlotEval} \title{Plot one of many hexagonal evaluation plots.} \usage{ hexagonalPlotEval(somobj, type, feature, ...) } \arguments{ \item{somobj}{an object of class "kohonen" or "som...
/man/hexagonalPlotEval.Rd
no_license
kevglynn/so_maps
R
false
true
680
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hexagonalPlotEval.R \name{hexagonalPlotEval} \alias{hexagonalPlotEval} \title{Plot one of many hexagonal evaluation plots.} \usage{ hexagonalPlotEval(somobj, type, feature, ...) } \arguments{ \item{somobj}{an object of class "kohonen" or "som...
mgf <- "BEGIN IONS PEPMASS=137.10699 CHARGE=0+ MSLEVEL=2 PRECURSORINTENSITY=1180840.000000 FILENAME=specs_ms.pklbin RTINSECONDS=84.030998 ACTIVATION=CID INSTRUMENT=ion trap TITLE=Scan Number: 1 SCANS=1 END IONS BEGIN IONS PEPMASS=137.10800 CHARGE=0+ MSLEVEL=2 PRECURSORINTENSITY=647009.000000 FILENAME=specs_ms.pklbin ...
/tests/testthat/test-test_parse.R
permissive
chasemc/mgfparse
R
false
false
1,379
r
mgf <- "BEGIN IONS PEPMASS=137.10699 CHARGE=0+ MSLEVEL=2 PRECURSORINTENSITY=1180840.000000 FILENAME=specs_ms.pklbin RTINSECONDS=84.030998 ACTIVATION=CID INSTRUMENT=ion trap TITLE=Scan Number: 1 SCANS=1 END IONS BEGIN IONS PEPMASS=137.10800 CHARGE=0+ MSLEVEL=2 PRECURSORINTENSITY=647009.000000 FILENAME=specs_ms.pklbin ...
ril <- read.table('GFF.RIL.histogram.txt') het <- read.table('GFF.Somatic.histogram.txt') cor.test(ril[,3], het[,4])
/Figure7_Circos/cor.test.R
no_license
JinfengChen/RILs_Preparation
R
false
false
118
r
ril <- read.table('GFF.RIL.histogram.txt') het <- read.table('GFF.Somatic.histogram.txt') cor.test(ril[,3], het[,4])
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/multinomial_variant_calling.R \name{compute_mutant_allele_frequencies} \alias{compute_mutant_allele_frequencies} \title{Calculate mutant allele frequency at each genome position for a sample} \usage{ compute_mutant_allele_frequencies(pile, mu...
/pipe/lib/megadaph.mtdna/man/compute_mutant_allele_frequencies.Rd
permissive
fennerm/daphnia-mtdna-ma
R
false
true
625
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/multinomial_variant_calling.R \name{compute_mutant_allele_frequencies} \alias{compute_mutant_allele_frequencies} \title{Calculate mutant allele frequency at each genome position for a sample} \usage{ compute_mutant_allele_frequencies(pile, mu...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/2-Analysis.R \name{BFDA.analyze} \alias{BFDA.analyze} \title{Analyze a BFDA.sim object} \usage{ BFDA.analyze(BFDA, design = c("sequential", "fixed"), boundary, n.min = NULL, n.max = NULL, n = NULL, verbose = TRUE, alpha = 0.05) } \argumen...
/package/man/BFDA.analyze.Rd
no_license
kalenkovich/BFDA
R
false
true
1,548
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/2-Analysis.R \name{BFDA.analyze} \alias{BFDA.analyze} \title{Analyze a BFDA.sim object} \usage{ BFDA.analyze(BFDA, design = c("sequential", "fixed"), boundary, n.min = NULL, n.max = NULL, n = NULL, verbose = TRUE, alpha = 0.05) } \argumen...
download.func <- function(i) { #url = paste("http://people.cs.pitt.edu/~milos/courses/cs2710-Fall2017/Lectures/Class",i,".pdf",sep = "") url = paste("https://www.cs.toronto.edu/~rgrosse/courses/csc321_2018/slides/lec",i,".pdf",sep = "") #destfile = paste("G:/My Drive/cs2710_foundations_ai_upitt/Class",i,".pdf",se...
/r_scripts/download_pattern.R
no_license
MattSkiff/first_repo
R
false
false
548
r
download.func <- function(i) { #url = paste("http://people.cs.pitt.edu/~milos/courses/cs2710-Fall2017/Lectures/Class",i,".pdf",sep = "") url = paste("https://www.cs.toronto.edu/~rgrosse/courses/csc321_2018/slides/lec",i,".pdf",sep = "") #destfile = paste("G:/My Drive/cs2710_foundations_ai_upitt/Class",i,".pdf",se...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/polyreg_r.R \name{gen_dat_r} \alias{gen_dat_r} \title{Generate Data as DataFrame for Polynomial Regression} \usage{ gen_dat_r(B = c(4, 6, 2, -1), n = 10000, rng = c(-2, 4), err = c(0, 4)) } \arguments{ \item{B}{polynoimal coefficients, a numb...
/R/polyreg/man/gen_dat_r.Rd
no_license
bacoon23/polyreg_build_tmp
R
false
true
724
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/polyreg_r.R \name{gen_dat_r} \alias{gen_dat_r} \title{Generate Data as DataFrame for Polynomial Regression} \usage{ gen_dat_r(B = c(4, 6, 2, -1), n = 10000, rng = c(-2, 4), err = c(0, 4)) } \arguments{ \item{B}{polynoimal coefficients, a numb...
#setting environment setwd("/home/rajesh/Desktop/DMML_project/Datasets/3/") #loading Libraries library(Amelia) library(corrplot) #loading dataset genre_data <- read.table(file='songDb.tsv', sep = '\t', header = TRUE, fill = TRUE) str(genre_data) #plotting missing percentage missmap(genre_data,main = "missing in gen...
/Project/Dataset3_Linear_regression_Random_forest/genre_cleaning.R
no_license
rajesh95cs/machine-learning-project
R
false
false
1,072
r
#setting environment setwd("/home/rajesh/Desktop/DMML_project/Datasets/3/") #loading Libraries library(Amelia) library(corrplot) #loading dataset genre_data <- read.table(file='songDb.tsv', sep = '\t', header = TRUE, fill = TRUE) str(genre_data) #plotting missing percentage missmap(genre_data,main = "missing in gen...
# This script runs the 10 chains of the OUrjMCMC analysis. Each chain takes a # long time to run, so it is best to run them in parallel. # Chain 1 DNN = list(alpha = 0.89, beta_X = 0.282, sig2 = 1.1, k = c(1, 1), theta = 6, slide = 1) # Specify tuning parameters. chainNumber <- "01" source("Analyse...
/Analyses/01-Allometric-grades/Computations/bayouAllometry_relBrain.R
no_license
MaxKerney/thesis-materials-and-methods
R
false
false
6,405
r
# This script runs the 10 chains of the OUrjMCMC analysis. Each chain takes a # long time to run, so it is best to run them in parallel. # Chain 1 DNN = list(alpha = 0.89, beta_X = 0.282, sig2 = 1.1, k = c(1, 1), theta = 6, slide = 1) # Specify tuning parameters. chainNumber <- "01" source("Analyse...
# Calculate possible confounding factors to DE identified in the Augur paper: # - read depth (mean and total counts per cell type), # - 'gene depth' (number of genes detected per cell type), and # - 'cell depth' (number of cells sequenced per type) setwd("~/git/DE-analysis") options(stringsAsFactors = F) library(argpar...
/R/analysis/confounds/outer-calculate-confounds.R
no_license
phycomlab/DE-analysis
R
false
false
1,886
r
# Calculate possible confounding factors to DE identified in the Augur paper: # - read depth (mean and total counts per cell type), # - 'gene depth' (number of genes detected per cell type), and # - 'cell depth' (number of cells sequenced per type) setwd("~/git/DE-analysis") options(stringsAsFactors = F) library(argpar...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/raster.R \name{as} \alias{as} \alias{coerce,stars,Raster-method} \alias{coerce,stars_proxy,Raster-method} \alias{coerce,stars,Terra-method} \alias{coerce,stars_proxy,Terra-method} \title{Coerce stars object into a Raster raster or brick} \arg...
/man/coerce-methods.Rd
permissive
r-spatial/stars
R
false
true
1,039
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/raster.R \name{as} \alias{as} \alias{coerce,stars,Raster-method} \alias{coerce,stars_proxy,Raster-method} \alias{coerce,stars,Terra-method} \alias{coerce,stars_proxy,Terra-method} \title{Coerce stars object into a Raster raster or brick} \arg...
ZeusTracker <- read.csv("~/Economics-of-Security/Data/ZeusTracker_20150915.csv") dates_zeus <- strftime(ZeusTracker$Dateadded, "%Y/%m") diff <- c(1,0,1,4,-2,-3,0,1,-1,0,2,-2,1,0,0,1,3,0,1,-2,9,0,-11,6,-4,3,5,12,-4,0,1,-4,9,-14,27,-22,17,-3,-2,-5,-3,3,38,11,0) dates_zeus <- unique(dates_zeus) print(dates_zeus) print(d...
/Code/relativedetectedpermonth.R
no_license
anirudh55/Economics-of-Security
R
false
false
480
r
ZeusTracker <- read.csv("~/Economics-of-Security/Data/ZeusTracker_20150915.csv") dates_zeus <- strftime(ZeusTracker$Dateadded, "%Y/%m") diff <- c(1,0,1,4,-2,-3,0,1,-1,0,2,-2,1,0,0,1,3,0,1,-2,9,0,-11,6,-4,3,5,12,-4,0,1,-4,9,-14,27,-22,17,-3,-2,-5,-3,3,38,11,0) dates_zeus <- unique(dates_zeus) print(dates_zeus) print(d...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/check_design.R \name{check_design} \alias{check_design} \title{Check Design Object} \usage{ check_design(design) } \arguments{ \item{design}{A design object created by \code{\link{declare_design}}.} } \description{ Check consistency in design...
/man/check_design.Rd
no_license
yadevi/DeclareDesign-1
R
false
true
331
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/check_design.R \name{check_design} \alias{check_design} \title{Check Design Object} \usage{ check_design(design) } \arguments{ \item{design}{A design object created by \code{\link{declare_design}}.} } \description{ Check consistency in design...
\name{SystematicRisk} \alias{SystematicRisk} \title{Systematic risk of the return distribution} \usage{ SystematicRisk(Ra, Rb, Rf = 0, scale = NA, ...) } \arguments{ \item{Ra}{an xts, vector, matrix, data frame, timeSeries or zoo object of asset returns} \item{Rb}{return vector of the benchmark asset} \item...
/man/SystematicRisk.Rd
no_license
sanjivkv/PerformanceAnalytics
R
false
false
1,507
rd
\name{SystematicRisk} \alias{SystematicRisk} \title{Systematic risk of the return distribution} \usage{ SystematicRisk(Ra, Rb, Rf = 0, scale = NA, ...) } \arguments{ \item{Ra}{an xts, vector, matrix, data frame, timeSeries or zoo object of asset returns} \item{Rb}{return vector of the benchmark asset} \item...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Utils.R \name{sspar} \alias{sspar} \title{sspar()} \usage{ sspar( mfrow = c(1, 1), plot.cex = 1, mai = c(0.55, 0.6, 0.1, 0.1), omi = c(0, 0, 0, 0) + 0.1, labs = TRUE ) } \arguments{ \item{mfrow}{determines plot frame set up} \item{...
/man/sspar.Rd
no_license
MOshima-PIFSC/ss3diags
R
false
true
512
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Utils.R \name{sspar} \alias{sspar} \title{sspar()} \usage{ sspar( mfrow = c(1, 1), plot.cex = 1, mai = c(0.55, 0.6, 0.1, 0.1), omi = c(0, 0, 0, 0) + 0.1, labs = TRUE ) } \arguments{ \item{mfrow}{determines plot frame set up} \item{...
testlist <- list(iK = -1728053248L) result <- do.call(eDMA:::PowerSet,testlist) str(result)
/eDMA/inst/testfiles/PowerSet/AFL_PowerSet/PowerSet_valgrind_files/1609869850-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
91
r
testlist <- list(iK = -1728053248L) result <- do.call(eDMA:::PowerSet,testlist) str(result)
/doc/wykresy.R
no_license
sokolowskip/wdwr
R
false
false
2,832
r
/Aplicação Cap 6.1.R
no_license
crisortiz92/greene_solutions
R
false
false
5,562
r
#' @importFrom dplyr all_of #' @importFrom dplyr pull #' @importFrom ggplot2 aes #' @importFrom ggplot2 coord_cartesian #' @importFrom ggplot2 facet_wrap #' @importFrom ggplot2 facet_grid #' @importFrom ggplot2 geom_col #' @importFrom ggplot2 geom_tile #' @importFrom ggplot2 geom_histogram #' @importFrom ggplot2 geom_l...
/R/plot_num.R
no_license
alastairrushworth/inspectdf
R
false
false
14,033
r
#' @importFrom dplyr all_of #' @importFrom dplyr pull #' @importFrom ggplot2 aes #' @importFrom ggplot2 coord_cartesian #' @importFrom ggplot2 facet_wrap #' @importFrom ggplot2 facet_grid #' @importFrom ggplot2 geom_col #' @importFrom ggplot2 geom_tile #' @importFrom ggplot2 geom_histogram #' @importFrom ggplot2 geom_l...
ssquare = function(x) { n = length(x) sum((x - mean(x))^2) / (n - 1) } ssquare.2 = function(x) { n = length(x) (sum(x^2) - n * mean(x)^2) / (n - 1) } set.seed(782) x = rnorm(10) x o = cbind(x, outer(x, 1:10, function(x, y) x + 10^y)) result = matrix(c(apply(o, 2, ssquare), apply(o, 2, ssq...
/782/lab/lab5.R
no_license
zzdxzhangzhi/Rprojects
R
false
false
882
r
ssquare = function(x) { n = length(x) sum((x - mean(x))^2) / (n - 1) } ssquare.2 = function(x) { n = length(x) (sum(x^2) - n * mean(x)^2) / (n - 1) } set.seed(782) x = rnorm(10) x o = cbind(x, outer(x, 1:10, function(x, y) x + 10^y)) result = matrix(c(apply(o, 2, ssquare), apply(o, 2, ssq...
#załadowanie bibliotek library(tm) library(hunspell) library(stringr) #zmiana katalogu roboczego #workDir <- "F:/KW/TextMining11S" workDir <- "C:\\Users\\Konrad\\Desktop\\TextMiningProject" setwd(workDir) #definicja katalogów funkcjonalnych inputDir <- ".\\data" outputDir <- ".\\results" scriptsDir <- ".\\scripts" wo...
/scripts/preprocessing.R
no_license
devKomak/TextMiningProject
R
false
false
2,609
r
#załadowanie bibliotek library(tm) library(hunspell) library(stringr) #zmiana katalogu roboczego #workDir <- "F:/KW/TextMining11S" workDir <- "C:\\Users\\Konrad\\Desktop\\TextMiningProject" setwd(workDir) #definicja katalogów funkcjonalnych inputDir <- ".\\data" outputDir <- ".\\results" scriptsDir <- ".\\scripts" wo...
rm(list=ls()) library("R.utils") library("bnlearn") ## SET UP >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ## >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> setwd("C:/Users/JP/Desktop/LAGT_data/experiments/test/") saved_networks = list() saved_parameters = list() str...
/experiments/test/GenerateStats.r
no_license
johnpaulguzman/LAGT_data
R
false
false
4,007
r
rm(list=ls()) library("R.utils") library("bnlearn") ## SET UP >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ## >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> setwd("C:/Users/JP/Desktop/LAGT_data/experiments/test/") saved_networks = list() saved_parameters = list() str...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/helper_functions.R \name{sync_table} \alias{sync_table} \title{Sync table} \usage{ sync_table(server_name, profile_id, access_token, data, form_name, label, uid, update = T, delete = F) } \arguments{ \item{server_name}{String of the iFormBu...
/man/sync_table.Rd
no_license
bdevoe/iformr
R
false
true
2,528
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/helper_functions.R \name{sync_table} \alias{sync_table} \title{Sync table} \usage{ sync_table(server_name, profile_id, access_token, data, form_name, label, uid, update = T, delete = F) } \arguments{ \item{server_name}{String of the iFormBu...
dataset = read.csv(file="testing_features.csv", head=TRUE, sep=",") summary(dataset) library(caret) library(rpart) # Test the tree load('decision.tree') predictedResult <- predict(m, dataset, type = "class") print (as.vector(predictedResult))
/Coursera/Practical-Predictive-Analytics/Model-and-Methods/kaggle/tree_predict.r
no_license
andrew-a-gusev/Learning
R
false
false
245
r
dataset = read.csv(file="testing_features.csv", head=TRUE, sep=",") summary(dataset) library(caret) library(rpart) # Test the tree load('decision.tree') predictedResult <- predict(m, dataset, type = "class") print (as.vector(predictedResult))
### Welcome to HPD's R Sessions. ### Created by: Ricardo Martínez Campos, Mayor's Office to Protect Tenants ### December 2019 ### Before starting the session, make sure that you: ### 1. Configured the Global Options ### 2. Created your R Project ### 3. Created your R File #########################...
/Session 2/Session 2V2.r
no_license
rb4075/HPD_R
R
false
false
10,940
r
### Welcome to HPD's R Sessions. ### Created by: Ricardo Martínez Campos, Mayor's Office to Protect Tenants ### December 2019 ### Before starting the session, make sure that you: ### 1. Configured the Global Options ### 2. Created your R Project ### 3. Created your R File #########################...
lty.test <- function (x = 0:10) { plot(c(0, 1), c(0, 1), type = "n") for (i in 1:length(x)) { the.x <- c(x.loc(0.1), x.loc(0.9)) the.y <- c(y.loc((i - 0.5)/length(x)), y.loc((i - 0.5)/length(x))) lines(the.x, the.y, lty = x[i]) text(x.loc(0.95), y.loc((i - 0.5)/length(x)), as.ch...
/R/lty.test.R
no_license
anhnguyendepocen/SMRD
R
false
false
343
r
lty.test <- function (x = 0:10) { plot(c(0, 1), c(0, 1), type = "n") for (i in 1:length(x)) { the.x <- c(x.loc(0.1), x.loc(0.9)) the.y <- c(y.loc((i - 0.5)/length(x)), y.loc((i - 0.5)/length(x))) lines(the.x, the.y, lty = x[i]) text(x.loc(0.95), y.loc((i - 0.5)/length(x)), as.ch...
#----------------------------------------------------------------------------------------------------# # INTRODUCTION TO R Part III #----------------------------------------------------------------------------------------------------# # # College of William & Mary, Department of Government # INSTRUCTOR: Jaime Set...
/SNaPP/Tutorial/Tutorial3.R
no_license
syntactician/R-Projects
R
false
false
23,021
r
#----------------------------------------------------------------------------------------------------# # INTRODUCTION TO R Part III #----------------------------------------------------------------------------------------------------# # # College of William & Mary, Department of Government # INSTRUCTOR: Jaime Set...
## Classes in MADSEQ Package ## 1. MadSeq object which contains result from model #' The MadSeq class #' #' An S4 class contains estimated result returned from \code{\link{runMadSeq}} #' function #' @slot posterior A \code{matrix} contains the posterior distribution #' from the selected model #' @slot deltaBIC A \code...
/R/AllClasses.R
no_license
gosuzombie/MADSEQ
R
false
false
1,764
r
## Classes in MADSEQ Package ## 1. MadSeq object which contains result from model #' The MadSeq class #' #' An S4 class contains estimated result returned from \code{\link{runMadSeq}} #' function #' @slot posterior A \code{matrix} contains the posterior distribution #' from the selected model #' @slot deltaBIC A \code...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/compute_objects.R \name{TargetSslProxiesSetSslCertificatesRequest} \alias{TargetSslProxiesSetSslCertificatesRequest} \title{TargetSslProxiesSetSslCertificatesRequest Object} \usage{ TargetSslProxiesSetSslCertificatesRequest(sslCertificates = ...
/googlecomputealpha.auto/man/TargetSslProxiesSetSslCertificatesRequest.Rd
permissive
Phippsy/autoGoogleAPI
R
false
true
789
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/compute_objects.R \name{TargetSslProxiesSetSslCertificatesRequest} \alias{TargetSslProxiesSetSslCertificatesRequest} \title{TargetSslProxiesSetSslCertificatesRequest Object} \usage{ TargetSslProxiesSetSslCertificatesRequest(sslCertificates = ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rox.R \name{heterochronous.gp.stat} \alias{heterochronous.gp.stat} \title{Sort out sampling times, coalescent times and sampling lineages from a phylogenetic tree} \usage{ heterochronous.gp.stat(phy) } \arguments{ \item{phy}{A phylogenetic tr...
/man/heterochronous.gp.stat.Rd
permissive
swine-flu-slola/GenieR
R
false
true
824
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rox.R \name{heterochronous.gp.stat} \alias{heterochronous.gp.stat} \title{Sort out sampling times, coalescent times and sampling lineages from a phylogenetic tree} \usage{ heterochronous.gp.stat(phy) } \arguments{ \item{phy}{A phylogenetic tr...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bmind_de.r \name{bMIND2} \alias{bMIND2} \title{The bMIND algorithm that considers Bayesian testing and covariates in the deconvolution model} \usage{ bMIND2( bulk, frac = NULL, sample_id = NULL, ncore = NULL, profile = NULL, covar...
/man/bMIND2.Rd
no_license
linanzhang/MIND
R
false
true
5,295
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bmind_de.r \name{bMIND2} \alias{bMIND2} \title{The bMIND algorithm that considers Bayesian testing and covariates in the deconvolution model} \usage{ bMIND2( bulk, frac = NULL, sample_id = NULL, ncore = NULL, profile = NULL, covar...
library("knitr") library("rgl") #knit("961-11-5.Rmd") #markdownToHTML('961-11-5.md', '961-11-5.html', options=c("use_xhml")) #system("pandoc -s 961-11-5.html -o 961-11-5.pdf") knit2html('961-11-5.Rmd')
/FDA_Pesticide_Glossary/961-11-5.R
permissive
andrewdefries/andrewdefries.github.io
R
false
false
204
r
library("knitr") library("rgl") #knit("961-11-5.Rmd") #markdownToHTML('961-11-5.md', '961-11-5.html', options=c("use_xhml")) #system("pandoc -s 961-11-5.html -o 961-11-5.pdf") knit2html('961-11-5.Rmd')
#Setup install.packages("seqinr",repos = "http://cran.csiro.au/") library(seqinr) install.packages("phangorn",repos = "http://cran.csiro.au/") library(phangorn)
/setup_libs.R
no_license
borevitzlab/GBSFilteR
R
false
false
161
r
#Setup install.packages("seqinr",repos = "http://cran.csiro.au/") library(seqinr) install.packages("phangorn",repos = "http://cran.csiro.au/") library(phangorn)
library(tm) library(tau) library(plyr) library(SnowballC) library(wordcloud) library(data.table) library(RColorBrewer) library(LiblineaR) library(Matrix) library(SparseM) library(text2vec) library(dplyr) library(tidyr) library(stringr) library(stringi) library(glmnet) library(caret) data_set <- read.csv("DATA/train.cs...
/data_preparation_script.R
no_license
Martin-Berger/Toxic_Comments_Classification
R
false
false
3,265
r
library(tm) library(tau) library(plyr) library(SnowballC) library(wordcloud) library(data.table) library(RColorBrewer) library(LiblineaR) library(Matrix) library(SparseM) library(text2vec) library(dplyr) library(tidyr) library(stringr) library(stringi) library(glmnet) library(caret) data_set <- read.csv("DATA/train.cs...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Parser_sphingoid_base.R \name{isolate_sphingoids} \alias{isolate_sphingoids} \title{Get all sphingoid bases This functions isolates all sphingoid bases from a given lipid shorthand notation and returns them as vector. upported modifications ...
/man/isolate_sphingoids.Rd
no_license
michaelwitting/lipidomicsUtils
R
false
true
1,074
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Parser_sphingoid_base.R \name{isolate_sphingoids} \alias{isolate_sphingoids} \title{Get all sphingoid bases This functions isolates all sphingoid bases from a given lipid shorthand notation and returns them as vector. upported modifications ...
GSEAEnrichment <- function(hostName,outputDirectory,projectName,geneRankList,geneSet,collapseMethod="mean",minNum=10,maxNum=500,sigMethod="fdr",fdrThr=0.05,topThr=10,perNum=1000,lNum=20,is.output=TRUE,keepGSEAFolder=FALSE){ GSEAJarFile <- list.files(path=outputDirectory,pattern="gsea.*\\.jar$") if(length(GSEAJarFile)...
/R/GSEAEnrichment.R
no_license
inambioinfo/WebGestaltR
R
false
false
8,987
r
GSEAEnrichment <- function(hostName,outputDirectory,projectName,geneRankList,geneSet,collapseMethod="mean",minNum=10,maxNum=500,sigMethod="fdr",fdrThr=0.05,topThr=10,perNum=1000,lNum=20,is.output=TRUE,keepGSEAFolder=FALSE){ GSEAJarFile <- list.files(path=outputDirectory,pattern="gsea.*\\.jar$") if(length(GSEAJarFile)...
# testing FMLA regressions to ensure R and Python produce same results. library(plyr) library(dplyr) library(survey) library("rjson") options(error=recover) source("0_master_execution_function.R") source("3_impute_functions.R") source("4_post_impute_functions.R") makelog <<- FALSE #d_fmla <- readRDS('R_dataframes/d_f...
/imputation experiments/FMLA_regression_test.R
no_license
Luke-Patterson/microsim_R
R
false
false
9,285
r
# testing FMLA regressions to ensure R and Python produce same results. library(plyr) library(dplyr) library(survey) library("rjson") options(error=recover) source("0_master_execution_function.R") source("3_impute_functions.R") source("4_post_impute_functions.R") makelog <<- FALSE #d_fmla <- readRDS('R_dataframes/d_f...
#Ryan Batt #23 April 2011 #What is POM made of? #Given POM, what is a consumer made of? #The purpose of this script is first calculate the constituent components of Ward POM from the summer of 2010. #Next, I will determine the composition of a consumer. #I begin with the simplifying assumption that POM is made of terre...
/oldScripts/Cons_Mixture_Ward2010&2012_v0.4.2.R
no_license
rBatt/DarkenedLake
R
false
false
41,109
r
#Ryan Batt #23 April 2011 #What is POM made of? #Given POM, what is a consumer made of? #The purpose of this script is first calculate the constituent components of Ward POM from the summer of 2010. #Next, I will determine the composition of a consumer. #I begin with the simplifying assumption that POM is made of terre...