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
% Generated by roxygen2 (4.1.0.9000): do not edit by hand % Please edit documentation in R/periods.r \name{new_period} \alias{new_period} \title{Create a period object.} \usage{ new_period(...) } \arguments{ \item{...}{a list of time units to be included in the period and their amounts. Seconds, minutes, hours, days, w...
/man/new_period.Rd
no_license
apys/lubridate
R
false
false
2,098
rd
% Generated by roxygen2 (4.1.0.9000): do not edit by hand % Please edit documentation in R/periods.r \name{new_period} \alias{new_period} \title{Create a period object.} \usage{ new_period(...) } \arguments{ \item{...}{a list of time units to be included in the period and their amounts. Seconds, minutes, hours, days, w...
#' Read the outpur from snppit into a format useful for comparison #' #' More later... #' @param DIR the directory where the output lives #' @param S the tibble of sex and date. Must have columns #' Indiv, SEX, and collection_date slurp_snppit <- function(DIR, S) { P <- read_tsv(file.path(DIR, "snppit_output_Pa...
/R/slurp_snppit.R
no_license
abeulke/HatcheryPedAgree
R
false
false
737
r
#' Read the outpur from snppit into a format useful for comparison #' #' More later... #' @param DIR the directory where the output lives #' @param S the tibble of sex and date. Must have columns #' Indiv, SEX, and collection_date slurp_snppit <- function(DIR, S) { P <- read_tsv(file.path(DIR, "snppit_output_Pa...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/left_to_right.R \name{evaluate_left_to_right} \alias{evaluate_left_to_right} \title{Left-to-right evaluation algorithm} \usage{ evaluate_left_to_right(corpus, state, n_topics, alpha, beta, n_particles, resampling) } \description{ This is an...
/tomer/man/evaluate_left_to_right.Rd
no_license
MansMeg/tomer
R
false
true
369
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/left_to_right.R \name{evaluate_left_to_right} \alias{evaluate_left_to_right} \title{Left-to-right evaluation algorithm} \usage{ evaluate_left_to_right(corpus, state, n_topics, alpha, beta, n_particles, resampling) } \description{ This is an...
library('MASS') ## Function for correct rounding round2 = function(x, n) { posneg = sign(x) z = abs(x)*10^n z = z + 0.5 z = trunc(z) z = z/10^n z*posneg } dataLearning <- function(dat) { dat <- dat[!apply(dat, 1, function(x) all(x==0)), ] # remove a feature with all zeros dat <- d...
/data learning func.R
no_license
rdu2017/Normalization-Evaluation
R
false
false
2,822
r
library('MASS') ## Function for correct rounding round2 = function(x, n) { posneg = sign(x) z = abs(x)*10^n z = z + 0.5 z = trunc(z) z = z/10^n z*posneg } dataLearning <- function(dat) { dat <- dat[!apply(dat, 1, function(x) all(x==0)), ] # remove a feature with all zeros dat <- d...
#' @include Downloader.R DownloaderNafarroa<-R6Class("SingletonContainer",inherit=Singleton,portable=FALSE, public=list( initialize=function(...) { Class<<-R6Class("DownloaderNafarroa",portable=F, ...
/R/DownloaderNafarroa.R
no_license
AndoniMartin/eate
R
false
false
3,147
r
#' @include Downloader.R DownloaderNafarroa<-R6Class("SingletonContainer",inherit=Singleton,portable=FALSE, public=list( initialize=function(...) { Class<<-R6Class("DownloaderNafarroa",portable=F, ...
platform = "linux" rfhome = "/Users/deeksha/Library/R/3.1/R_Rulefit" source("/Users/deeksha/Library/R/3.1/R_Rulefit/rulefit.r") install.packages("akima", lib=rfhome) library(gdata) data = read.xls("Diamond_data/Diamond_Data.xls") head(data) plot(data$Cut, data$Price, xlab = "Cut", ylab = "Price") hist(data$Price, col=...
/EnsembleRule_ DiamondDataSet/Q1.R
no_license
deekshasharma/datamining
R
false
false
2,196
r
platform = "linux" rfhome = "/Users/deeksha/Library/R/3.1/R_Rulefit" source("/Users/deeksha/Library/R/3.1/R_Rulefit/rulefit.r") install.packages("akima", lib=rfhome) library(gdata) data = read.xls("Diamond_data/Diamond_Data.xls") head(data) plot(data$Cut, data$Price, xlab = "Cut", ylab = "Price") hist(data$Price, col=...
# NYC Drinking Water Quality Distribution Monitoring Data Analysis # Oct 8 2020 # Packages library(dplyr) library(tidyr) library(ggplot2) library(lubridate) # Load data setwd('~/Desktop/r_projects/practice') nyc_water <- read.csv('drinking-water-quality-distribution-monitoring-data-1.csv') # Data cleaning water ...
/nyc_water.R
no_license
auGGuo/r_data_projects
R
false
false
3,905
r
# NYC Drinking Water Quality Distribution Monitoring Data Analysis # Oct 8 2020 # Packages library(dplyr) library(tidyr) library(ggplot2) library(lubridate) # Load data setwd('~/Desktop/r_projects/practice') nyc_water <- read.csv('drinking-water-quality-distribution-monitoring-data-1.csv') # Data cleaning water ...
# if you did not install the following package (ggplot2, dplyr), please install. # install.packages("ggplot2") # install.packages("dplyr") library(ggplot2) library(dplyr) # correlation x <- c(1, 2, 3, 4, 5) y <- c(1, 2, 3, 4, 5) df <- data.frame(x, y) ggplot(df, aes(x, y)) + geom_point() cor.test(x,y) x <- c(1,...
/07. Correlation.R
no_license
jkim205/BER540_Spring19
R
false
false
2,658
r
# if you did not install the following package (ggplot2, dplyr), please install. # install.packages("ggplot2") # install.packages("dplyr") library(ggplot2) library(dplyr) # correlation x <- c(1, 2, 3, 4, 5) y <- c(1, 2, 3, 4, 5) df <- data.frame(x, y) ggplot(df, aes(x, y)) + geom_point() cor.test(x,y) x <- c(1,...
ann_function <- function(training_data, test_data) { #install.packages("neuralnet") library(neuralnet) #setup training data for ANN training_data$diagnosis=as.factor(training_data$diagnosis) factors1 <- sapply(training_data,is.factor) M1<-sapply(training_data[,factors1],unclass) ann_training_data<-cbind(t...
/classification/artificial_neural_network_2.R
no_license
CBProgramming/machine-learning-breast-cancer
R
false
false
1,142
r
ann_function <- function(training_data, test_data) { #install.packages("neuralnet") library(neuralnet) #setup training data for ANN training_data$diagnosis=as.factor(training_data$diagnosis) factors1 <- sapply(training_data,is.factor) M1<-sapply(training_data[,factors1],unclass) ann_training_data<-cbind(t...
seed <- 896 log.wt <- 0.0 penalty <- 2.8115950178536287e-8 intervals.send <- c() intervals.recv <- c(56, 112, 225, 450, 900, 1800, 3600, 7200, 14400, 28800, 57600, 115200, 230400, 460800, 921600, 1843200, 3686400, 7372800, 14745600, 29491200, 58982400) dev.null <- 358759.0022669336 df.null <- 35567 dev.resid <- 225055....
/analysis/boot/boot896.R
no_license
patperry/interaction-proc
R
false
false
3,757
r
seed <- 896 log.wt <- 0.0 penalty <- 2.8115950178536287e-8 intervals.send <- c() intervals.recv <- c(56, 112, 225, 450, 900, 1800, 3600, 7200, 14400, 28800, 57600, 115200, 230400, 460800, 921600, 1843200, 3686400, 7372800, 14745600, 29491200, 58982400) dev.null <- 358759.0022669336 df.null <- 35567 dev.resid <- 225055....
#' Speed and Acceleration Plots over Time #' #' @description #' This function returns a player's in-situ speed and acceleration v time curves #' #' #' @param player_profile player profile #' #' @return A player's speed and acceleration curves over time #' @export #' #' @examples #' data(player_a) #' player...
/R/game_player_plot.R
no_license
aadler/midsprint
R
false
false
1,392
r
#' Speed and Acceleration Plots over Time #' #' @description #' This function returns a player's in-situ speed and acceleration v time curves #' #' #' @param player_profile player profile #' #' @return A player's speed and acceleration curves over time #' @export #' #' @examples #' data(player_a) #' player...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/looker.tools.R \name{looker.chunker} \alias{looker.chunker} \title{looker.chunker} \usage{ looker.chunker(looker.path, data.path, start.date, end.date, interval = "1 month") } \arguments{ \item{looker.path}{- The path to the file that conta...
/man/looker.chunker.Rd
no_license
christiantillich/AnaliTools
R
false
true
905
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/looker.tools.R \name{looker.chunker} \alias{looker.chunker} \title{looker.chunker} \usage{ looker.chunker(looker.path, data.path, start.date, end.date, interval = "1 month") } \arguments{ \item{looker.path}{- The path to the file that conta...
exam <- read.csv("csv_exam.csv") head(exam) tail(exam) View(exam) dim(exam) str(exam) summary(exam) quantile(exam$math) # Mile per Gallon Data mpg <- as.data.frame(ggplot2::mpg) write.csv(mpg, "mpg.csv") head(mpg) tail(mpg) View(mpg) dim(mpg) str(mpg) ?mpg summary(mpg) install.packages("dplyr") library(dplyr) df_raw ...
/easy_r/Scripts/sc05-1.R
no_license
ckiekim/BigDataWithR-Lecture
R
false
false
1,857
r
exam <- read.csv("csv_exam.csv") head(exam) tail(exam) View(exam) dim(exam) str(exam) summary(exam) quantile(exam$math) # Mile per Gallon Data mpg <- as.data.frame(ggplot2::mpg) write.csv(mpg, "mpg.csv") head(mpg) tail(mpg) View(mpg) dim(mpg) str(mpg) ?mpg summary(mpg) install.packages("dplyr") library(dplyr) df_raw ...
#' Method to initialize EM parameters. Carries out a single GLM fit and applies random noise to form starting space. #' @inheritParams em.glm #' @return A K-length list, each holding parameters. #' @examples #' x <- model.matrix(~ 1 + factor(wool) + factor(tension), data = warpbreaks) #' y <- warpbreaks$breaks #' #' i...
/R/initializers.R
no_license
Stat-Cook/emax.glm
R
false
false
1,208
r
#' Method to initialize EM parameters. Carries out a single GLM fit and applies random noise to form starting space. #' @inheritParams em.glm #' @return A K-length list, each holding parameters. #' @examples #' x <- model.matrix(~ 1 + factor(wool) + factor(tension), data = warpbreaks) #' y <- warpbreaks$breaks #' #' i...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/util.R \name{pcor1} \alias{pcor1} \title{partial correlation} \usage{ pcor1(x, y, z) } \arguments{ \item{x:}{vector} \item{y:}{vector} \item{z:}{vector} } \value{ partial correlation } \description{ partial correlation cor(x,y|z) } \details...
/man/pcor1.Rd
no_license
gbonte/gbcode
R
false
true
618
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/util.R \name{pcor1} \alias{pcor1} \title{partial correlation} \usage{ pcor1(x, y, z) } \arguments{ \item{x:}{vector} \item{y:}{vector} \item{z:}{vector} } \value{ partial correlation } \description{ partial correlation cor(x,y|z) } \details...
#BMW model for R #from Wynne Godley and Marc Lavoie #Monetary Economics #Chapter 7 #Created by Marco Veronese Passarella on 30 May 2019 #STEP 1: Clear the workspace and define the number of periods and scenarios rm(list=ls(all=TRUE)) #Number of periods nPeriods = 90 #Number of scenarios nScenarios=3 ...
/BMW.R
no_license
anhnguyendepocen/SFC-models-R
R
false
false
6,149
r
#BMW model for R #from Wynne Godley and Marc Lavoie #Monetary Economics #Chapter 7 #Created by Marco Veronese Passarella on 30 May 2019 #STEP 1: Clear the workspace and define the number of periods and scenarios rm(list=ls(all=TRUE)) #Number of periods nPeriods = 90 #Number of scenarios nScenarios=3 ...
\name{simfun} \alias{simfun} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Create a function to simulate data } \description{ This function is used to create a new function that will simulate data. This could be used by a teacher to create homework or test conditions that the students...
/man/simfun.Rd
no_license
svats2k/TeachingDemos
R
false
false
9,316
rd
\name{simfun} \alias{simfun} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Create a function to simulate data } \description{ This function is used to create a new function that will simulate data. This could be used by a teacher to create homework or test conditions that the students...
library(tidyverse) library(ggraph) library(igraph) theme_set(theme_graph()) set_graph_style(foreground = 'grey80') set.seed(1) rm(list = ls()) source("scripts/load_data_long.R") data_long data_wide <- data_long %>% spread(station_name_type, station_name) top_stations <- data %>% select(from_station_name) ...
/scripts/network graph.R
no_license
conorotompkins/healthy_ride
R
false
false
3,986
r
library(tidyverse) library(ggraph) library(igraph) theme_set(theme_graph()) set_graph_style(foreground = 'grey80') set.seed(1) rm(list = ls()) source("scripts/load_data_long.R") data_long data_wide <- data_long %>% spread(station_name_type, station_name) top_stations <- data %>% select(from_station_name) ...
\docType{methods} \name{CS10-method} \alias{CS10,CDS-method} \alias{CS10-method} \title{S4 method CS10} \usage{ \S4method{CS10}{CDS}(object) } \arguments{ \item{object}{the input CDS class object} } \description{ The CS10 method for CDS class }
/pkg/man/CS10-methods.Rd
permissive
Kevin-Jin/CDS
R
false
false
248
rd
\docType{methods} \name{CS10-method} \alias{CS10,CDS-method} \alias{CS10-method} \title{S4 method CS10} \usage{ \S4method{CS10}{CDS}(object) } \arguments{ \item{object}{the input CDS class object} } \description{ The CS10 method for CDS class }
require('epi') # Simulate data fluData1 <- simSIR(0.002,0.1,400,1) # fluData1 <- simExp(0.2,400) # fluData2 <- simSIR(0.002,0.1,500,10) # Get data from dataframe # Ensure first is larger than second # nSum <- 4 positiveInfectious1 <- fluData1$data[,3] # positiveInfectious <- sumData(fluData$data[,3], nSum) # positiveI...
/launch/processOffset.r
no_license
tomwilding/emp
R
false
false
1,840
r
require('epi') # Simulate data fluData1 <- simSIR(0.002,0.1,400,1) # fluData1 <- simExp(0.2,400) # fluData2 <- simSIR(0.002,0.1,500,10) # Get data from dataframe # Ensure first is larger than second # nSum <- 4 positiveInfectious1 <- fluData1$data[,3] # positiveInfectious <- sumData(fluData$data[,3], nSum) # positiveI...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/parsing_functions.R \name{.go_ids_lookup} \alias{.go_ids_lookup} \title{GAPGOM internal - .go_ids_lookup()} \usage{ .go_ids_lookup(ids, go_data, custom_genes = NULL, drop = NULL) } \arguments{ \item{ids}{general ids that you want to search fo...
/man/dot-go_ids_lookup.Rd
permissive
Berghopper/GAPGOM
R
false
true
747
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/parsing_functions.R \name{.go_ids_lookup} \alias{.go_ids_lookup} \title{GAPGOM internal - .go_ids_lookup()} \usage{ .go_ids_lookup(ids, go_data, custom_genes = NULL, drop = NULL) } \arguments{ \item{ids}{general ids that you want to search fo...
library(dplyr) source('preprocess/load_data/data_loader.R') load_hotel_reserve() # 下記から本書掲載 # checkin_dateの条件式によって、判定結果のTRUE/FALSEのベクトルを取得 # 条件式を&でつなぐことによって、判定結果がともにTRUEの場合のみTRUEとなるベクトルを取得 # reserve_tbの2次元配列の1次元目にTRUE/FALSEのベクトルを指定し、条件適合する行を抽出 # reserve_tbの2次元配列の2次元目を空にすることで、すべての列を抽出 reserve_tb[reserve_tb$checkin_date...
/preprocess/002_selection/02/a_r_1_not_awesome.R
permissive
KazukiUeno/awesomebook
R
false
false
641
r
library(dplyr) source('preprocess/load_data/data_loader.R') load_hotel_reserve() # 下記から本書掲載 # checkin_dateの条件式によって、判定結果のTRUE/FALSEのベクトルを取得 # 条件式を&でつなぐことによって、判定結果がともにTRUEの場合のみTRUEとなるベクトルを取得 # reserve_tbの2次元配列の1次元目にTRUE/FALSEのベクトルを指定し、条件適合する行を抽出 # reserve_tbの2次元配列の2次元目を空にすることで、すべての列を抽出 reserve_tb[reserve_tb$checkin_date...
library(dplyr) library(ggplot2) library(RColorBrewer) setwd("/Users/Desktop/melanoma") kirc_02=analysis_size=readRDS("analysis_size_all_old_condition.rds") kirc_02@selection_results$gene=apply(data.frame(kirc_02@selection_results[,1]),1,FUN = function(x){strsplit(x,"_")[[1]][1]}) summary_multivar <- function(data, ...
/Boxplot_SI_original.R
no_license
dongzhblake/melanoma
R
false
false
3,600
r
library(dplyr) library(ggplot2) library(RColorBrewer) setwd("/Users/Desktop/melanoma") kirc_02=analysis_size=readRDS("analysis_size_all_old_condition.rds") kirc_02@selection_results$gene=apply(data.frame(kirc_02@selection_results[,1]),1,FUN = function(x){strsplit(x,"_")[[1]][1]}) summary_multivar <- function(data, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/securityhub_operations.R \name{securityhub_list_invitations} \alias{securityhub_list_invitations} \title{Lists all Security Hub membership invitations that were sent to the current AWS account} \usage{ securityhub_list_invitations(MaxResults,...
/paws/man/securityhub_list_invitations.Rd
permissive
jcheng5/paws
R
false
true
976
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/securityhub_operations.R \name{securityhub_list_invitations} \alias{securityhub_list_invitations} \title{Lists all Security Hub membership invitations that were sent to the current AWS account} \usage{ securityhub_list_invitations(MaxResults,...
#clusters info clust7 <- read.csv("data_clust_7_v2.csv") clust7np <- read.csv("data_clust_7_minus_pap_v2.csv") sd <- read.csv("virome_individual_SD_all.csv") clust7 <- dplyr::rename(clust7, study_id = X) clust7np <- dplyr::rename(clust7np, study_id = X) sd <- dplyr::rename(sd, study_id = Participants) #merge with viro...
/virome_univariate.R
no_license
KeshiniD/Vogue
R
false
false
9,999
r
#clusters info clust7 <- read.csv("data_clust_7_v2.csv") clust7np <- read.csv("data_clust_7_minus_pap_v2.csv") sd <- read.csv("virome_individual_SD_all.csv") clust7 <- dplyr::rename(clust7, study_id = X) clust7np <- dplyr::rename(clust7np, study_id = X) sd <- dplyr::rename(sd, study_id = Participants) #merge with viro...
library(KarsTS) ### Name: verifyCharEntry ### Title: verifyCharEntry: verify character entries ### Aliases: verifyCharEntry ### Keywords: ~kwd1 ~kwd2 ### ** Examples verifyCharEntry("Strawberry", noValid = "isNoValid") verifyCharEntry(235, noValid = "isNoValid") verifyCharEntry(235, noValid = NA)
/data/genthat_extracted_code/KarsTS/examples/verifyCharEntry.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
307
r
library(KarsTS) ### Name: verifyCharEntry ### Title: verifyCharEntry: verify character entries ### Aliases: verifyCharEntry ### Keywords: ~kwd1 ~kwd2 ### ** Examples verifyCharEntry("Strawberry", noValid = "isNoValid") verifyCharEntry(235, noValid = "isNoValid") verifyCharEntry(235, noValid = NA)
# The functions below here were adapted from the functions in the fields package! (image.plot and subroutines) # fields, Tools for spatial data # Copyright 2004-2007, Institute for Mathematics Applied Geosciences # University Corporation for Atmospheric Research # Licensed under the GPL -- www.gpl.org/licenses/gpl....
/for875-18/packages/raster/R/newPLot.R
no_license
anhnguyendepocen/for875
R
false
false
5,780
r
# The functions below here were adapted from the functions in the fields package! (image.plot and subroutines) # fields, Tools for spatial data # Copyright 2004-2007, Institute for Mathematics Applied Geosciences # University Corporation for Atmospheric Research # Licensed under the GPL -- www.gpl.org/licenses/gpl....
# plot_scen_types.r #### # California Natural and Working Lands Carbon and Greenhouse Gas # Model (CALAND) Copyright (c) 2020, The Regents of the University of # California, through Lawrence Berkeley National Laboratory (subject to # receipt of any required approvals from the U.S. Dept. of Energy).  All # rights re...
/plot_scen_types.r
permissive
sbassett/caland
R
false
false
8,609
r
# plot_scen_types.r #### # California Natural and Working Lands Carbon and Greenhouse Gas # Model (CALAND) Copyright (c) 2020, The Regents of the University of # California, through Lawrence Berkeley National Laboratory (subject to # receipt of any required approvals from the U.S. Dept. of Energy).  All # rights re...
x<-c(121,116,114,110,105,99,96,95,93,92,95,94,88,87,82,81,79,76,74,69,70,71,68,58,53,52,48,44,45,41,40,37,34,29,26,29,31,33,34,30,28,31,27,24,22,21, 26,25,28,27,34,35,39,41,47,49,51,55,57,59,62,64,71,76,79,84,87,90,101,102,107,111,115,117,119,122,125,126,129,134,139,142,146,145,146,143,142, 145,144,147,152,15...
/R_code/africa_shape.R
permissive
Albertios/master-thesis
R
false
false
7,179
r
x<-c(121,116,114,110,105,99,96,95,93,92,95,94,88,87,82,81,79,76,74,69,70,71,68,58,53,52,48,44,45,41,40,37,34,29,26,29,31,33,34,30,28,31,27,24,22,21, 26,25,28,27,34,35,39,41,47,49,51,55,57,59,62,64,71,76,79,84,87,90,101,102,107,111,115,117,119,122,125,126,129,134,139,142,146,145,146,143,142, 145,144,147,152,15...
\name{Spgrr} \alias{Spgrr} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Use Spgr to estimate subgroups with repeated measures with both z and x} \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ Spgrr(indexy,y, z, x, weights, betam0, ...) } \argum...
/man/Spgrr.Rd
no_license
wangx23/Spgr
R
false
false
2,981
rd
\name{Spgrr} \alias{Spgrr} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Use Spgr to estimate subgroups with repeated measures with both z and x} \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ Spgrr(indexy,y, z, x, weights, betam0, ...) } \argum...
#' Prints the system date/time in only numbers (no spaces or punctuation) #' #' @return #' @export #' #' @examples squysh_time <- function(){ str_replace_all(Sys.time(), "[^[:alnum:]]", "") }
/R/squysh_time.R
no_license
brentscott93/biophysr
R
false
false
194
r
#' Prints the system date/time in only numbers (no spaces or punctuation) #' #' @return #' @export #' #' @examples squysh_time <- function(){ str_replace_all(Sys.time(), "[^[:alnum:]]", "") }
library(nimble, lib.loc = '~/Documents/') nimbleOptions(MCMCprogressBar = FALSE) library(coda) setwd('~/github/hybridBlockSamplers') source('data/modelData.R') source('AFSS_to_RW_block_sampler.R') ## ##nreps <- 1 nreps <- 10 ## compareDF <- data.frame(sampler = NA, nfa = NA, nIter = NA, runTime = NA, minEfficiency = N...
/run_mhp.R
no_license
danielturek/hybridBlockSamplers
R
false
false
4,374
r
library(nimble, lib.loc = '~/Documents/') nimbleOptions(MCMCprogressBar = FALSE) library(coda) setwd('~/github/hybridBlockSamplers') source('data/modelData.R') source('AFSS_to_RW_block_sampler.R') ## ##nreps <- 1 nreps <- 10 ## compareDF <- data.frame(sampler = NA, nfa = NA, nIter = NA, runTime = NA, minEfficiency = N...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/export-catch.R \name{export_catch} \alias{export_catch} \title{Create files with Freezer trawler and Shoreside catch in the format required for direct pasting into the iSCAM data file} \usage{ export_catch( ct, areas = c("3[CD]+", "5[ABCD...
/man/export_catch.Rd
no_license
pbs-assess/arrowtooth
R
false
true
1,738
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/export-catch.R \name{export_catch} \alias{export_catch} \title{Create files with Freezer trawler and Shoreside catch in the format required for direct pasting into the iSCAM data file} \usage{ export_catch( ct, areas = c("3[CD]+", "5[ABCD...
library(phyViz) load("./tree.rda") treeGraph <- processTreeGraph(tree) # mygraph <- graph.data.frame(treeGraph, directed=F) varieties <- unique(c(tree$child,tree$parent)) varieties <- subset(varieties, !grepl(" x ", varieties) & !is.na(varieties)) varieties <- varieties[order(varieties)] kevinbacon <- matrix(1, nro...
/Shiny/Genealogy/kevinbacon.R
no_license
srvanderplas/USDA-soybeans
R
false
false
3,747
r
library(phyViz) load("./tree.rda") treeGraph <- processTreeGraph(tree) # mygraph <- graph.data.frame(treeGraph, directed=F) varieties <- unique(c(tree$child,tree$parent)) varieties <- subset(varieties, !grepl(" x ", varieties) & !is.na(varieties)) varieties <- varieties[order(varieties)] kevinbacon <- matrix(1, nro...
library(shiny) library(waiter) library(pushbar) library(grapher) shiny::addResourcePath("assets", "./assets") code <- readLines("./script/script.R") %>% paste0(collapse = "\n") load("pkgs.RData") ui <- fluidPage( title = "CRAN Dependency Network", tags$head( tags$link( rel="stylesheet", type="text/css", ...
/app.R
no_license
frdanconia/cran_dependency_graph
R
false
false
4,107
r
library(shiny) library(waiter) library(pushbar) library(grapher) shiny::addResourcePath("assets", "./assets") code <- readLines("./script/script.R") %>% paste0(collapse = "\n") load("pkgs.RData") ui <- fluidPage( title = "CRAN Dependency Network", tags$head( tags$link( rel="stylesheet", type="text/css", ...
CrissCross <- function(x,w=matrix(1,dim(x)[1],dim(x)[2]),dimens=2, a0=NULL, b0=NULL, maxiter=100, tol=10e-5, addsvd=TRUE, lambda=0){ n=dim(x)[1] p=dim(x)[2] x[which(w==0)]=0 DimNames = "Dim 1" for (i in 2:dimens) DimNames = c(DimNames, paste("Dim", i)) if (is.null(a0)) a0=matrix(rnorm(n*dimens),n,dim...
/R/CrissCross.R
no_license
villardon/MultBiplotR
R
false
false
2,232
r
CrissCross <- function(x,w=matrix(1,dim(x)[1],dim(x)[2]),dimens=2, a0=NULL, b0=NULL, maxiter=100, tol=10e-5, addsvd=TRUE, lambda=0){ n=dim(x)[1] p=dim(x)[2] x[which(w==0)]=0 DimNames = "Dim 1" for (i in 2:dimens) DimNames = c(DimNames, paste("Dim", i)) if (is.null(a0)) a0=matrix(rnorm(n*dimens),n,dim...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot.R \name{fbarplot} \alias{fbarplot} \alias{fbarplot.sam} \alias{fbarplot.samset} \alias{fbarplot.samforecast} \alias{fbarplot.hcr} \title{SAM Fbar plot} \usage{ fbarplot(fit, ...) \method{fbarplot}{sam}( fit, partial = TRUE, drop =...
/stockassessment/man/fbarplot.Rd
no_license
fishfollower/SAM
R
false
true
1,429
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot.R \name{fbarplot} \alias{fbarplot} \alias{fbarplot.sam} \alias{fbarplot.samset} \alias{fbarplot.samforecast} \alias{fbarplot.hcr} \title{SAM Fbar plot} \usage{ fbarplot(fit, ...) \method{fbarplot}{sam}( fit, partial = TRUE, drop =...
# http://www.cookbook-r.com/Graphs/Titles_(ggplot2)/ bp + ggtitle("Plant growth") # Equivalent to bp + labs(title="Plant growth") # If the title is long, it can be split into multiple lines with \n bp + ggtitle("Plant growth with\ndifferent treatments") # Reduce line spacing and use bold text bp + ggtitle("Plant grow...
/bp.R
no_license
DublinR/ggplot2workshop
R
false
false
421
r
# http://www.cookbook-r.com/Graphs/Titles_(ggplot2)/ bp + ggtitle("Plant growth") # Equivalent to bp + labs(title="Plant growth") # If the title is long, it can be split into multiple lines with \n bp + ggtitle("Plant growth with\ndifferent treatments") # Reduce line spacing and use bold text bp + ggtitle("Plant grow...
#! /usr/bin/Rscript # Analyze the effect of different methods on alpha diversity library(phyloseq) library(argparse) library(ggplot2) library(gridExtra) options(stringsAsFactors=F) # Arguments parser=ArgumentParser() parser$add_argument("-i", "--infile", help="RDS file with saved phyloseq object for analysis") parse...
/TestPrimers/2h_AnalyzeAlphaDiversity.r
no_license
wallacelab/paper-giangacomo-16s-methods
R
false
false
5,230
r
#! /usr/bin/Rscript # Analyze the effect of different methods on alpha diversity library(phyloseq) library(argparse) library(ggplot2) library(gridExtra) options(stringsAsFactors=F) # Arguments parser=ArgumentParser() parser$add_argument("-i", "--infile", help="RDS file with saved phyloseq object for analysis") parse...
############################################################### # # # Part 1: Simulating rockpool hydroperiod # # # ############################################################### ...
/Stochastic_bet-hedging.r
no_license
falko-buschke/Stochastic-bet-hedging
R
false
false
4,934
r
############################################################### # # # Part 1: Simulating rockpool hydroperiod # # # ############################################################### ...
templates <- function( page = NULL, page_size = NULL, language_id = NULL, category_id = NULL, only_mine = TRUE, fields = NULL, api_key = getOption('sm_api_key'), oauth_token = getOption('sm_oauth_token') ){ if(!is.null(api_key)) { u <- paste('https://api.surveymonkey.net/v2/t...
/R/templates.r
no_license
patilv/Rmonkey
R
false
false
2,831
r
templates <- function( page = NULL, page_size = NULL, language_id = NULL, category_id = NULL, only_mine = TRUE, fields = NULL, api_key = getOption('sm_api_key'), oauth_token = getOption('sm_oauth_token') ){ if(!is.null(api_key)) { u <- paste('https://api.surveymonkey.net/v2/t...
library(eplusr) ### Name: read_epw ### Title: Read and Parse EnergyPlus Weather File (EPW) ### Aliases: read_epw ### ** Examples # read an EPW file from EnergyPlus v8.8 installation folder if (is_avail_eplus(8.8)) { path_epw <- file.path( eplus_config(8.8)$dir, "WeatherData", "USA_CA_San...
/data/genthat_extracted_code/eplusr/examples/read_epw.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
794
r
library(eplusr) ### Name: read_epw ### Title: Read and Parse EnergyPlus Weather File (EPW) ### Aliases: read_epw ### ** Examples # read an EPW file from EnergyPlus v8.8 installation folder if (is_avail_eplus(8.8)) { path_epw <- file.path( eplus_config(8.8)$dir, "WeatherData", "USA_CA_San...
# library(devtools) # install_github("agilearning/RPTT") # install.packages("XML") library(RPTT) listPageUrls = getListPageUrls("Gossiping")[1:20] postUrls = unlist(lapply(listPageUrls,getPostUrls)) postData = lapply(postUrls, function(url) try(getPostData(url),TRUE)) error_idx = which(sapply(postData, function(x) cla...
/Week2/getGossipingData.R
no_license
KuiMing/RTextMining
R
false
false
689
r
# library(devtools) # install_github("agilearning/RPTT") # install.packages("XML") library(RPTT) listPageUrls = getListPageUrls("Gossiping")[1:20] postUrls = unlist(lapply(listPageUrls,getPostUrls)) postData = lapply(postUrls, function(url) try(getPostData(url),TRUE)) error_idx = which(sapply(postData, function(x) cla...
# Collection tests url <- "http://a02235015-6.bluezone.usu.edu/api/" context("Categories") vcr::use_cassette(name = "Categories_id", { data <- Categories(id = 1, url = url) }) test_that("Categories_id", { expect_equal(length(data), 12) expect_type(data, "list") }) vcr::use_cassette(name = "Categories_page", { ...
/tests/testthat/test_Collection.R
permissive
ropensci/SymbiotaR2
R
false
false
1,614
r
# Collection tests url <- "http://a02235015-6.bluezone.usu.edu/api/" context("Categories") vcr::use_cassette(name = "Categories_id", { data <- Categories(id = 1, url = url) }) test_that("Categories_id", { expect_equal(length(data), 12) expect_type(data, "list") }) vcr::use_cassette(name = "Categories_page", { ...
#' @name getCriticalCoalitionsOfPlayer #' @title getCriticalCoalitionsOfPlayer #' @description The function getCriticalCoalitionsOfPlayer identifies all coalitions for one player #' in which that player is critical. #' These coalitions are characterized by the circumstance that without this player the other players...
/CoopGame/R/getCriticalCoalitionsOfPlayer.R
no_license
anwanjohannes/CoopGame
R
false
false
3,947
r
#' @name getCriticalCoalitionsOfPlayer #' @title getCriticalCoalitionsOfPlayer #' @description The function getCriticalCoalitionsOfPlayer identifies all coalitions for one player #' in which that player is critical. #' These coalitions are characterized by the circumstance that without this player the other players...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/intervals.r \name{\%within\%} \alias{\%within\%} \alias{\%within\%,Interval,Interval-method} \title{Tests whether a date or interval falls within an interval} \usage{ a \%within\% b } \arguments{ \item{a}{An interval or date-time obje...
/man/within-interval.Rd
no_license
larmarange/lubridate
R
false
false
845
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/intervals.r \name{\%within\%} \alias{\%within\%} \alias{\%within\%,Interval,Interval-method} \title{Tests whether a date or interval falls within an interval} \usage{ a \%within\% b } \arguments{ \item{a}{An interval or date-time obje...
# Takes in a Cox proportional hazards model and returns a table of the parameter estimates on a format # specified by the user. The purpose of the function is to easily generate tables for research papers. analysis_hazard_table <- function(fit,nr_digits=3,pval_type="stars",remove_adjustment=NULL,make_excel=T){ requir...
/R/analysis_hazard_table.R
no_license
saemirogg/swedr
R
false
false
1,966
r
# Takes in a Cox proportional hazards model and returns a table of the parameter estimates on a format # specified by the user. The purpose of the function is to easily generate tables for research papers. analysis_hazard_table <- function(fit,nr_digits=3,pval_type="stars",remove_adjustment=NULL,make_excel=T){ requir...
nc <- getdata::get_location(type = system.file("shape/nc.shp", package = "sf"), crs = 3857) basemap <- ggplot2::ggplot() + ggplot2::theme_void() + layer_location_data(data = nc) # icon can be set by name matching a name from map_icons basemap + layer_icon(data = nc, icon = "point-start", size = 8) # layer_ic...
/examples/layer_icon.R
permissive
elipousson/maplayer
R
false
false
484
r
nc <- getdata::get_location(type = system.file("shape/nc.shp", package = "sf"), crs = 3857) basemap <- ggplot2::ggplot() + ggplot2::theme_void() + layer_location_data(data = nc) # icon can be set by name matching a name from map_icons basemap + layer_icon(data = nc, icon = "point-start", size = 8) # layer_ic...
#' Mongo Client #' #' This function returns mongo client connected to configurated environment variables #' mongoUrl, mDb, mCollection #' #' @export #' @example #' mongoconnect() mongoConnect <- function(){ m <- mongolite::mongo(collection = Sys.getenv("mCollection"),db =Sys.getenv("mDb"), url = Sys.getenv("mongoUrl...
/R/mongoConnect.R
no_license
rsangra/fhirexample
R
false
false
338
r
#' Mongo Client #' #' This function returns mongo client connected to configurated environment variables #' mongoUrl, mDb, mCollection #' #' @export #' @example #' mongoconnect() mongoConnect <- function(){ m <- mongolite::mongo(collection = Sys.getenv("mCollection"),db =Sys.getenv("mDb"), url = Sys.getenv("mongoUrl...
shinyServer(function(input, output, session) { output$preImage <- renderImage({ filename <- normalizePath(file.path('./www', paste(input$mealinput, '.jpeg', sep=''))) list(src = filename, alt = input$mealinput) }, deleteFile = FALSE) output$pr...
/dashboard/server.R
no_license
valencialie11/airlines
R
false
false
13,462
r
shinyServer(function(input, output, session) { output$preImage <- renderImage({ filename <- normalizePath(file.path('./www', paste(input$mealinput, '.jpeg', sep=''))) list(src = filename, alt = input$mealinput) }, deleteFile = FALSE) output$pr...
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = numeric(0), relh = numeric(0), temp = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
/meteor/inst/testfiles/ET0_PriestleyTaylor/libFuzzer_ET0_PriestleyTaylor/ET0_PriestleyTaylor_valgrind_files/1612737201-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
431
r
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = numeric(0), relh = numeric(0), temp = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/randomtourney.R \name{randomtourney} \alias{randomtourney} \title{Generates a randomized tournament with random outcomes} \usage{ randomtourney(n, matchups = 2, pties = 0, ints = 100, type = "char") } \arguments{ \item{n}{Number of in...
/man/randomtourney.Rd
no_license
Sandy4321/compete
R
false
false
1,771
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/randomtourney.R \name{randomtourney} \alias{randomtourney} \title{Generates a randomized tournament with random outcomes} \usage{ randomtourney(n, matchups = 2, pties = 0, ints = 100, type = "char") } \arguments{ \item{n}{Number of in...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/mip.R \name{as.mip} \alias{as.mip} \title{Write an editset into a mip representation} \usage{ as.mip(E, x = NULL, weight = NULL, M = 1e+07, epsilon = 0.001, prefix = "delta.", ...) } \arguments{ \item{E}{an \code{link{editset}} or a...
/pkg/man/as.mip.Rd
no_license
jenifferYingyiWu/editrules
R
false
false
908
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/mip.R \name{as.mip} \alias{as.mip} \title{Write an editset into a mip representation} \usage{ as.mip(E, x = NULL, weight = NULL, M = 1e+07, epsilon = 0.001, prefix = "delta.", ...) } \arguments{ \item{E}{an \code{link{editset}} or a...
library(mgcv) library(tidyverse) library(ggplot2) library(reshape2) setwd("\\\\141.20.140.91/SAN_Projects/Spring/workspace/Katja/germany/spectral") data <- read.csv(header=TRUE, sep=",", file="data_clear.csv") data <- subset(data, data$year == 2017) ##################################################################...
/pheno_model_v5.R
no_license
katjakowalski/MA
R
false
false
7,995
r
library(mgcv) library(tidyverse) library(ggplot2) library(reshape2) setwd("\\\\141.20.140.91/SAN_Projects/Spring/workspace/Katja/germany/spectral") data <- read.csv(header=TRUE, sep=",", file="data_clear.csv") data <- subset(data, data$year == 2017) ##################################################################...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/flag_outlooktime.R \name{flag_outlooktime} \alias{flag_outlooktime} \title{Flag unusual outlook time settings for work day start and end time} \usage{ flag_outlooktime(data, threshold = c(4, 15), return = "message") } \arguments{ \item{data}{...
/man/flag_outlooktime.Rd
permissive
Global19/wpa
R
false
true
1,636
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/flag_outlooktime.R \name{flag_outlooktime} \alias{flag_outlooktime} \title{Flag unusual outlook time settings for work day start and end time} \usage{ flag_outlooktime(data, threshold = c(4, 15), return = "message") } \arguments{ \item{data}{...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/read_region.R \name{read_region} \alias{read_region} \title{Download shape file of Brazil Regions as sf objects.} \usage{ read_region(year = 2010, simplified = TRUE, showProgress = TRUE, tp) } \arguments{ \item{year}{Year of the data (default...
/r-package/man/read_region.Rd
no_license
fcotelo/geobr
R
false
true
1,445
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/read_region.R \name{read_region} \alias{read_region} \title{Download shape file of Brazil Regions as sf objects.} \usage{ read_region(year = 2010, simplified = TRUE, showProgress = TRUE, tp) } \arguments{ \item{year}{Year of the data (default...
#Written by Rafae Deliz-Aguirre #For showing cases, projection over time DIRECTORY = "~/COVID-19/Texas" #LOCATIONS = c("Puerto Rico", "Texas", "New York", "California") #LOCATIONS = c("Webb", "Dallas","Harris","Bexar") LOCATIONS = c("Webb") #Load libraries library(stringr) library(gganimate) library(av) library(dplyr)...
/VideoCases.R
no_license
rhdeliz/COVID-19
R
false
false
3,613
r
#Written by Rafae Deliz-Aguirre #For showing cases, projection over time DIRECTORY = "~/COVID-19/Texas" #LOCATIONS = c("Puerto Rico", "Texas", "New York", "California") #LOCATIONS = c("Webb", "Dallas","Harris","Bexar") LOCATIONS = c("Webb") #Load libraries library(stringr) library(gganimate) library(av) library(dplyr)...
# Yige Wu @WashU May 2021 ## source activate signac # set up libraries and output directory ----------------------------------- ## getting the path to the current script thisFile <- function() { cmdArgs <- commandArgs(trailingOnly = FALSE) needle <- "--file=" match <- grep(needle, cmdArgs) if (length(match) > ...
/snatac/coverage_plots/Tumor_vs_PT/coverageplot_HK2_promoter_peak_motif_28samples_KLF9_motif_katmai.R
no_license
ding-lab/ccRCC_snRNA_analysis
R
false
false
6,087
r
# Yige Wu @WashU May 2021 ## source activate signac # set up libraries and output directory ----------------------------------- ## getting the path to the current script thisFile <- function() { cmdArgs <- commandArgs(trailingOnly = FALSE) needle <- "--file=" match <- grep(needle, cmdArgs) if (length(match) > ...
library(ordinalRR) ### Name: summary.ordinalRR ### Title: Summarize an object of class ordinalRR. ### Aliases: summary.ordinalRR ### ** Examples ## No test: data(followup) followup x=preprocess(followup) g.random<-ordinalRR(x) summary(g.random) ## End(No test)
/data/genthat_extracted_code/ordinalRR/examples/summary.ordinalRR.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
272
r
library(ordinalRR) ### Name: summary.ordinalRR ### Title: Summarize an object of class ordinalRR. ### Aliases: summary.ordinalRR ### ** Examples ## No test: data(followup) followup x=preprocess(followup) g.random<-ordinalRR(x) summary(g.random) ## End(No test)
library(shiny) source("mappings.R") ui <- navbarPage(title = "Single-case effect size calculator", id = "SCD_es_calculator", tabPanel("About", navlistPanel(widths = c(3,9), tabPanel("About", ...
/inst/shiny-examples/SCD-effect-sizes/ui.R
no_license
jepusto/SingleCaseES
R
false
false
25,048
r
library(shiny) source("mappings.R") ui <- navbarPage(title = "Single-case effect size calculator", id = "SCD_es_calculator", tabPanel("About", navlistPanel(widths = c(3,9), tabPanel("About", ...
testlist <- list(AgeVector = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), ExpressionSet = structure(c(1.63064200184954e+212, 1.11558267938731e+157, 2.3453288146775e+59, 7.59955788945772e-256, 5.55398...
/myTAI/inst/testfiles/cpp_omitMatrix/AFL_cpp_omitMatrix/cpp_omitMatrix_valgrind_files/1615846757-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
1,090
r
testlist <- list(AgeVector = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), ExpressionSet = structure(c(1.63064200184954e+212, 1.11558267938731e+157, 2.3453288146775e+59, 7.59955788945772e-256, 5.55398...
library(shiny) library(V8) library(sodium) library(openssl) library(rJava) #For sending an email from R library(mailR) #For sending an email from R library(DBI) library(pool) library(RSQLite) #DataBase pool <- dbPool(drv = RSQLite::SQLite()) onStop(function() { poolClose(pool) }) #Create table user in DB dbExecu...
/server.R
no_license
HanjoStudy/Shiny-login-page
R
false
false
6,585
r
library(shiny) library(V8) library(sodium) library(openssl) library(rJava) #For sending an email from R library(mailR) #For sending an email from R library(DBI) library(pool) library(RSQLite) #DataBase pool <- dbPool(drv = RSQLite::SQLite()) onStop(function() { poolClose(pool) }) #Create table user in DB dbExecu...
\name{mean.grouped.data} \alias{mean.grouped.data} \title{Arithmetic Mean} \description{ Mean of grouped data objects. } \usage{ \method{mean}{grouped.data}(x, \dots) } \arguments{ \item{x}{an object of class \code{"grouped.data"}.} \item{\dots}{further arguments passed to or from other methods.} } \details{ Th...
/man/mean.grouped.data.Rd
no_license
cran/actuar
R
false
false
1,150
rd
\name{mean.grouped.data} \alias{mean.grouped.data} \title{Arithmetic Mean} \description{ Mean of grouped data objects. } \usage{ \method{mean}{grouped.data}(x, \dots) } \arguments{ \item{x}{an object of class \code{"grouped.data"}.} \item{\dots}{further arguments passed to or from other methods.} } \details{ Th...
parse_triqler_results_for_cox_benchmark <- function(){ list <- read_lines("tmp/triqler_results/triqler_result.tsv") %>% str_split("\t") headers <- list[[1]] triqler_result_df_raw <- list[-1] %>% map_dfr(function(chr){ c(set_names(as.list(chr[which(headers != "peptides")]), headers[he...
/compare_performance/run_triqler.R
no_license
const-ae/proDA-Paper
R
false
false
2,131
r
parse_triqler_results_for_cox_benchmark <- function(){ list <- read_lines("tmp/triqler_results/triqler_result.tsv") %>% str_split("\t") headers <- list[[1]] triqler_result_df_raw <- list[-1] %>% map_dfr(function(chr){ c(set_names(as.list(chr[which(headers != "peptides")]), headers[he...
# Find optimal permutations # called from clustalign # svd loss # ARGUMENTS: lambda: list of factor samples # pivot: matrix to align permutation to # stop: stopping criterion, largest reasonable norm for an aligned cluster mean # itermax: maximum number of permutations to search, can b...
/PSFout.R
permissive
poworoznek/sparse_bayesian_infinite_factor_models
R
false
false
1,309
r
# Find optimal permutations # called from clustalign # svd loss # ARGUMENTS: lambda: list of factor samples # pivot: matrix to align permutation to # stop: stopping criterion, largest reasonable norm for an aligned cluster mean # itermax: maximum number of permutations to search, can b...
testlist <- list(rates = c(-2.70494424383608e-11, -2.70494424244937e-11, -2.70494424244937e-11, -2.70494424244937e-11, 7.06683208934072e-304, -Inf, NaN, 1.23411474800827e+182, NaN, NaN, 5.43223507567683e-312, NaN, -1.34765572425519e+28, 6.47733882085731e-145, -9.52713064494326e+139, 1.36258221338603e-105, -1.347655...
/grattan/inst/testfiles/IncomeTax/libFuzzer_IncomeTax/IncomeTax_valgrind_files/1610125874-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
3,079
r
testlist <- list(rates = c(-2.70494424383608e-11, -2.70494424244937e-11, -2.70494424244937e-11, -2.70494424244937e-11, 7.06683208934072e-304, -Inf, NaN, 1.23411474800827e+182, NaN, NaN, 5.43223507567683e-312, NaN, -1.34765572425519e+28, 6.47733882085731e-145, -9.52713064494326e+139, 1.36258221338603e-105, -1.347655...
library(uavRst) ### Name: treepos_RL ### Title: 'rLiDAR' based tree detection of a LiDAR-derived Canopy Height ### Model (CHM) ### Aliases: treepos_RL ### ** Examples ## required packages require(uavRst) ## load data data(chm_seg) ## find trees tPosRL <- treepos_RL(chm = chm_seg[[1]], movin...
/data/genthat_extracted_code/uavRst/examples/treepos_RL.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
408
r
library(uavRst) ### Name: treepos_RL ### Title: 'rLiDAR' based tree detection of a LiDAR-derived Canopy Height ### Model (CHM) ### Aliases: treepos_RL ### ** Examples ## required packages require(uavRst) ## load data data(chm_seg) ## find trees tPosRL <- treepos_RL(chm = chm_seg[[1]], movin...
\name{agFun} \alias{agFun} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Aggregation Function } \description{ Function to create summary tables: Aggregated mean, median, sd and se } \usage{ agFun(dta, anty, ...) } %- maybe also 'usage' for other objects documented here. \arguments{...
/GSMP_Rpackage/GSMP/man/agFun.Rd
no_license
HilarioMurua/GlobalSpatialRisk
R
false
false
1,407
rd
\name{agFun} \alias{agFun} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Aggregation Function } \description{ Function to create summary tables: Aggregated mean, median, sd and se } \usage{ agFun(dta, anty, ...) } %- maybe also 'usage' for other objects documented here. \arguments{...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/constants.R \docType{data} \name{.h2o.__DKV} \alias{.h2o.__DKV} \title{Removal Endpoints} \format{ An object of class \code{character} of length 1. } \usage{ .h2o.__DKV } \description{ Removal Endpoints } \keyword{datasets}
/man/dot-h2o.__DKV.Rd
no_license
cran/h2o
R
false
true
302
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/constants.R \docType{data} \name{.h2o.__DKV} \alias{.h2o.__DKV} \title{Removal Endpoints} \format{ An object of class \code{character} of length 1. } \usage{ .h2o.__DKV } \description{ Removal Endpoints } \keyword{datasets}
\name{draw.shape} \alias{draw.shape} \title{ Draw shapefiles in an existing plot } \description{ Draw shapefiles in an existing plot } \usage{ draw.shape(shape, type = "poly", col = 1, ...) } %- maybe also 'usage' for other objects documented here. \arguments{ \item{shape}{ a shape list object created b...
/man/draw.shape.Rd
no_license
marchtaylor/mapplots
R
false
false
1,205
rd
\name{draw.shape} \alias{draw.shape} \title{ Draw shapefiles in an existing plot } \description{ Draw shapefiles in an existing plot } \usage{ draw.shape(shape, type = "poly", col = 1, ...) } %- maybe also 'usage' for other objects documented here. \arguments{ \item{shape}{ a shape list object created b...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/create_references_df_from_list.R \name{get_secondary_authors} \alias{get_secondary_authors} \title{Helper function: get secondary authors from list for a reference} \usage{ get_secondary_authors(record_list, collapse = FALSE) } \arguments{ \i...
/man/get_secondary_authors.Rd
permissive
KWB-R/kwb.endnote
R
false
true
600
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/create_references_df_from_list.R \name{get_secondary_authors} \alias{get_secondary_authors} \title{Helper function: get secondary authors from list for a reference} \usage{ get_secondary_authors(record_list, collapse = FALSE) } \arguments{ \i...
context('Stan Bridge Sampler Bugs') test_that("bridge_sampler.stanfit multicore works for one-parameter model.", { skip_on_cran() skip_on_travis() skip_on_os("windows") if (require(rstan)) { set.seed(12345) # compute difference scores n <- 10 y <- rnorm(n) # models stancodeH0 <- '...
/tests/testthat/test-stan_bridge_sampler_bugs.R
no_license
vandenman/bridgesampling
R
false
false
3,958
r
context('Stan Bridge Sampler Bugs') test_that("bridge_sampler.stanfit multicore works for one-parameter model.", { skip_on_cran() skip_on_travis() skip_on_os("windows") if (require(rstan)) { set.seed(12345) # compute difference scores n <- 10 y <- rnorm(n) # models stancodeH0 <- '...
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Correlation/upper_aerodigestive_tract.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.04,family="gaussian",standardize=TRUE) sink('./upper_aer...
/Model/EN/Correlation/upper_aerodigestive_tract/upper_aerodigestive_tract_019.R
no_license
esbgkannan/QSMART
R
false
false
388
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Correlation/upper_aerodigestive_tract.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.04,family="gaussian",standardize=TRUE) sink('./upper_aer...
shinyServer( function(input, output, session) { output$mapPlot = renderPlotly({ df <- accident_count df$hover <- with(df, paste(State_full, '<br>', "Number of accidents:", n)) l <- list(color = toRGB("grey"), width = 0.5) g <- list( scope = 'usa', projection = list(type = '...
/server.R
no_license
Jiaoli413/Data-Visualization-Project
R
false
false
4,793
r
shinyServer( function(input, output, session) { output$mapPlot = renderPlotly({ df <- accident_count df$hover <- with(df, paste(State_full, '<br>', "Number of accidents:", n)) l <- list(color = toRGB("grey"), width = 0.5) g <- list( scope = 'usa', projection = list(type = '...
library(plyr);library(dplyr) library(reshape2) library(tidyr) # separate library(magrittr) library(readxl) library(RSQLite) xlsfiles <- file.path("rawdata", list.files(path = "rawdata", pattern = "_[1,2]{1}.xls")) db <- dbConnect(SQLite(), dbname = "data/ECIS2.sqlite") loadData2 <- function(xlsfile, db.conn){ ...
/lib/LoadData2.R
no_license
tpall/ECIS_Project
R
false
false
3,677
r
library(plyr);library(dplyr) library(reshape2) library(tidyr) # separate library(magrittr) library(readxl) library(RSQLite) xlsfiles <- file.path("rawdata", list.files(path = "rawdata", pattern = "_[1,2]{1}.xls")) db <- dbConnect(SQLite(), dbname = "data/ECIS2.sqlite") loadData2 <- function(xlsfile, db.conn){ ...
rm(list=ls()) n = 6 set.seed(10) k <- 2 dat <- rnorm(n) fit_method <- function(x){binseginf::bsfs(x, numSteps = k)} test_func <- selectiveModel::segment_difference num_samp <- 2000 cores <- NA i = 5 set.seed(10*i) dat <- rnorm(n) tmp <- selected_model_inference(dat, fit_method = fit_method, test_func = test_func, ...
/experiments/cpp_tester.R
no_license
linnykos/selectiveModel
R
false
false
2,176
r
rm(list=ls()) n = 6 set.seed(10) k <- 2 dat <- rnorm(n) fit_method <- function(x){binseginf::bsfs(x, numSteps = k)} test_func <- selectiveModel::segment_difference num_samp <- 2000 cores <- NA i = 5 set.seed(10*i) dat <- rnorm(n) tmp <- selected_model_inference(dat, fit_method = fit_method, test_func = test_func, ...
% Please edit documentation in R/ecol.death.sim.R \name{ecol.death.sim} \alias{ecol.death.sim} \title{A simulation of the death of two species with certain probabilities} \usage{ ecol.death.sim(nr = 10, nc = 10, num.sp = c(50, 50), col.sp = c(1, 2), pch.sp = c(1, 2), col.die = 1, pch.die = 4, cex = 3, ...) } \argu...
/man/ecol.death.sim.Rd
no_license
dgrtwo/animation
R
false
false
1,875
rd
% Please edit documentation in R/ecol.death.sim.R \name{ecol.death.sim} \alias{ecol.death.sim} \title{A simulation of the death of two species with certain probabilities} \usage{ ecol.death.sim(nr = 10, nc = 10, num.sp = c(50, 50), col.sp = c(1, 2), pch.sp = c(1, 2), col.die = 1, pch.die = 4, cex = 3, ...) } \argu...
# set of fonction to query model db and models files # EXEMPLE # if(FALSE){ testFilter<-filterResults(idJob=17,dbOut='../data/base/dbModels.db') testList<-getEnsembleListSpecies(resultsTable=testFilter, modelsLoc='../data/models/') testPresProb<-presProbSpecies(testList) }...
/fun/plotProb.R
no_license
fxi/LebaMod
R
false
false
6,505
r
# set of fonction to query model db and models files # EXEMPLE # if(FALSE){ testFilter<-filterResults(idJob=17,dbOut='../data/base/dbModels.db') testList<-getEnsembleListSpecies(resultsTable=testFilter, modelsLoc='../data/models/') testPresProb<-presProbSpecies(testList) }...
library(ggplot2) library(plyr) ############################################################################ ### Plot simulation grid spatial locations ############################################################################ locs <- readRDS("Data/sim_locs.rds") grid <- subset(locs, grid == 1) gp <- ggplot(grid,...
/Slide-Presentation/Images-ordinary-kriging/weighted_cov_est_plots.R
no_license
dan410/Research-Writing
R
false
false
3,255
r
library(ggplot2) library(plyr) ############################################################################ ### Plot simulation grid spatial locations ############################################################################ locs <- readRDS("Data/sim_locs.rds") grid <- subset(locs, grid == 1) gp <- ggplot(grid,...
# load libraries # install.packages("survival") library(survival) library(ggplot2) library(ggrepel) # identify the data path path <- "C:/Jiwoo Lee/Myocardial Infarction Research Project 2017/" path <- "/Users/andreaganna/Documents/Work/Post_doc/jiwoo/" ################################################## # Process r...
/process_hesin.R
no_license
andgan/MI_project
R
false
false
2,701
r
# load libraries # install.packages("survival") library(survival) library(ggplot2) library(ggrepel) # identify the data path path <- "C:/Jiwoo Lee/Myocardial Infarction Research Project 2017/" path <- "/Users/andreaganna/Documents/Work/Post_doc/jiwoo/" ################################################## # Process r...
x <- tibble::tribble( ~chrom, ~start, ~end, "chr1", 10, 20, "chr1", 30, 40 ) y <- tibble::tribble( ~chrom, ~start, ~end, "chr1", 15, 20 ) test_that("jaccard coeff is calculated correctly", { res <- bed_jaccard(x, y) expect_equal(res$jaccard, 0.25) }) test_that("jaccard coeff is calc'd for large data se...
/tests/testthat/test_jaccard.r
permissive
rnabioco/valr
R
false
false
2,186
r
x <- tibble::tribble( ~chrom, ~start, ~end, "chr1", 10, 20, "chr1", 30, 40 ) y <- tibble::tribble( ~chrom, ~start, ~end, "chr1", 15, 20 ) test_that("jaccard coeff is calculated correctly", { res <- bed_jaccard(x, y) expect_equal(res$jaccard, 0.25) }) test_that("jaccard coeff is calc'd for large data se...
# Build Neural Network for classification using neuralnet library. rm(list=ls(all=TRUE)) # Set the working directory setwd("C:/Users/gmanish/Dropbox/latest/openminds/slides/MachineLearning/7.ANNs/") # Importing "data.csv" files's data into R dataframe using read.csv function. data = read.csv(file="data.csv", hea...
/BinaryClass_neuralnet.R
no_license
Murali423/Hand-Written-Digit-Recognition
R
false
false
4,012
r
# Build Neural Network for classification using neuralnet library. rm(list=ls(all=TRUE)) # Set the working directory setwd("C:/Users/gmanish/Dropbox/latest/openminds/slides/MachineLearning/7.ANNs/") # Importing "data.csv" files's data into R dataframe using read.csv function. data = read.csv(file="data.csv", hea...
`capscale` <- function (formula, data, distance = "euclidean", sqrt.dist = FALSE, comm = NULL, add = FALSE, dfun = vegdist, metaMDSdist = FALSE, na.action = na.fail, subset = NULL, ...) { EPS <- sqrt(.Machine$double.eps) if (!inherits(formula, "formula")) stop("Needs a mo...
/R/capscale.R
no_license
Microbiology/vegan
R
false
false
6,376
r
`capscale` <- function (formula, data, distance = "euclidean", sqrt.dist = FALSE, comm = NULL, add = FALSE, dfun = vegdist, metaMDSdist = FALSE, na.action = na.fail, subset = NULL, ...) { EPS <- sqrt(.Machine$double.eps) if (!inherits(formula, "formula")) stop("Needs a mo...
setwd("C:/Users/kate/Documents/datascience/coursera") NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") #merge the NEI and SCC data frames NEISCC<-merge(NEI, SCC, by="SCC", all.x=TRUE) #Subset the NEISCC dataset to include only Baltimore data baltimore<-subset(NEISCC, NEISCC$fips=...
/expl data ass 2/plot6.R
no_license
katemarielewis/datasciencecoursera
R
false
false
1,990
r
setwd("C:/Users/kate/Documents/datascience/coursera") NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") #merge the NEI and SCC data frames NEISCC<-merge(NEI, SCC, by="SCC", all.x=TRUE) #Subset the NEISCC dataset to include only Baltimore data baltimore<-subset(NEISCC, NEISCC$fips=...
#' Given source_info object, retrieves project information #' @param source_info is list with source information #' @return list with stacked dependency files, graph of dependencies, and condensed file information #' @export #'@examples #'\dontrun{ #' source_info <- create_source_file_dir("adaprHome","tree_controller....
/R/get_project_info_si.R
no_license
bokov/adapr
R
false
false
760
r
#' Given source_info object, retrieves project information #' @param source_info is list with source information #' @return list with stacked dependency files, graph of dependencies, and condensed file information #' @export #'@examples #'\dontrun{ #' source_info <- create_source_file_dir("adaprHome","tree_controller....
household_power_consumption <- read.table('household_power_consumption.txt', header=T, sep=';', skip=66637, nrows=2880) header <- read.table('household_power_consumption.txt', header=T, sep=';', nrows=1) colnames(household_power_consumption) <- colnames(header) household_power_consumption$Timestamp <- strptime(paste...
/plot3.R
no_license
samadsajanlal/ExData_Plotting1
R
false
false
909
r
household_power_consumption <- read.table('household_power_consumption.txt', header=T, sep=';', skip=66637, nrows=2880) header <- read.table('household_power_consumption.txt', header=T, sep=';', nrows=1) colnames(household_power_consumption) <- colnames(header) household_power_consumption$Timestamp <- strptime(paste...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dbexists.R \name{dbexists} \alias{dbexists} \title{Table exists} \usage{ dbexists(chan, tname) } \arguments{ \item{chan}{open RODBC channel} \item{tname}{tablename (including schema if there is one)} } \description{ Checks for the existence ...
/man/dbexists.Rd
no_license
christinabrady/ckit
R
false
true
451
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dbexists.R \name{dbexists} \alias{dbexists} \title{Table exists} \usage{ dbexists(chan, tname) } \arguments{ \item{chan}{open RODBC channel} \item{tname}{tablename (including schema if there is one)} } \description{ Checks for the existence ...
##Use my standard openning including call function source('C:/Users/bryan_000/Documents/GitHub/MyWork/StdOpen.R') call("epicalc") call("survival") call("graphics") studydata <- read.csv("smokerdisease.csv") df <- ftable(table(studydata$smoker, studydata$disease,studydata$female)) ##Nonsmokers - Nondisease df[1,1] #Ma...
/SmokerDiseaseSex.R
no_license
Prashant0701/PracticeAnalytics
R
false
false
1,289
r
##Use my standard openning including call function source('C:/Users/bryan_000/Documents/GitHub/MyWork/StdOpen.R') call("epicalc") call("survival") call("graphics") studydata <- read.csv("smokerdisease.csv") df <- ftable(table(studydata$smoker, studydata$disease,studydata$female)) ##Nonsmokers - Nondisease df[1,1] #Ma...
\name{dtgpd_log} \alias{dtgpd_log} %- Also NEED an '\alias' for EACH other topic documented here. \title{ internal } \description{ internal use only } \usage{ dtgpd_log(x, y, z, mar1 = c(0, 1, 0.1), mar2 = c(0, 1, 0.1), mar3 = c(0, 1, 0.1), dep = 1.5) } %- maybe also 'usage' for other objects documented her...
/man/dtgpd_log.Rd
no_license
muguangyuze/mgpd
R
false
false
3,309
rd
\name{dtgpd_log} \alias{dtgpd_log} %- Also NEED an '\alias' for EACH other topic documented here. \title{ internal } \description{ internal use only } \usage{ dtgpd_log(x, y, z, mar1 = c(0, 1, 0.1), mar2 = c(0, 1, 0.1), mar3 = c(0, 1, 0.1), dep = 1.5) } %- maybe also 'usage' for other objects documented her...
SNPtm2 <- function(trange=100,tsl=1.0,x6=NULL,r6=NULL) { testrange<- is.null(trange) if(testrange == TRUE) trange<- 400 # Time range testtsl<- is.null(tsl) if(testtsl == TRUE) tsl<- 1.0 # Time step length x<- rep(0,trange*6/tsl) x<- matrix(x,ncol=6) testr<- is....
/dave/R/SNPtm2.R
no_license
ingted/R-Examples
R
false
false
2,201
r
SNPtm2 <- function(trange=100,tsl=1.0,x6=NULL,r6=NULL) { testrange<- is.null(trange) if(testrange == TRUE) trange<- 400 # Time range testtsl<- is.null(tsl) if(testtsl == TRUE) tsl<- 1.0 # Time step length x<- rep(0,trange*6/tsl) x<- matrix(x,ncol=6) testr<- is....
# # Script outputs the variation frequency plots. Only useful for pretty pictures really. # rm(list=ls()) setwd("~/workspace/IGCSA/R") source("lib/gc_functions.R") source("lib/varplots.R") #args = commandArgs(trailingOnly = TRUE) #ens_dir = args[1] #gc_dir = args[2] data_dir = "~/Data/VariationNormal" plot=F ...
/R/variations.R
permissive
hjanime/IGCSA
R
false
false
5,152
r
# # Script outputs the variation frequency plots. Only useful for pretty pictures really. # rm(list=ls()) setwd("~/workspace/IGCSA/R") source("lib/gc_functions.R") source("lib/varplots.R") #args = commandArgs(trailingOnly = TRUE) #ens_dir = args[1] #gc_dir = args[2] data_dir = "~/Data/VariationNormal" plot=F ...
plotReachAftereffects <- function(target='inline') { if (target == 'svg') { svglite(file='doc/fig/Fig8.svg', width=4, height=4, system_fonts=list(sans='Arial')) } styles <- getStyle() par(mfrow=c(1,1), mar=c(4,4,2,0.1)) ylims=c(-.2*max(styles$rotation),max(styles$rotation)+(.2*max(...
/reach_aftereffects.R
no_license
chadv9999/The-effect-of-age-on-visuomotor-learning-processes
R
false
false
5,572
r
plotReachAftereffects <- function(target='inline') { if (target == 'svg') { svglite(file='doc/fig/Fig8.svg', width=4, height=4, system_fonts=list(sans='Arial')) } styles <- getStyle() par(mfrow=c(1,1), mar=c(4,4,2,0.1)) ylims=c(-.2*max(styles$rotation),max(styles$rotation)+(.2*max(...
\name{findInterval_right.closed} \alias{findInterval_right.closed} \title{Find Interval Numbers or Indices} \usage{ findInterval_right.closed(x, vec, leftmost.closed = FALSE, all.inside = FALSE) } \arguments{ \item{x}{numeric.} \item{vec}{numeric, sorted (weakly) increasingly, of length \code{N}...
/man/findInterval_right.closed.Rd
no_license
kuremon/lazyr
R
false
false
2,115
rd
\name{findInterval_right.closed} \alias{findInterval_right.closed} \title{Find Interval Numbers or Indices} \usage{ findInterval_right.closed(x, vec, leftmost.closed = FALSE, all.inside = FALSE) } \arguments{ \item{x}{numeric.} \item{vec}{numeric, sorted (weakly) increasingly, of length \code{N}...
#' Non-Gaussian maximum likelihood identification of SVAR models #' #' Given an estimated VAR model, this function applies identification by means of a non-Gaussian likelihood for the structural impact matrix B of the corresponding SVAR model #' \deqn{y_t=c_t+A_1 y_{t-1}+...+A_p y_{t-p}+u_t =c_t+A_1 y_{t-1}+...+A_p y...
/R/id.ngml.R
permissive
AlexanderRitz/svars
R
false
false
4,784
r
#' Non-Gaussian maximum likelihood identification of SVAR models #' #' Given an estimated VAR model, this function applies identification by means of a non-Gaussian likelihood for the structural impact matrix B of the corresponding SVAR model #' \deqn{y_t=c_t+A_1 y_{t-1}+...+A_p y_{t-p}+u_t =c_t+A_1 y_{t-1}+...+A_p y...
context("ecr main function") setUpControlObject = function(n.population, n.offspring, survival.strategy = "plus", n.elite = 1L, n.mating.pool = round(n.population / 2), max.iter = 60L) { control = setupECRControl( n.population = n.population, n.offspring = n.offspring, survival.strategy = survi...
/tests/testthat/test_ecr.R
no_license
lucasmpavelski/ecr
R
false
false
7,736
r
context("ecr main function") setUpControlObject = function(n.population, n.offspring, survival.strategy = "plus", n.elite = 1L, n.mating.pool = round(n.population / 2), max.iter = 60L) { control = setupECRControl( n.population = n.population, n.offspring = n.offspring, survival.strategy = survi...
# Regresion Avanzada: Examen Final # Modelo Dinamico #-Defining data- data_dinam <- list("n"=n,"y"=c(datos$WTI[1:(n-3)],rep(NA,m)), "x"=select(datos, -WTI)) #-Defining inits- inits<-function(){list(alpha=rep(0,n),beta=matrix(0,k,n),tau.y=1,tau.a=1,tau.b=rep(1,k),yp=rep(1,n))} #-Selecting parameters to monitor- para...
/Modelos/Modelo_Dinamico.R
no_license
AlejandraLLI/Reg_Av_Proyecto_Final
R
false
false
2,513
r
# Regresion Avanzada: Examen Final # Modelo Dinamico #-Defining data- data_dinam <- list("n"=n,"y"=c(datos$WTI[1:(n-3)],rep(NA,m)), "x"=select(datos, -WTI)) #-Defining inits- inits<-function(){list(alpha=rep(0,n),beta=matrix(0,k,n),tau.y=1,tau.a=1,tau.b=rep(1,k),yp=rep(1,n))} #-Selecting parameters to monitor- para...
library(rstan) library(mvtnorm) library(tidyverse) library(invgamma) library(reshape2) library(magrittr) library(cowplot) library(ggsci) library(shinystan) library(KScorrect) library(Matrix) library(matrixcalc) library(GGally) library(Sim.DiffProc) library(cusp) library(microbiome) library(smoother) library(earlywarnin...
/main.R
no_license
velait/OUP
R
false
false
456
r
library(rstan) library(mvtnorm) library(tidyverse) library(invgamma) library(reshape2) library(magrittr) library(cowplot) library(ggsci) library(shinystan) library(KScorrect) library(Matrix) library(matrixcalc) library(GGally) library(Sim.DiffProc) library(cusp) library(microbiome) library(smoother) library(earlywarnin...
# computes X values for up to three way interactions and returns as data frame interactions <- function(X, n, var_order = NULL, three_way = FALSE){ if(n > ncol(X)) { stop("n must be less then or equal to ncol(X)") } if(n < 2) { stop("n must be greater than 1") } if(n < 3 & three_way == TRUE) { ...
/fuzzy_forest_int_rem.R
no_license
raguilar2/fuzzier_forest
R
false
false
16,159
r
# computes X values for up to three way interactions and returns as data frame interactions <- function(X, n, var_order = NULL, three_way = FALSE){ if(n > ncol(X)) { stop("n must be less then or equal to ncol(X)") } if(n < 2) { stop("n must be greater than 1") } if(n < 3 & three_way == TRUE) { ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/agedepth.R \name{agedepth} \alias{agedepth} \title{Plot an age-depth model} \usage{ agedepth( set = get("info"), BCAD = set$BCAD, depth.unit = "cm", age.unit = "yr", unit = depth.unit, d.lab = c(), age.lab = c(), yr.lab = age....
/fuzzedpackages/rplum/man/agedepth.Rd
no_license
akhikolla/testpackages
R
false
true
12,529
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/agedepth.R \name{agedepth} \alias{agedepth} \title{Plot an age-depth model} \usage{ agedepth( set = get("info"), BCAD = set$BCAD, depth.unit = "cm", age.unit = "yr", unit = depth.unit, d.lab = c(), age.lab = c(), yr.lab = age....
# # (c) Florian Katerndal # library(stringr) library(dplyr) library(raster) library(RStoolbox) library(sf) library(itertools) library(foreach) library(doParallel) library(readr) source("/data/Dagobah/fonda/shk/fonda/proj_ab/scripts/funs.R") ras_files <- list.files("/data/Dagobah/fonda/shk/fonda/proj_ab/data/basefiles...
/R-Scripts/analysis_03.R
no_license
Florian-Katerndahl/Proj-Arbeiten
R
false
false
12,917
r
# # (c) Florian Katerndal # library(stringr) library(dplyr) library(raster) library(RStoolbox) library(sf) library(itertools) library(foreach) library(doParallel) library(readr) source("/data/Dagobah/fonda/shk/fonda/proj_ab/scripts/funs.R") ras_files <- list.files("/data/Dagobah/fonda/shk/fonda/proj_ab/data/basefiles...