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
# dist.default <- dist # dist <- function(x,...) UseMethod("dist") dist.speclib <- function( x, method="sam", ... ) { if (class(x)!="Speclib") stop("x must be of class 'Speclib'") if (method=="sam") { ...
/R/distance.R
no_license
arturochian/hsdar
R
false
false
3,148
r
# dist.default <- dist # dist <- function(x,...) UseMethod("dist") dist.speclib <- function( x, method="sam", ... ) { if (class(x)!="Speclib") stop("x must be of class 'Speclib'") if (method=="sam") { ...
#Import data from csv file hpc <- read.csv("D:/Coursera/Data Science Specialization/Exploratory Data Analysis/household_power_consumption.txt", sep=";") #Convert Date from Factor to Date hpc$Date <- format(hpc$Date) hpc$Date <- as.Date(hpc$Date, "%d/%m/%Y") #Create the subset with data for both dates hpcsubse...
/plot2.R
no_license
ragsmen/ExData_Plotting1
R
false
false
708
r
#Import data from csv file hpc <- read.csv("D:/Coursera/Data Science Specialization/Exploratory Data Analysis/household_power_consumption.txt", sep=";") #Convert Date from Factor to Date hpc$Date <- format(hpc$Date) hpc$Date <- as.Date(hpc$Date, "%d/%m/%Y") #Create the subset with data for both dates hpcsubse...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/randtest.R \name{plotCorr.randtest} \alias{plotCorr.randtest} \title{Correlation plot for randomization test results} \usage{ \method{plotCorr}{randtest}(obj, comp = NULL, main = NULL, xlab = expression(r^2), ylab = "Test statistic"...
/man/plotCorr.randtest.Rd
no_license
zeehio/mdatools
R
false
false
803
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/randtest.R \name{plotCorr.randtest} \alias{plotCorr.randtest} \title{Correlation plot for randomization test results} \usage{ \method{plotCorr}{randtest}(obj, comp = NULL, main = NULL, xlab = expression(r^2), ylab = "Test statistic"...
#' Rao-Blackwell Ledoit-Wolf Estimator #' #' Authors propose to estimate covariance matrix by minimizing mean squared error with the following formula, #' \deqn{\hat{\Sigma} = \rho \hat{F} + (1-\rho) \hat{S}} #' where \eqn{\rho \in (0,1)} a control parameter/weight, \eqn{\hat{S}} an empirical covariance matrix, and \eq...
/R/CovEst.2010RBLW.R
no_license
vishalbelsare/CovTools
R
false
false
3,296
r
#' Rao-Blackwell Ledoit-Wolf Estimator #' #' Authors propose to estimate covariance matrix by minimizing mean squared error with the following formula, #' \deqn{\hat{\Sigma} = \rho \hat{F} + (1-\rho) \hat{S}} #' where \eqn{\rho \in (0,1)} a control parameter/weight, \eqn{\hat{S}} an empirical covariance matrix, and \eq...
# DESCRIPTION: # This file defines some helper functions related to the Capital Bike Sharing # dataset, such as plotting "cnt" graphs and compute error measures. source("bike-imputation.R") # Define some helper functions to calculate errors # Compute RMSE compute.rmse <- function(pred, actual) { sqrt(mean((pred-ac...
/src/bike-helper.R
permissive
philparadis/final-report-bike-sharing
R
false
false
1,592
r
# DESCRIPTION: # This file defines some helper functions related to the Capital Bike Sharing # dataset, such as plotting "cnt" graphs and compute error measures. source("bike-imputation.R") # Define some helper functions to calculate errors # Compute RMSE compute.rmse <- function(pred, actual) { sqrt(mean((pred-ac...
library(dplyr) library(ggplot2) set.seed(10) # Functions ------------------------------------------------------------------- # Defines age categories that group corresponds to labels = c("(15-20]", "(20-25]", "(25-30]", "(30-35]", "(35-40]", "(40-45]", "(45-50]", "(50-55]", "(55-60]", "(60-65]", "(65-70]"...
/TheLancet_global_minimum_estimates_2021/R/DHS/mw_impute_fathers.R
permissive
ImperialCollegeLondon/covid19_orphans
R
false
false
9,525
r
library(dplyr) library(ggplot2) set.seed(10) # Functions ------------------------------------------------------------------- # Defines age categories that group corresponds to labels = c("(15-20]", "(20-25]", "(25-30]", "(30-35]", "(35-40]", "(40-45]", "(45-50]", "(50-55]", "(55-60]", "(60-65]", "(65-70]"...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/filtersels.R \name{filtersels} \alias{filtersels} \title{Subset selection data frames based on manually filtered image files} \usage{ filtersels(X, path = NULL, lspec = FALSE, img.suffix = NULL, it = "jpeg", incl.wav = TRUE, missing = FALSE,...
/man/filtersels.Rd
no_license
TheoreticalEcology/warbleR
R
false
true
3,807
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/filtersels.R \name{filtersels} \alias{filtersels} \title{Subset selection data frames based on manually filtered image files} \usage{ filtersels(X, path = NULL, lspec = FALSE, img.suffix = NULL, it = "jpeg", incl.wav = TRUE, missing = FALSE,...
#Libraries ------------------------------------------------------------------------------------------------------------------------------------------------------- library(data.table) library(ggplot2) library(scales) library(plyr) library(outliers) library(mvoutlier) #Input ---------------------------------------...
/2 Stage Least Squares/DynamicPricing_Graphs&Tests_AdvancePurchase_Code.R
no_license
cdavalos970/DynamicPricing
R
false
false
8,258
r
#Libraries ------------------------------------------------------------------------------------------------------------------------------------------------------- library(data.table) library(ggplot2) library(scales) library(plyr) library(outliers) library(mvoutlier) #Input ---------------------------------------...
# various useful functions... ## Make time stamp in standardized format. make_time_stamp <- function(time_stamp) { run_date <- gsub("-","_",Sys.time()) run_date <- gsub(":","_",run_date) run_date <- gsub(" ","_",run_date) if(time_stamp==FALSE) run_date <- 'scratch' return(run_date) } firstDay <- functio...
/helper_functions.R
no_license
jshosborne/pandemic_preparedness
R
false
false
12,354
r
# various useful functions... ## Make time stamp in standardized format. make_time_stamp <- function(time_stamp) { run_date <- gsub("-","_",Sys.time()) run_date <- gsub(":","_",run_date) run_date <- gsub(" ","_",run_date) if(time_stamp==FALSE) run_date <- 'scratch' return(run_date) } firstDay <- functio...
context("Creating jobs") test_that("R jobs can be created", { rjob <- job_r({1+1}) expect_s3_class(rjob, "job") expect_s3_class(rjob, "job_r") expect_identical(evaluate(rjob), 2) rjob <- job_r(function() 1+1) expect_s3_class(rjob, "job") expect_s3_class(rjob, "job_r") expect_identical(evaluate(rjob), ...
/tests/testthat/test_04_verification.R
permissive
vh-d/Rflow
R
false
false
997
r
context("Creating jobs") test_that("R jobs can be created", { rjob <- job_r({1+1}) expect_s3_class(rjob, "job") expect_s3_class(rjob, "job_r") expect_identical(evaluate(rjob), 2) rjob <- job_r(function() 1+1) expect_s3_class(rjob, "job") expect_s3_class(rjob, "job_r") expect_identical(evaluate(rjob), ...
# Plot function plotComparison <- function(x, ks, tocompareName, ntimes = 100, threshold = 800){ # Define times as x-labels for each k value times <- sapply(ks, function(k) { # Create labels and extract the relevant information op <- microbenchmark( New_PIKK = PIKKVF(x, k, threshold), ...
/ps4/plotPIKKVF.R
no_license
cpaismz89/stats243
R
false
false
4,099
r
# Plot function plotComparison <- function(x, ks, tocompareName, ntimes = 100, threshold = 800){ # Define times as x-labels for each k value times <- sapply(ks, function(k) { # Create labels and extract the relevant information op <- microbenchmark( New_PIKK = PIKKVF(x, k, threshold), ...
x <- seq(-3, 3, length = 300) y <- dnorm(x) plot(x, dnorm(x), type = 'l', axes = F, xlab = '', ylab = '') abline(h = 0) x <- seq(-1.5, 1.5, length = 100) y <- dnorm(x) polygon(c(-1.5, x, 1.5), c(0, y, 0), border = NA, col = 8) x <- seq(-3, -2, length = 100) y <- dnorm(x) polygon(c(-3, x, -2), c(0, y, 0), border = NA...
/code/fraud.R
permissive
gaolei786/gaolei786.github.com
R
false
false
440
r
x <- seq(-3, 3, length = 300) y <- dnorm(x) plot(x, dnorm(x), type = 'l', axes = F, xlab = '', ylab = '') abline(h = 0) x <- seq(-1.5, 1.5, length = 100) y <- dnorm(x) polygon(c(-1.5, x, 1.5), c(0, y, 0), border = NA, col = 8) x <- seq(-3, -2, length = 100) y <- dnorm(x) polygon(c(-3, x, -2), c(0, y, 0), border = NA...
\name{NetSelectivity} \alias{NetSelectivity} \title{Net selectivity of the return distribution} \usage{ NetSelectivity(Ra, Rb, Rf = 0, ...) } \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{Rf}{risk free...
/man/NetSelectivity.Rd
no_license
guillermozbta/portafolio-master
R
false
false
1,304
rd
\name{NetSelectivity} \alias{NetSelectivity} \title{Net selectivity of the return distribution} \usage{ NetSelectivity(Ra, Rb, Rf = 0, ...) } \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{Rf}{risk free...
########################################################################################## # # MMC Network & Acquisitions # # Create acquisition logit model covariates arrays # # @author sdowning.bm02g@nctu.edu.tw # # @export [list] cb # # # ## update founded_on,closed_on dates - Jin-Su's Email 2018-04-23 # ## C:\\U...
/R/acqlogit/acqlogit_qsub_2_3_node_collapse_absorb.R
no_license
sdownin/compnet
R
false
false
44,713
r
########################################################################################## # # MMC Network & Acquisitions # # Create acquisition logit model covariates arrays # # @author sdowning.bm02g@nctu.edu.tw # # @export [list] cb # # # ## update founded_on,closed_on dates - Jin-Su's Email 2018-04-23 # ## C:\\U...
% Generated by roxygen2 (4.0.1): do not edit by hand \name{i50} \alias{i50} \title{Calculate quantiles} \usage{ i50(x, ...) } \arguments{ \item{x}{XXX} \item{...}{additional stuff} } \description{ XXX }
/man/i50.Rd
no_license
einarhjorleifsson/fishvise
R
false
false
205
rd
% Generated by roxygen2 (4.0.1): do not edit by hand \name{i50} \alias{i50} \title{Calculate quantiles} \usage{ i50(x, ...) } \arguments{ \item{x}{XXX} \item{...}{additional stuff} } \description{ XXX }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/print_methods.R \name{print.cofad_mx} \alias{print.cofad_mx} \title{Output of a mixed design contrast analysis} \usage{ \method{print}{cofad_mx}(x, ...) } \arguments{ \item{x}{output of calc_contrast} \item{...}{further arguments} } \value{ ...
/man/print.cofad_mx.Rd
no_license
cran/cofad
R
false
true
507
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/print_methods.R \name{print.cofad_mx} \alias{print.cofad_mx} \title{Output of a mixed design contrast analysis} \usage{ \method{print}{cofad_mx}(x, ...) } \arguments{ \item{x}{output of calc_contrast} \item{...}{further arguments} } \value{ ...
\name{TPC} \alias{TPC} \title{True Postive Count} \usage{ TPC(thres, y, y.hat) } \arguments{ \item{y.hat}{numeric. risk between 0 and 1} \item{y}{status yes=1, no=0 or dead=1, alive=0} \item{thres}{thershold where to split. Must be in range of \code{y.hat}} } \value{ true positive count } \de...
/pkg/Atools/man/TPC.Rd
no_license
jhoefler/fitmixst4
R
false
false
417
rd
\name{TPC} \alias{TPC} \title{True Postive Count} \usage{ TPC(thres, y, y.hat) } \arguments{ \item{y.hat}{numeric. risk between 0 and 1} \item{y}{status yes=1, no=0 or dead=1, alive=0} \item{thres}{thershold where to split. Must be in range of \code{y.hat}} } \value{ true positive count } \de...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pm_plot.R \name{pmMultiBarplot} \alias{pmMultiBarplot} \title{Plot both mutation signatures and their mutational exposures from pmsignature output for more than two groups} \usage{ pmMultiBarplot( inputG, inputParam, sigOrder = NULL, ...
/man/pmMultiBarplot.Rd
no_license
USCbiostats/HiLDA
R
false
true
1,314
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pm_plot.R \name{pmMultiBarplot} \alias{pmMultiBarplot} \title{Plot both mutation signatures and their mutational exposures from pmsignature output for more than two groups} \usage{ pmMultiBarplot( inputG, inputParam, sigOrder = NULL, ...
library(readr) library(data.table) library(rgdal) library(ggplot2) library(ggthemes) library(scales) library(leaflet) library(sp) library(sf) setwd('C:/Development/travel-time-prediction/') read_results <- function(file) { results <- as.data.table(read_csv(file)) results$Error = results$LinkTravelTime - results$L...
/LSTM for travel time prediction/analysis.R
no_license
mg56648/crashdetection-twitterdata
R
false
false
5,662
r
library(readr) library(data.table) library(rgdal) library(ggplot2) library(ggthemes) library(scales) library(leaflet) library(sp) library(sf) setwd('C:/Development/travel-time-prediction/') read_results <- function(file) { results <- as.data.table(read_csv(file)) results$Error = results$LinkTravelTime - results$L...
#' Perform the computation; same as calling map without .f and lazy = F #' @param x a disk.frame #' @param name not used kept for compatibility with dplyr #' @export #' @importFrom dplyr compute #' @rdname map #' @examples #' cars.df = as.disk.frame(cars) #' cars.df2 = cars.df %>% map(~.x) #' # the computation is perf...
/R/compute.r
no_license
iqis/disk.frame
R
false
false
658
r
#' Perform the computation; same as calling map without .f and lazy = F #' @param x a disk.frame #' @param name not used kept for compatibility with dplyr #' @export #' @importFrom dplyr compute #' @rdname map #' @examples #' cars.df = as.disk.frame(cars) #' cars.df2 = cars.df %>% map(~.x) #' # the computation is perf...
# ucitavanje biblioteke i podataka library(e1071) slova <- read.csv('slova.csv') # podela skupa na dva dela x <- subset(slova, select = -slovo) y <- as.factor(slova$slovo) # izdvajanje obelezja od znacaja obelezje <- x$x_ivice N <- length(obelezje) # 20000 sr <- mean(obelezje) # 3.0461 vr <- var(obelezje)...
/R skriptovi/strworp.r
no_license
matfija/Uzorkovanje-slova
R
false
false
2,694
r
# ucitavanje biblioteke i podataka library(e1071) slova <- read.csv('slova.csv') # podela skupa na dva dela x <- subset(slova, select = -slovo) y <- as.factor(slova$slovo) # izdvajanje obelezja od znacaja obelezje <- x$x_ivice N <- length(obelezje) # 20000 sr <- mean(obelezje) # 3.0461 vr <- var(obelezje)...
#!/usr/bin/env Rscript library(dplyr) library(methods) library(R6) library(BaTFLED3D) # devtools::document() args <- commandArgs(TRUE) run_prefix <- args[1] # Functions ############################################################ # Function to load in data from runs loadData <- function(f, results){ #loads an RDa...
/not_in_pkg/summarize_final_cold.R
permissive
singletrips/BaTFLED3D
R
false
false
6,088
r
#!/usr/bin/env Rscript library(dplyr) library(methods) library(R6) library(BaTFLED3D) # devtools::document() args <- commandArgs(TRUE) run_prefix <- args[1] # Functions ############################################################ # Function to load in data from runs loadData <- function(f, results){ #loads an RDa...
library(ggplot2) # for plotting library(caret) # for modeling #' model_nz_pmnt #' #' @param data the data to fit to the non_zero_pmnt model #' @param devt development time to be modeled #' #' @imports caret #' #' @examples #' my_sample <- readRDS("../00-data/03-nzm/nzm-model-data.RDS") model_nz_pmnt <- function(da...
/03-nonzero-pmnt/nzm-02-model-simple.R
no_license
jimbrig/claim-pm
R
false
false
4,051
r
library(ggplot2) # for plotting library(caret) # for modeling #' model_nz_pmnt #' #' @param data the data to fit to the non_zero_pmnt model #' @param devt development time to be modeled #' #' @imports caret #' #' @examples #' my_sample <- readRDS("../00-data/03-nzm/nzm-model-data.RDS") model_nz_pmnt <- function(da...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/PLR_determination.R \name{plr_yoy_regression} \alias{plr_yoy_regression} \title{Year-on-Year Regression} \usage{ plr_yoy_regression( data, power_var, time_var, model, per_year = 12, return_PLR = TRUE ) } \arguments{...
/man/plr_yoy_regression.Rd
no_license
romainfrancois/PVplr
R
false
true
2,163
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/PLR_determination.R \name{plr_yoy_regression} \alias{plr_yoy_regression} \title{Year-on-Year Regression} \usage{ plr_yoy_regression( data, power_var, time_var, model, per_year = 12, return_PLR = TRUE ) } \arguments{...
% Please edit documentation in R/roxygen.R \name{split_filename} \alias{split_filename} \title{First line is title} \usage{ split_filename(x, ...) } \arguments{ \item{x}{explanation of \code{x}} \item{...}{explanation of \code{...}} } \value{ The value returned by this function. } \description{ This is a brief descrip...
/man/split_filename.Rd
no_license
geertaarts/habitat.model
R
false
false
638
rd
% Please edit documentation in R/roxygen.R \name{split_filename} \alias{split_filename} \title{First line is title} \usage{ split_filename(x, ...) } \arguments{ \item{x}{explanation of \code{x}} \item{...}{explanation of \code{...}} } \value{ The value returned by this function. } \description{ This is a brief descrip...
## app.R ## # setwd('/home/johan/public/shiny-server/sample-apps/') # shiny::runApp('dashboard') library(shinydashboard) uni_df <- readRDS('uni_df.rds') uni_df <<-uni_df # not sure why we need this ############# # WORLD MAP # ############# library(ggplot2) library(ggmap) # Sandhu's library(rsconnect) library(qua...
/server.r
no_license
arcnewuss/demo_dashboard
R
false
false
39,491
r
## app.R ## # setwd('/home/johan/public/shiny-server/sample-apps/') # shiny::runApp('dashboard') library(shinydashboard) uni_df <- readRDS('uni_df.rds') uni_df <<-uni_df # not sure why we need this ############# # WORLD MAP # ############# library(ggplot2) library(ggmap) # Sandhu's library(rsconnect) library(qua...
library(lcmm) ### Name: plot ### Title: Plot of a fitted model ### Aliases: plot plot.hlme plot.lcmm plot.multlcmm plot.Jointlcmm ### ** Examples ###################### fit, residuals and postprob # estimation of the model m<-lcmm(Y~Time*X1,mixture=~Time,random=~Time,classmb=~X2+X3, subject='ID',ng=2,data=data_...
/data/genthat_extracted_code/lcmm/examples/plot.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
3,967
r
library(lcmm) ### Name: plot ### Title: Plot of a fitted model ### Aliases: plot plot.hlme plot.lcmm plot.multlcmm plot.Jointlcmm ### ** Examples ###################### fit, residuals and postprob # estimation of the model m<-lcmm(Y~Time*X1,mixture=~Time,random=~Time,classmb=~X2+X3, subject='ID',ng=2,data=data_...
mutation_count = mutation_simulator(gene_number = 20000,window_number=100,feature_prob = 0.2,base_rate = 2e-6,sample_size = 314, p_risk = 1, effect_size = 1.5) head mutation_count = mutation_simulator_v2(gene_number = 500,window_number=1000,feature_prob = 0.2,base_rate = 2e-6,sample_size = 314, p_risk = 0.3, effect_si...
/lib/170124_temp.R
no_license
liu-genomics/ASD
R
false
false
4,817
r
mutation_count = mutation_simulator(gene_number = 20000,window_number=100,feature_prob = 0.2,base_rate = 2e-6,sample_size = 314, p_risk = 1, effect_size = 1.5) head mutation_count = mutation_simulator_v2(gene_number = 500,window_number=1000,feature_prob = 0.2,base_rate = 2e-6,sample_size = 314, p_risk = 0.3, effect_si...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/varPercent.R \name{varPercent} \alias{varPercent} \title{Calculate percent variance of eigenvalues for plot_shiny.mfpca()} \usage{ varPercent(level, plotObj) } \arguments{ \item{level}{numeric, 1 or 2 for levels 1 or 2, respectively, 12 to ca...
/man/varPercent.Rd
no_license
refunders/refund.shiny
R
false
true
819
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/varPercent.R \name{varPercent} \alias{varPercent} \title{Calculate percent variance of eigenvalues for plot_shiny.mfpca()} \usage{ varPercent(level, plotObj) } \arguments{ \item{level}{numeric, 1 or 2 for levels 1 or 2, respectively, 12 to ca...
library(tidyverse) library(latex2exp) library(gridExtra) setwd(dirname(rstudioapi::getActiveDocumentContext()$path)) dmse <- function(y, y.hat) -2*sum(y-y.hat) ddmse <- function(y, y.hat) 2*length(y) loss_gb_sum <- function(g,h,w) sum(g*w + 0.5*h*w^2) set.seed(12345) B <- 100000 n <- 1000 y <- rnorm(n) x <- sort(run...
/article-supplementary-material/lunde2020information/Chapter3/C3_F2_loss_split_profiling.R
permissive
Barardo/agtboost
R
false
false
4,361
r
library(tidyverse) library(latex2exp) library(gridExtra) setwd(dirname(rstudioapi::getActiveDocumentContext()$path)) dmse <- function(y, y.hat) -2*sum(y-y.hat) ddmse <- function(y, y.hat) 2*length(y) loss_gb_sum <- function(g,h,w) sum(g*w + 0.5*h*w^2) set.seed(12345) B <- 100000 n <- 1000 y <- rnorm(n) x <- sort(run...
###### Initialize the operating model ###### library(TMB) library(dplyr) library(reshape2) library(ggplot2) library(r4ss) source('load_files_OM.R') seedz <- 125 set.seed(seedz) assessment <- read.csv('data/assessment_MLE.csv') assessment <- assessment[assessment$year > 1965,] # Get the stock assessment output from SS3...
/Spatial MSE/runOM_condtion.R
no_license
kristinmarshall-NOAA/PacifichakeMSE
R
false
false
6,771
r
###### Initialize the operating model ###### library(TMB) library(dplyr) library(reshape2) library(ggplot2) library(r4ss) source('load_files_OM.R') seedz <- 125 set.seed(seedz) assessment <- read.csv('data/assessment_MLE.csv') assessment <- assessment[assessment$year > 1965,] # Get the stock assessment output from SS3...
\name{horizon} \alias{horizon} \title{Distance to the horizon} \description{ Empirical function to compute the distance to the horizon from a given altitude. The earth is assumed to be smooth, i.e. mountains and other obstacles are ignored. } \usage{ horizon(h, r=6378137) } \arguments{ \item{h}{...
/man/horizon.Rd
no_license
cran/geosphere
R
false
false
765
rd
\name{horizon} \alias{horizon} \title{Distance to the horizon} \description{ Empirical function to compute the distance to the horizon from a given altitude. The earth is assumed to be smooth, i.e. mountains and other obstacles are ignored. } \usage{ horizon(h, r=6378137) } \arguments{ \item{h}{...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/effect_size.R \name{effect_size} \alias{effect_size} \title{Calculate effect sizes in a model} \usage{ effect_size(model, formula, step = NULL, bootstrap = FALSE, to = step, data = NULL, at = NULL, ...) } \arguments{ \item{model}{the model ...
/man/effect_size.Rd
no_license
rpruim/statisticalModeling
R
false
true
2,335
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/effect_size.R \name{effect_size} \alias{effect_size} \title{Calculate effect sizes in a model} \usage{ effect_size(model, formula, step = NULL, bootstrap = FALSE, to = step, data = NULL, at = NULL, ...) } \arguments{ \item{model}{the model ...
#' Bin tables of environmental conditions in M and for occurrences from objects #' #' @description bin_tables helps in creating bin tables of environmental #' conditions in accessible areas (M) and species occurrence records #' (i.e., table of characters). This is done using results from previous #' analyses, and can b...
/R/bin_tables.R
no_license
marlonecobos/nichevol
R
false
false
6,552
r
#' Bin tables of environmental conditions in M and for occurrences from objects #' #' @description bin_tables helps in creating bin tables of environmental #' conditions in accessible areas (M) and species occurrence records #' (i.e., table of characters). This is done using results from previous #' analyses, and can b...
library(shiny) require(mangoTraining) require(ggplot2) # Define server logic required to generate and plot a random distribution shinyServer(function(input, output) { data <- reactive({ if(input$subsetCheck) demoData[demoData$Age <= input$subset, ] else demoData ...
/Example3/server.R
no_license
bip20/shinyChippenhamTechChatJune2013
R
false
false
2,214
r
library(shiny) require(mangoTraining) require(ggplot2) # Define server logic required to generate and plot a random distribution shinyServer(function(input, output) { data <- reactive({ if(input$subsetCheck) demoData[demoData$Age <= input$subset, ] else demoData ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rogerroot.R \name{rogerroot} \alias{rogerroot} \title{Roger Root Name Coding Procedure} \usage{ rogerroot(word, maxCodeLen = 5) } \arguments{ \item{word}{string or vector of strings to encode} \item{maxCodeLen}{maximum length of the resultin...
/man/rogerroot.Rd
no_license
ipea/phonics
R
false
true
1,174
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rogerroot.R \name{rogerroot} \alias{rogerroot} \title{Roger Root Name Coding Procedure} \usage{ rogerroot(word, maxCodeLen = 5) } \arguments{ \item{word}{string or vector of strings to encode} \item{maxCodeLen}{maximum length of the resultin...
# Define numbers of genes and samples nGenes = ncol(datExpr); nSamples = nrow(datExpr); # Recalculate MEs with color labels MEs0 = moduleEigengenes(datExpr, moduleColors)$eigengenes MEs = orderMEs(MEs0) moduleTraitCor = cor(MEs, datTraits, use = "p"); moduleTraitPvalue = corPvalueStudent(moduleTraitCor, nSamples); s...
/Lect10/WGCNA-10.R
no_license
suknamgoong1970/CBNU-Bioinformatics
R
false
false
1,064
r
# Define numbers of genes and samples nGenes = ncol(datExpr); nSamples = nrow(datExpr); # Recalculate MEs with color labels MEs0 = moduleEigengenes(datExpr, moduleColors)$eigengenes MEs = orderMEs(MEs0) moduleTraitCor = cor(MEs, datTraits, use = "p"); moduleTraitPvalue = corPvalueStudent(moduleTraitCor, nSamples); s...
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # INSTALL PACKAGES #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ install.packages(c("pROC", "mvabund", "randomForest", "caret", "e1071", "gbm", ...
/SCRIPTS/pipe/pkgs.r
no_license
davan690/SDM-comparison
R
false
false
1,068
r
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # INSTALL PACKAGES #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ install.packages(c("pROC", "mvabund", "randomForest", "caret", "e1071", "gbm", ...
source("readcsvs.R") complete <- function(directory, id = 1:332) { data <- readCSVs(directory, id) data <- t(sapply(data, function(x) c(x[1,4], sum(!is.na(x[,"sulfate"]) & !is.na(x[,"nitrate"]))))) colnames(data) <- c("id", "nobs") data...
/rprog/assignment1/complete.R
no_license
Sardtok/datasciencecoursera
R
false
false
334
r
source("readcsvs.R") complete <- function(directory, id = 1:332) { data <- readCSVs(directory, id) data <- t(sapply(data, function(x) c(x[1,4], sum(!is.na(x[,"sulfate"]) & !is.na(x[,"nitrate"]))))) colnames(data) <- c("id", "nobs") data...
##### Pacotes necessários ##### # manipulação dos dados library(dplyr) library(tidyr) # importação de dados library(readr) # mineração de dados library(arules) library(C50) library(e1071) #### Diretorios ##### dir_root <- getwd() dir_dados <- paste0(dir_root,"/DATA") dir_dados_pre_processados <- paste0(dir_dados,"/p...
/2_mineração_dados.R
no_license
aismaniotto/KDD_PROVA_BRASIL
R
false
false
7,304
r
##### Pacotes necessários ##### # manipulação dos dados library(dplyr) library(tidyr) # importação de dados library(readr) # mineração de dados library(arules) library(C50) library(e1071) #### Diretorios ##### dir_root <- getwd() dir_dados <- paste0(dir_root,"/DATA") dir_dados_pre_processados <- paste0(dir_dados,"/p...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pooled_cov.R \name{pooled_cov} \alias{pooled_cov} \title{Pooled Covariance Estimator} \usage{ pooled_cov(x, ..., covEst = stats::cov) } \arguments{ \item{x}{data as a \code{data.frame}, \code{grouped_df}, or \code{resample} objects} \item{.....
/man/pooled_cov.Rd
no_license
BenBarnard/covEstR
R
false
true
1,051
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pooled_cov.R \name{pooled_cov} \alias{pooled_cov} \title{Pooled Covariance Estimator} \usage{ pooled_cov(x, ..., covEst = stats::cov) } \arguments{ \item{x}{data as a \code{data.frame}, \code{grouped_df}, or \code{resample} objects} \item{.....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/8_mdtFunctions.R \name{Axn.mdt} \alias{Axn.mdt} \title{Multiple decrement life insurance} \usage{ Axn.mdt(object, x, n, i, decrement) } \arguments{ \item{object}{an \code{mdt} or \code{actuarialtable} object} \item{x}{policyholder's age} \i...
/man/multidecrins.Rd
permissive
spedygiorgio/lifecontingencies
R
false
true
843
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/8_mdtFunctions.R \name{Axn.mdt} \alias{Axn.mdt} \title{Multiple decrement life insurance} \usage{ Axn.mdt(object, x, n, i, decrement) } \arguments{ \item{object}{an \code{mdt} or \code{actuarialtable} object} \item{x}{policyholder's age} \i...
library(EML) ### Name: is_standardUnit ### Title: is_standardUnit ### Aliases: is_standardUnit ### ** Examples is_standardUnit("amperePerMeter") # TRUE is_standardUnit("speciesPerSquareMeter") # FALSE
/data/genthat_extracted_code/EML/examples/is_standardUnit.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
208
r
library(EML) ### Name: is_standardUnit ### Title: is_standardUnit ### Aliases: is_standardUnit ### ** Examples is_standardUnit("amperePerMeter") # TRUE is_standardUnit("speciesPerSquareMeter") # FALSE
#=====TarotreadR App=====# #Library Load-in. library(shiny) library(shinythemes) library(shiny) library(shinyjs) library(shinyanimate) library(tableHTML) #Loading the cards/data into the environment. source(here::here("scripts","tarot_process.R")) #Defining the UI for the TarotreadR==== ui <- fluidPage(title ="Ta...
/app.R
no_license
Meghansaha/TarotreadR
R
false
false
21,684
r
#=====TarotreadR App=====# #Library Load-in. library(shiny) library(shinythemes) library(shiny) library(shinyjs) library(shinyanimate) library(tableHTML) #Loading the cards/data into the environment. source(here::here("scripts","tarot_process.R")) #Defining the UI for the TarotreadR==== ui <- fluidPage(title ="Ta...
source('FinModels.R') source('FundVariables.R') # Load Data --------------------------------------------------------------------------------------------------------- LoadFundData <- function(stockCodes) { prefix = "http://finance.yahoo.com/d/quotes.csv?s=" varfix = "&f=" url = prefix for(i in 1:lengt...
/Finance/Fundamental.R
no_license
miltonluaces/data_science_in_R
R
false
false
742
r
source('FinModels.R') source('FundVariables.R') # Load Data --------------------------------------------------------------------------------------------------------- LoadFundData <- function(stockCodes) { prefix = "http://finance.yahoo.com/d/quotes.csv?s=" varfix = "&f=" url = prefix for(i in 1:lengt...
library(ape) testtree <- read.tree("9268_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="9268_0_unrooted.txt")
/codeml_files/newick_trees_processed/9268_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("9268_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="9268_0_unrooted.txt")
\name{mk_codons.R} \alias{mk_codons.R} \title{ function to separate DNA sequences to codons } \description{ The function transform a DNA sequence to a series of codons. } \usage{ mk_codons.R(dna) } \arguments{ \item{dna}{ input your dna sequence } } \details{ %% ~~ If necessary, more details than the description ab...
/man/mk_codons.Rd
permissive
rforbiodatascience21/2021_group_5_rpackage
R
false
false
1,080
rd
\name{mk_codons.R} \alias{mk_codons.R} \title{ function to separate DNA sequences to codons } \description{ The function transform a DNA sequence to a series of codons. } \usage{ mk_codons.R(dna) } \arguments{ \item{dna}{ input your dna sequence } } \details{ %% ~~ If necessary, more details than the description ab...
# first we need to read and clean up the data a little # this inclues altering the structure of data matrix that SAS returns # since every probability is a response, each player for each hole, year, and round # has six probabilities. We need each row to contain all six probs for each hole, # round and year. Going t...
/R/obsolete/model6WITH.R
no_license
codyfrisby/masters
R
false
false
31,896
r
# first we need to read and clean up the data a little # this inclues altering the structure of data matrix that SAS returns # since every probability is a response, each player for each hole, year, and round # has six probabilities. We need each row to contain all six probs for each hole, # round and year. Going t...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/impl-idf.R \name{assign_idf_value_default} \alias{assign_idf_value_default} \title{Assign default field values} \usage{ assign_idf_value_default(idd_env, idf_env, dt_value) } \arguments{ \item{idd_env}{An environment or list contains IDD tabl...
/man/assign_idf_value_default.Rd
permissive
hongyuanjia/eplusr
R
false
true
739
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/impl-idf.R \name{assign_idf_value_default} \alias{assign_idf_value_default} \title{Assign default field values} \usage{ assign_idf_value_default(idd_env, idf_env, dt_value) } \arguments{ \item{idd_env}{An environment or list contains IDD tabl...
/ElasticNet예제.R
no_license
Eeun-ju/DataAnalysis-Basic
R
false
false
813
r
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/compare.R \name{frob} \alias{frob} \title{A function to} \usage{ frob(CS, NS) } \value{ val } \description{ A function to }
/man/frob.Rd
no_license
sahatava/MicNet
R
false
true
202
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/compare.R \name{frob} \alias{frob} \title{A function to} \usage{ frob(CS, NS) } \value{ val } \description{ A function to }
library(NLP) library(tm) library(RColorBrewer) library(wordcloud) library(memoise) library(tibble) library(data.table) library(NLP) library(tm) library(jiebaRD) library(jiebaR) library(magrittr) library(RColorBrewer) library(wordcloud) news_data = read.csv("all_news.csv", sep = "") # Using "memoise" to automatically...
/Final_Project/Wordcloud/wordcloud_all_news-shiny/get_freq_function.R
no_license
Suuuuny/NTU-CSX-DataScience-group5
R
false
false
4,207
r
library(NLP) library(tm) library(RColorBrewer) library(wordcloud) library(memoise) library(tibble) library(data.table) library(NLP) library(tm) library(jiebaRD) library(jiebaR) library(magrittr) library(RColorBrewer) library(wordcloud) news_data = read.csv("all_news.csv", sep = "") # Using "memoise" to automatically...
x = 1;x if(x==2){print("x=2")};x if(x>=0){x="A"}else{x="B"};x for(i in 1:5){print (i)} for(i in letters[1:5]){print(i)} a=numeric(20) for(i in 1:20) {a[i]=i} a letters [1:26] exp(10) log10(2) a=1:3 b=2:4 c(a,b) c(1,a) array(1,3) seq(1:5) seq(from=1, to=3,lenght.out = 4) AA = letters[1:3];AA K...
/DMC(1).R
no_license
evamarella48/DMC-SCC
R
false
false
961
r
x = 1;x if(x==2){print("x=2")};x if(x>=0){x="A"}else{x="B"};x for(i in 1:5){print (i)} for(i in letters[1:5]){print(i)} a=numeric(20) for(i in 1:20) {a[i]=i} a letters [1:26] exp(10) log10(2) a=1:3 b=2:4 c(a,b) c(1,a) array(1,3) seq(1:5) seq(from=1, to=3,lenght.out = 4) AA = letters[1:3];AA K...
library(ropensecretsapi) ### Name: SetAPIKey ### Title: Allows the user to set the OpenSecrets.org API key once thereby ### removing the need to pass it in for each function call in this ### package. ### Aliases: SetAPIKey ### ** Examples SetAPIKey ("Example API Key")
/data/genthat_extracted_code/ropensecretsapi/examples/SetAPIKey.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
280
r
library(ropensecretsapi) ### Name: SetAPIKey ### Title: Allows the user to set the OpenSecrets.org API key once thereby ### removing the need to pass it in for each function call in this ### package. ### Aliases: SetAPIKey ### ** Examples SetAPIKey ("Example API Key")
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/healthlake_operations.R \name{healthlake_start_fhir_import_job} \alias{healthlake_start_fhir_import_job} \title{Begins a FHIR Import job} \usage{ healthlake_start_fhir_import_job( JobName = NULL, InputDataConfig, JobOutputDataConfig, ...
/cran/paws.analytics/man/healthlake_start_fhir_import_job.Rd
permissive
paws-r/paws
R
false
true
1,059
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/healthlake_operations.R \name{healthlake_start_fhir_import_job} \alias{healthlake_start_fhir_import_job} \title{Begins a FHIR Import job} \usage{ healthlake_start_fhir_import_job( JobName = NULL, InputDataConfig, JobOutputDataConfig, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mllaplace.R \name{mllaplace} \alias{mllaplace} \title{Laplace distribution maximum likelihood estimation} \usage{ mllaplace(x, na.rm = FALSE) } \arguments{ \item{x}{a (non-empty) numeric vector of data values.} \item{na.rm}{logical. Should m...
/man/mllaplace.Rd
permissive
vbaliga/univariateML
R
false
true
1,436
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mllaplace.R \name{mllaplace} \alias{mllaplace} \title{Laplace distribution maximum likelihood estimation} \usage{ mllaplace(x, na.rm = FALSE) } \arguments{ \item{x}{a (non-empty) numeric vector of data values.} \item{na.rm}{logical. Should m...
# library ------------------------------------------------------------------ library(tidyverse) library(broom) library(magrittr) library(MuMIn) library(ape) library(nlme) library(car) library(rgdal) library(lmtest) library(gvlma) rm(list = ls()) # data ------------------------------------...
/Rscripts/3. modelling species richness/step 5 - Aus models.R
no_license
khemming/NZ
R
false
false
7,501
r
# library ------------------------------------------------------------------ library(tidyverse) library(broom) library(magrittr) library(MuMIn) library(ape) library(nlme) library(car) library(rgdal) library(lmtest) library(gvlma) rm(list = ls()) # data ------------------------------------...
library(plyr) library(Pusto) rm(list=ls()) source("SSTP.R") #----------------------------- # Data-generating model #----------------------------- estimate_model <- function(Y, X, B) { n <- nrow(X) p <- ncol(X) M <- solve(t(X) %*% X) X_M <- X %*% M coefs <- colSums(Y * X_M) e <- Y - as.vector(X %*% coef...
/Backup/runKCrep.R
no_license
meghapsimatrix/HetRobust
R
false
false
3,850
r
library(plyr) library(Pusto) rm(list=ls()) source("SSTP.R") #----------------------------- # Data-generating model #----------------------------- estimate_model <- function(Y, X, B) { n <- nrow(X) p <- ncol(X) M <- solve(t(X) %*% X) X_M <- X %*% M coefs <- colSums(Y * X_M) e <- Y - as.vector(X %*% coef...
## ----setup, include=FALSE-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- knitr::opts_chunk$set(echo = TRUE, message=F, warning=F, fig.width=9.475, fig.height=5) ##...
/r/kernels/alejandrorivas-titanic-beginners-principiantes-espa-ol/script/titanic-beginners-principiantes-espa-ol.R
no_license
helenaK/trustworthy-titanic
R
false
false
28,445
r
## ----setup, include=FALSE-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- knitr::opts_chunk$set(echo = TRUE, message=F, warning=F, fig.width=9.475, fig.height=5) ##...
#' R Shiny application to simulate clinical trials with restricted randomization #' @export restricted_app <- function() { appDir <- system.file("shiny-apps", "unequal-allocation", package = "restricted") if (appDir == "") { stop("Could not find example directory. Try re-installing `restricted`.", call. = FALS...
/R/restricted-app.R
no_license
yevgenryeznik/restricted
R
false
false
379
r
#' R Shiny application to simulate clinical trials with restricted randomization #' @export restricted_app <- function() { appDir <- system.file("shiny-apps", "unequal-allocation", package = "restricted") if (appDir == "") { stop("Could not find example directory. Try re-installing `restricted`.", call. = FALS...
#' @title Get predictions from resample results. #' #' @description #' Very simple getter. #' #' @param res [\code{ResampleResult}]\cr #' The result of \code{\link{resample}} run with \code{keep.pred = TRUE}. #' @return [\code{ResamplePrediction}]. #' @export #' @family resample getRRPredictions = function(res) { i...
/R/ResampleResult_operators.R
no_license
HeidiSeibold/mlr
R
false
false
5,287
r
#' @title Get predictions from resample results. #' #' @description #' Very simple getter. #' #' @param res [\code{ResampleResult}]\cr #' The result of \code{\link{resample}} run with \code{keep.pred = TRUE}. #' @return [\code{ResamplePrediction}]. #' @export #' @family resample getRRPredictions = function(res) { i...
ui <- fluidPage( h1("Gapminder"), sliderInput(inputId = "life", label = "Life expectancy", min = 0, max = 120, value = c(30, 50)), selectInput("continent", "Continent", choices = c("All", levels(gapminder$continent))), downloadButton("download_data"), ...
/shiny/Make the table interactive.R
no_license
jyeazell/DataCamp_practice
R
false
false
1,398
r
ui <- fluidPage( h1("Gapminder"), sliderInput(inputId = "life", label = "Life expectancy", min = 0, max = 120, value = c(30, 50)), selectInput("continent", "Continent", choices = c("All", levels(gapminder$continent))), downloadButton("download_data"), ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_token.R \name{get_token} \alias{get_token} \title{Generate access token} \usage{ get_token(base_url, client_id, client_secret, redirect_url, code) } \arguments{ \item{base_url}{A url. [The base URL of your Zoho Account](https://accounts.z...
/man/get_token.Rd
no_license
araupontones/zohor
R
false
true
1,951
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_token.R \name{get_token} \alias{get_token} \title{Generate access token} \usage{ get_token(base_url, client_id, client_secret, redirect_url, code) } \arguments{ \item{base_url}{A url. [The base URL of your Zoho Account](https://accounts.z...
# Multiple Linear Regression, unique intercepts and slopes # * Multiple Linear regression is the backbone of modern statistics # * incorporate multiple explanatory variables, such that the number of estimated parmaters #is less than the sample size. # * For now only one categorical and one numerical explanatory variabl...
/notes/intro-multiple-linear-regression.R
no_license
Niyy/math314-notes
R
false
false
2,502
r
# Multiple Linear Regression, unique intercepts and slopes # * Multiple Linear regression is the backbone of modern statistics # * incorporate multiple explanatory variables, such that the number of estimated parmaters #is less than the sample size. # * For now only one categorical and one numerical explanatory variabl...
library(rhoR) ### Name: kappa ### Title: Calculate kappa ### Aliases: kappa ### Keywords: kappa ### ** Examples #Given a code set kappa(data = codeSet) #Given a contingency Table kappa(data = contingencyTable)
/data/genthat_extracted_code/rhoR/examples/kappa.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
219
r
library(rhoR) ### Name: kappa ### Title: Calculate kappa ### Aliases: kappa ### Keywords: kappa ### ** Examples #Given a code set kappa(data = codeSet) #Given a contingency Table kappa(data = contingencyTable)
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/visNDVI.R \name{visNDVI} \alias{visNDVI} \title{Visulize point coordinates with one NDVI map} \usage{ visNDVI(yrs, wks, lonlim, latlim, lns = T) } \arguments{ \item{yrs}{vector c() or sequence seq() of years do be visualized}...
/man/visNDVI.Rd
no_license
tavimalara/rndvi
R
false
false
665
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/visNDVI.R \name{visNDVI} \alias{visNDVI} \title{Visulize point coordinates with one NDVI map} \usage{ visNDVI(yrs, wks, lonlim, latlim, lns = T) } \arguments{ \item{yrs}{vector c() or sequence seq() of years do be visualized}...
#' @keywords internal queue <- function() { self <- new.env(parent = emptyenv()) self$front <- new.env(parent = emptyenv()) self$rear <- new.env(parent = emptyenv()) self$enqueue <- function(value) { temp_node <- new.env(parent = emptyenv()) temp_node$value <- value temp_node$next_element <- NULL ...
/R/map.R
no_license
travisbyrum/clinkr
R
false
false
2,219
r
#' @keywords internal queue <- function() { self <- new.env(parent = emptyenv()) self$front <- new.env(parent = emptyenv()) self$rear <- new.env(parent = emptyenv()) self$enqueue <- function(value) { temp_node <- new.env(parent = emptyenv()) temp_node$value <- value temp_node$next_element <- NULL ...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/30_admm_lasso.R \name{admm_lasso} \alias{admm_lasso} \title{Fitting A Lasso Model Using ADMM Algorithm} \usage{ admm_lasso(x, y, intercept = TRUE, standardize = TRUE, ...) } \arguments{ \item{x}{The data matrix} \item{y}{The response...
/man/admm_lasso.Rd
no_license
joegaotao/ADMM
R
false
false
6,767
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/30_admm_lasso.R \name{admm_lasso} \alias{admm_lasso} \title{Fitting A Lasso Model Using ADMM Algorithm} \usage{ admm_lasso(x, y, intercept = TRUE, standardize = TRUE, ...) } \arguments{ \item{x}{The data matrix} \item{y}{The response...
plot.ellipsefit<-function(a,putNumber=FALSE,values=NULL,xlim=NULL,ylim=NULL,main=NULL,newPred=TRUE,show=NULL,...) { if (newPred==TRUE) { ti <- (1:101)*pi/50 newX <- a$values["b.x"]*cos(ti)+a$values["cx"] newY <- a$values["b.y"]*cos(ti)+a$values["retention"]*sin(ti)+a$values["cy"] } else { newY <- a$pred.y newY[le...
/R/plot.ellipsefit.R
no_license
spencerm89/hysteresis3
R
false
false
5,989
r
plot.ellipsefit<-function(a,putNumber=FALSE,values=NULL,xlim=NULL,ylim=NULL,main=NULL,newPred=TRUE,show=NULL,...) { if (newPred==TRUE) { ti <- (1:101)*pi/50 newX <- a$values["b.x"]*cos(ti)+a$values["cx"] newY <- a$values["b.y"]*cos(ti)+a$values["retention"]*sin(ti)+a$values["cy"] } else { newY <- a$pred.y newY[le...
testlist <- list(type = 0L, z = 2.99939362779157e-241) result <- do.call(esreg::G1_fun,testlist) str(result)
/esreg/inst/testfiles/G1_fun/libFuzzer_G1_fun/G1_fun_valgrind_files/1609894421-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
108
r
testlist <- list(type = 0L, z = 2.99939362779157e-241) result <- do.call(esreg::G1_fun,testlist) str(result)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/circuits.R \name{FindAllCircuits} \alias{FindAllCircuits} \title{Find all circuits in a multi-timepoint longitudinal dataset} \usage{ FindAllCircuits( seu, nnr, ranked_genes = NULL, all.tps = NULL, subsample = F, subsample.n = 1e+...
/man/FindAllCircuits.Rd
permissive
BlishLab/scriabin
R
false
true
1,107
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/circuits.R \name{FindAllCircuits} \alias{FindAllCircuits} \title{Find all circuits in a multi-timepoint longitudinal dataset} \usage{ FindAllCircuits( seu, nnr, ranked_genes = NULL, all.tps = NULL, subsample = F, subsample.n = 1e+...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mica.taxonomies.R \name{mica.vocabularies} \alias{mica.vocabularies} \title{Get the vocabularies} \usage{ mica.vocabularies( mica, query = NULL, locale = "en", target = "variable", taxonomies = NULL, df = TRUE ) } \arguments{ \ite...
/man/mica.vocabularies.Rd
no_license
obiba/micar
R
false
true
1,063
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mica.taxonomies.R \name{mica.vocabularies} \alias{mica.vocabularies} \title{Get the vocabularies} \usage{ mica.vocabularies( mica, query = NULL, locale = "en", target = "variable", taxonomies = NULL, df = TRUE ) } \arguments{ \ite...
NEI <- readRDS("summarySCC_PM25.rds") EmissionMean<-with(NEI, tapply(Emissions, year, sum, na.rm=T)) EmissionMean<-EmissionMean/1000000 year<-c(1999, 2002, 2005, 2008) png("Plot1.png") plot(year, EmissionMean, type = 'l', ylab="Total Emission (Millions of Tones)") title(main="Total emission in United States from 1999 t...
/Exploratory Data Analysis/week4/Plot1.R
no_license
Nazlibk/coursera
R
false
false
329
r
NEI <- readRDS("summarySCC_PM25.rds") EmissionMean<-with(NEI, tapply(Emissions, year, sum, na.rm=T)) EmissionMean<-EmissionMean/1000000 year<-c(1999, 2002, 2005, 2008) png("Plot1.png") plot(year, EmissionMean, type = 'l', ylab="Total Emission (Millions of Tones)") title(main="Total emission in United States from 1999 t...
library(futile.matrix) ### Name: futile.matrix-package ### Title: A collection of matrix manipulation functions ### Aliases: futile.matrix futile.matrix-package ### Keywords: attribute logic package ### ** Examples # Generate a random ensemble m <- rmatrix(WishartModel(100,400)) # Select sub-matrices library(datas...
/data/genthat_extracted_code/futile.matrix/examples/futile.matrix-package.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
558
r
library(futile.matrix) ### Name: futile.matrix-package ### Title: A collection of matrix manipulation functions ### Aliases: futile.matrix futile.matrix-package ### Keywords: attribute logic package ### ** Examples # Generate a random ensemble m <- rmatrix(WishartModel(100,400)) # Select sub-matrices library(datas...
d = read.table("all_bffiles", as.is = T) npheno = nrow(d) npair = npheno*(npheno-1)/2 toreturn = data.frame(matrix(nrow = npair, ncol = 10)) index = 1 for (i in 1:(npheno-1)){ p1 = d[i,1] for (j in (i+1):(npheno)){ print(paste(i, j)) p2 = d[j,1] print(paste(p1, p2)) toreturn[index,1] = p1 toreturn[index...
/MRMR/scripts/1_get_all_rho.R
no_license
RezaJF/gwas-pw-paper
R
false
false
2,182
r
d = read.table("all_bffiles", as.is = T) npheno = nrow(d) npair = npheno*(npheno-1)/2 toreturn = data.frame(matrix(nrow = npair, ncol = 10)) index = 1 for (i in 1:(npheno-1)){ p1 = d[i,1] for (j in (i+1):(npheno)){ print(paste(i, j)) p2 = d[j,1] print(paste(p1, p2)) toreturn[index,1] = p1 toreturn[index...
#' Basic correlation plot function for normalized or unnormalized counts. #' #' This function plots a heatmap of the "n" features with greatest variance #' across rows. #' #' #' @param obj A MRexperiment object with count data. #' @param n The number of features to plot. This chooses the "n" features with greatest v...
/R/plotCorr.R
no_license
HCBravoLab/metagenomeSeq
R
false
false
1,348
r
#' Basic correlation plot function for normalized or unnormalized counts. #' #' This function plots a heatmap of the "n" features with greatest variance #' across rows. #' #' #' @param obj A MRexperiment object with count data. #' @param n The number of features to plot. This chooses the "n" features with greatest v...
mcmc_sampler.mfbvar_minn_csv <- function(x, ...){ n_vars <- ncol(x$Y) if (!(!is.null(x$Y) && !is.null(x$n_lags) && !is.null(x$n_burnin) && !is.null(x$n_reps))) { test_all <- sapply(x, is.null) test_sub <- test_all[c("Y", "n_lags", "n_burnin", "n_reps")] stop("Missing elements: ", paste(names(test_sub)[w...
/R/mcmc_sampler_csv.R
no_license
mmkuang/mfbvar
R
false
false
25,536
r
mcmc_sampler.mfbvar_minn_csv <- function(x, ...){ n_vars <- ncol(x$Y) if (!(!is.null(x$Y) && !is.null(x$n_lags) && !is.null(x$n_burnin) && !is.null(x$n_reps))) { test_all <- sapply(x, is.null) test_sub <- test_all[c("Y", "n_lags", "n_burnin", "n_reps")] stop("Missing elements: ", paste(names(test_sub)[w...
# Clear workspace rm(list = ls()) # Setup ################################################################################ # Packages library(sf) library(raster) library(tidyverse) library(lubridate) library(grid) library(gridExtra) # Directories preddir <- "output/model_preds" plotdir <- "figures" # Study species...
/code/figures/Fig7_contamination_time_series.R
no_license
cfree14/domoic_acid
R
false
false
6,206
r
# Clear workspace rm(list = ls()) # Setup ################################################################################ # Packages library(sf) library(raster) library(tidyverse) library(lubridate) library(grid) library(gridExtra) # Directories preddir <- "output/model_preds" plotdir <- "figures" # Study species...
library(data.table) X=as.matrix(fread("data.csv")) ns=nrow(X) ###outlier removal library(outliers) Y=rm.outlier(X) while(is.null(nrow(Y))==0 && nrow(Y)<ns){ X=Y ns=nrow(X) Y=rm.outlier(X,fill=TRUE) } ###print(X) X=rbind(X[,1:13],X[,14:26],X[,27:39]) ###pca biplots library(pcaMethods) res=pca(X, method="bp...
/stat.R
permissive
wuchenxi/stat
R
false
false
1,885
r
library(data.table) X=as.matrix(fread("data.csv")) ns=nrow(X) ###outlier removal library(outliers) Y=rm.outlier(X) while(is.null(nrow(Y))==0 && nrow(Y)<ns){ X=Y ns=nrow(X) Y=rm.outlier(X,fill=TRUE) } ###print(X) X=rbind(X[,1:13],X[,14:26],X[,27:39]) ###pca biplots library(pcaMethods) res=pca(X, method="bp...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/adjusted_roc_curve.R \name{adjusted_roc_curve} \alias{adjusted_roc_curve} \title{Obtain an adjusted ROC curve from rocdata} \usage{ adjusted_roc_curve( rocdata = NULL, coef = NULL, test_grouped_dat = NULL, Xprotein_test = NULL, orde...
/man/adjusted_roc_curve.Rd
no_license
mhu48/pudms
R
false
true
1,192
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/adjusted_roc_curve.R \name{adjusted_roc_curve} \alias{adjusted_roc_curve} \title{Obtain an adjusted ROC curve from rocdata} \usage{ adjusted_roc_curve( rocdata = NULL, coef = NULL, test_grouped_dat = NULL, Xprotein_test = NULL, orde...
library(lda) library(ggplot2) library(reshape2) library(tm) library(SnowballC) library(RMySQL) library(stringr) drv=dbDriver("MySQL") con=dbConnect(drv,dbname='bug_report',user='root') stat="select Bugzilla_severity.report_id,Bugzilla_severity.timestamp,Bugzilla_severity.what as 'severity',Bugzilla_desc.what as 'desc' ...
/topicrreassign.R
no_license
suparna-ghanvatkar/bug_lda
R
false
false
2,947
r
library(lda) library(ggplot2) library(reshape2) library(tm) library(SnowballC) library(RMySQL) library(stringr) drv=dbDriver("MySQL") con=dbConnect(drv,dbname='bug_report',user='root') stat="select Bugzilla_severity.report_id,Bugzilla_severity.timestamp,Bugzilla_severity.what as 'severity',Bugzilla_desc.what as 'desc' ...
library(micar) ### Name: mica.dar.form ### Title: Get the data access request form ### Aliases: mica.dar.form ### ** Examples ## Not run: ##D m <- mica.login("someuser", "somepassword", "https://mica-demo.obiba.org") ##D mica.dar.form(m) ##D mica.logout(m) ## End(Not run)
/data/genthat_extracted_code/micar/examples/mica.dar.form.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
281
r
library(micar) ### Name: mica.dar.form ### Title: Get the data access request form ### Aliases: mica.dar.form ### ** Examples ## Not run: ##D m <- mica.login("someuser", "somepassword", "https://mica-demo.obiba.org") ##D mica.dar.form(m) ##D mica.logout(m) ## End(Not run)
indsF <- function(m, fct, fctterm){ # add assign-like info to fctterm: # which penalization/ranef groups and coefficients (fixed/random) belong to which function # also include info on global intercept and by-level intercepts ranefinds <- lme4:::reinds(m@Gp) indIntercept <- ifelse("(Intercept)" %in% names(...
/.roxygen/RegularBayes/Workspace/amer/amer/R.roxygen/RegularBayes/Workspace/amer/amer/R/indsF.R
no_license
cran/amer
R
false
false
2,777
r
indsF <- function(m, fct, fctterm){ # add assign-like info to fctterm: # which penalization/ranef groups and coefficients (fixed/random) belong to which function # also include info on global intercept and by-level intercepts ranefinds <- lme4:::reinds(m@Gp) indIntercept <- ifelse("(Intercept)" %in% names(...
library(dataRetrieval) ### Name: readNGWMNdata ### Title: import data from the National Groundwater Monitoring Network ### <URL: http://cida.usgs.gov/ngwmn/>. ### Aliases: readNGWMNdata ### ** Examples ## Not run: ##D #one site ##D site <- "USGS.430427089284901" ##D oneSite <- readNGWMNdata(siteNumbers = site, s...
/data/genthat_extracted_code/dataRetrieval/examples/readNGWMNdata.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,251
r
library(dataRetrieval) ### Name: readNGWMNdata ### Title: import data from the National Groundwater Monitoring Network ### <URL: http://cida.usgs.gov/ngwmn/>. ### Aliases: readNGWMNdata ### ** Examples ## Not run: ##D #one site ##D site <- "USGS.430427089284901" ##D oneSite <- readNGWMNdata(siteNumbers = site, s...
################################################################################### ## This script fits a linear model of the invertebrate Bray-Curtis Dissimilarity ## ## in the Grassland Resilience experiment with fixed factors "day" (days after ## ## the end of the drought), effect size of soil moisture (calculated...
/Invertebrates/Script/05_LMER_invertebrates_soil_treatment_recoded.R
permissive
DrJonYearsley/Grassland
R
false
false
66,416
r
################################################################################### ## This script fits a linear model of the invertebrate Bray-Curtis Dissimilarity ## ## in the Grassland Resilience experiment with fixed factors "day" (days after ## ## the end of the drought), effect size of soil moisture (calculated...
\name{SimpleLearner-package} \alias{SimpleLearner-package} \alias{SimpleLearner} \docType{package} \title{ Basis Learner Algorithm for Deep Networks} \description{ Augments a given basis with a data driven deep neural architechture described in the reference.} \details{ The package implements the basis augmentation ...
/R/Package/man/SimpleLearner-package.Rd
no_license
Libardo1/SimpleLearner
R
false
false
881
rd
\name{SimpleLearner-package} \alias{SimpleLearner-package} \alias{SimpleLearner} \docType{package} \title{ Basis Learner Algorithm for Deep Networks} \description{ Augments a given basis with a data driven deep neural architechture described in the reference.} \details{ The package implements the basis augmentation ...
filename <- "household_power_consumption.txt" if(!file.exists(filename)){ download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", "./Electric power consumption.zip",method="curl") unzip("Electric power consumption.zip") } data <- read.table("household...
/plot3.R
no_license
roshnilofar/GGplot-package-exploration-in-R
R
false
false
1,428
r
filename <- "household_power_consumption.txt" if(!file.exists(filename)){ download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", "./Electric power consumption.zip",method="curl") unzip("Electric power consumption.zip") } data <- read.table("household...
# Exercise-1: practice with basic syntax # Create a variable `hometown` that stores the city in which you were born hometown <- 'Mukilteo' # Assign your name to the variable `my.name` my.name <- 'Justin' # Assign your height to a variable `my.height` my.height <- 68 # Create a variable `puppies` equal to the number of...
/exercise-1/exercise.R
permissive
justinwang98/ch5-r-intro
R
false
false
806
r
# Exercise-1: practice with basic syntax # Create a variable `hometown` that stores the city in which you were born hometown <- 'Mukilteo' # Assign your name to the variable `my.name` my.name <- 'Justin' # Assign your height to a variable `my.height` my.height <- 68 # Create a variable `puppies` equal to the number of...
## Catching Inverse of Matrix ## Cache Matrix returns earlier computed Matrix if the same matrix is ## passed to function again. ## Input Parameter - Irreversible Matrix ## Output Parameter - List of functions containing Set, Get, SetInverse, ## GetInverse functions makeCacheMatrix <- function(x = matrix()) { ...
/cachematrix.R
no_license
leen21/ProgrammingAssignment2
R
false
false
1,629
r
## Catching Inverse of Matrix ## Cache Matrix returns earlier computed Matrix if the same matrix is ## passed to function again. ## Input Parameter - Irreversible Matrix ## Output Parameter - List of functions containing Set, Get, SetInverse, ## GetInverse functions makeCacheMatrix <- function(x = matrix()) { ...
load("results_C_BFG.RData") load("results_C_better.RData") load("results_conj_bin_BFG.RData") load("results_conj_bin_better.RData") load("results_WI.RData") load("results_WI_better.RData") load("results_NI.RData") load("results_NI_better.RData") load("results_L.RData") load("results_L_better.RData") summarize_one_res...
/blog_posts/LM_comparisons_Beraha_etal/make_results_table.R
permissive
nimble-dev/nimble-demos
R
false
false
2,282
r
load("results_C_BFG.RData") load("results_C_better.RData") load("results_conj_bin_BFG.RData") load("results_conj_bin_better.RData") load("results_WI.RData") load("results_WI_better.RData") load("results_NI.RData") load("results_NI_better.RData") load("results_L.RData") load("results_L_better.RData") summarize_one_res...
#' Function for Holling's type III #' #' #' @param x value #' @param a parameter for Holling type I (asymptote) #' @param b parameter for Holling type I #' @return #' @keywords sigmoid #' @export #' @examples #' #' x <- seq(0,1, length=100) #' a <- 0.8 #' b <- 0.3 #' plot(x, Holling3(x,a,b), type ="l", ylim =c(0,a...
/R/Holling3.R
permissive
cdupstats/FunResp
R
false
false
1,723
r
#' Function for Holling's type III #' #' #' @param x value #' @param a parameter for Holling type I (asymptote) #' @param b parameter for Holling type I #' @return #' @keywords sigmoid #' @export #' @examples #' #' x <- seq(0,1, length=100) #' a <- 0.8 #' b <- 0.3 #' plot(x, Holling3(x,a,b), type ="l", ylim =c(0,a...
## Set working folder setwd("~/GitHub/ExData_Project2/data") ## This first line will likely take a few seconds. Be patient! NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") # Aggregates Emissions <- aggregate(NEI[, 'Emissions'], by = list(NEI$year), FUN = sum) Emissions$PM25 <- ...
/Project2_load_data.R
no_license
timagrove/ExData_Project2
R
false
false
616
r
## Set working folder setwd("~/GitHub/ExData_Project2/data") ## This first line will likely take a few seconds. Be patient! NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") # Aggregates Emissions <- aggregate(NEI[, 'Emissions'], by = list(NEI$year), FUN = sum) Emissions$PM25 <- ...
## to execute: R CMD BATCH packages.R # grind it out the long way install.packages(c("evaluate", "base64enc", "devtools"), Sys.getenv("R_LIBS_USER"), repos = "http://lib.stat.cmu.edu/R/CRAN/" ) install.packages(c("libcurl-devel", "curl", "RCurl"), Sys.getenv("R_LIBS_USER"), repos = "http://lib.stat.cmu.edu/R/CRAN/" ) ...
/r-devel/packages.R
no_license
jeffreymanning/R
R
false
false
514
r
## to execute: R CMD BATCH packages.R # grind it out the long way install.packages(c("evaluate", "base64enc", "devtools"), Sys.getenv("R_LIBS_USER"), repos = "http://lib.stat.cmu.edu/R/CRAN/" ) install.packages(c("libcurl-devel", "curl", "RCurl"), Sys.getenv("R_LIBS_USER"), repos = "http://lib.stat.cmu.edu/R/CRAN/" ) ...
#' Internal function which does not have to be used by the users #' @author Arnaud Gloaguen #' @keywords internal BinarySearch <- function(argu, sumabs) { if (norm2(argu) == 0 || sum(abs(argu / norm2(argu))) <= sumabs) return(0) lam_max <- max(abs(argu)) lam1 <- 0 lam2 <- lam_max iter <- ...
/R/BinarySearch.R
no_license
jimhester/RGCCA
R
false
false
801
r
#' Internal function which does not have to be used by the users #' @author Arnaud Gloaguen #' @keywords internal BinarySearch <- function(argu, sumabs) { if (norm2(argu) == 0 || sum(abs(argu / norm2(argu))) <= sumabs) return(0) lam_max <- max(abs(argu)) lam1 <- 0 lam2 <- lam_max iter <- ...
#' Backward generation intervals simulated by a SEmInR model #' #' A dataset containing the backward generation intervals simulated by a SEmInR model #' which is individual based and follows the Gillespie algorithm (with tau-leap) for the stochastic component. #' The model is wrapped in a R package and can be download...
/data/data.R
no_license
davidchampredon/GI-dev
R
false
false
1,070
r
#' Backward generation intervals simulated by a SEmInR model #' #' A dataset containing the backward generation intervals simulated by a SEmInR model #' which is individual based and follows the Gillespie algorithm (with tau-leap) for the stochastic component. #' The model is wrapped in a R package and can be download...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/avg_coverage.R \name{avg_coverage_arima} \alias{avg_coverage_arima} \title{Compute the average coverage of the prediction intervals computed by naive plug-in method and \code{\link{arima_pi}}} \usage{ avg_coverage_arima(phi = NULL, theta = NU...
/man/avg_coverage_arima.Rd
no_license
helske/tsPI
R
false
true
1,679
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/avg_coverage.R \name{avg_coverage_arima} \alias{avg_coverage_arima} \title{Compute the average coverage of the prediction intervals computed by naive plug-in method and \code{\link{arima_pi}}} \usage{ avg_coverage_arima(phi = NULL, theta = NU...
% Generated by roxygen2 (4.0.2): do not edit by hand \name{predict.logitreg} \alias{predict.logitreg} \title{Predict values of a logitreg object} \usage{ \method{predict}{logitreg}(object, newdata) } \arguments{ \item{object}{logitreg. An object of class logitreg.} \item{newdata}{data.frame. Optional, additional data ...
/logitreg6/man/predict.logitreg.Rd
no_license
ja-thomas/FProgBlatt2
R
false
false
673
rd
% Generated by roxygen2 (4.0.2): do not edit by hand \name{predict.logitreg} \alias{predict.logitreg} \title{Predict values of a logitreg object} \usage{ \method{predict}{logitreg}(object, newdata) } \arguments{ \item{object}{logitreg. An object of class logitreg.} \item{newdata}{data.frame. Optional, additional data ...
# Developer: Aaron Hsu (aaronhsu.re[at]removethis.gmail.com) # Date: June 2016 # Load required libraries library(ggplot2) library(gridExtra) library(grid) library(scales) # Load data load("kangaroo.RData") load("kangaroo2.RData") # Shiny server script shinyServer(function(input, output) { # Define output object d...
/server.R
no_license
aaronhsumath/resplendent-condoroo
R
false
false
3,983
r
# Developer: Aaron Hsu (aaronhsu.re[at]removethis.gmail.com) # Date: June 2016 # Load required libraries library(ggplot2) library(gridExtra) library(grid) library(scales) # Load data load("kangaroo.RData") load("kangaroo2.RData") # Shiny server script shinyServer(function(input, output) { # Define output object d...
library(dplyr) library(lme4) ### we have more usage data in year 1 than year 2 print(load('~/Box Sync/CT/data/sectionLevelUsageData/advanceData.RData')) advance%>%group_by(year)%>%summarize(n_distinct(field_id)) print(load('~/Box Sync/CT/data/problemLevelUsageData/probLevelData.RData')) x%>%group_by(study.year)%>%...
/missingUsage.r
no_license
adamSales/cpPaper
R
false
false
4,338
r
library(dplyr) library(lme4) ### we have more usage data in year 1 than year 2 print(load('~/Box Sync/CT/data/sectionLevelUsageData/advanceData.RData')) advance%>%group_by(year)%>%summarize(n_distinct(field_id)) print(load('~/Box Sync/CT/data/problemLevelUsageData/probLevelData.RData')) x%>%group_by(study.year)%>%...
library(Peptides) ### Name: aaComp ### Title: Compute the amino acid composition of a protein sequence ### Aliases: aaComp ### ** Examples # COMPARED TO PEPSTATS # http://emboss.bioinformatics.nl/cgi-bin/emboss/pepstats # Property Residues Number Mole% # Tiny (A+C+G+S+T) 4 ...
/data/genthat_extracted_code/Peptides/examples/aaComp.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,096
r
library(Peptides) ### Name: aaComp ### Title: Compute the amino acid composition of a protein sequence ### Aliases: aaComp ### ** Examples # COMPARED TO PEPSTATS # http://emboss.bioinformatics.nl/cgi-bin/emboss/pepstats # Property Residues Number Mole% # Tiny (A+C+G+S+T) 4 ...