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
\name{gen.sibship} \alias{gen.sibship} \title{Get id numbers of siblings} \description{Returns the id numbers of the siblings of specified individuals.} \usage{gen.sibship( gen, individuals, halfSibling = "T", ...)} \arguments{ \item{gen}{An object of class GLgen obtained with gen.genealogy, gen.lineages or gen.branchi...
/fuzzedpackages/GENLIB/man/gen.sibship.Rd
no_license
akhikolla/testpackages
R
false
false
1,094
rd
\name{gen.sibship} \alias{gen.sibship} \title{Get id numbers of siblings} \description{Returns the id numbers of the siblings of specified individuals.} \usage{gen.sibship( gen, individuals, halfSibling = "T", ...)} \arguments{ \item{gen}{An object of class GLgen obtained with gen.genealogy, gen.lineages or gen.branchi...
library(testthat) # Pruebas tipo variable --------------------------------------------------- context("Valido la variable SalarioEstimado") datos<- read.csv("datach.csv", row.names=1) # con paquete testthat decimos que esperamos de tabla expect_true(is.numeric(datos$SalarioEstimado))
/test/test_salario.R
no_license
edwinfeijoo467/tarea3_
R
false
false
289
r
library(testthat) # Pruebas tipo variable --------------------------------------------------- context("Valido la variable SalarioEstimado") datos<- read.csv("datach.csv", row.names=1) # con paquete testthat decimos que esperamos de tabla expect_true(is.numeric(datos$SalarioEstimado))
install.packages('nycflights13') library(tidyverse) library(nycflights13) ?flights #Question 1 #1 How many flights flew into LAX? nrow(filter(flights, dest == 'LAX')) #16174 #2 How many flights flew out of LAX? nrow(filter(flights, origin == 'LAX')) #0 #3 How many flights are greater than or equal to 2000 miles? nrow...
/submissions/01-r4ds-data-trasformation_Han_Luna.R
no_license
zhuoaprilfu/r4ds-exercises
R
false
false
2,023
r
install.packages('nycflights13') library(tidyverse) library(nycflights13) ?flights #Question 1 #1 How many flights flew into LAX? nrow(filter(flights, dest == 'LAX')) #16174 #2 How many flights flew out of LAX? nrow(filter(flights, origin == 'LAX')) #0 #3 How many flights are greater than or equal to 2000 miles? nrow...
library(tidyverse) library(p) # hi there!
/vis.R
no_license
juliadonkers/test2
R
false
false
43
r
library(tidyverse) library(p) # hi there!
#' collect_geo #' Helper function to replace collect() when we need an sf dataframe #' @param x A \code{tbl} #' @param n Number of rows to collect. If \code{n} is NULL all rows are downloaded. #' #' @return A \code{sf} data frame. #' @export #' #' #' @importFrom dplyr %>% collect_geo <- function(x, n = NULL) { if (!i...
/R/connect_db.R
no_license
NewYorkCityCouncil/council_snapshots
R
false
false
496
r
#' collect_geo #' Helper function to replace collect() when we need an sf dataframe #' @param x A \code{tbl} #' @param n Number of rows to collect. If \code{n} is NULL all rows are downloaded. #' #' @return A \code{sf} data frame. #' @export #' #' #' @importFrom dplyr %>% collect_geo <- function(x, n = NULL) { if (!i...
# Load in the required packages that makes the 3D figure pacman::p_load(scatterplot3d, rgdal, maptools, tidyverse, zoo, sf, GISTools, ggsn) sites <- read_csv("./Materials for R mapping/Apr_RCC_chla_mapping.csv") scatter.grid <- function (x, y = NULL, z = NULL, color = par("col"), pch = NULL, ...
/Materials for R mapping/29Apr19_RCC_map.R
no_license
wwoelmer/Thesis
R
false
false
23,826
r
# Load in the required packages that makes the 3D figure pacman::p_load(scatterplot3d, rgdal, maptools, tidyverse, zoo, sf, GISTools, ggsn) sites <- read_csv("./Materials for R mapping/Apr_RCC_chla_mapping.csv") scatter.grid <- function (x, y = NULL, z = NULL, color = par("col"), pch = NULL, ...
# This is akin to model_free_decay_rates.r, but we use the integration dates # drawn using a nearest-neighbour method. # The details of this analysis: # - "nearest neighbour" integration data # - special handling for P3's VL data (i.e. model starts from the # blip rather than ART initiation) source("plot_helpers...
/EliteControllers/model_free_decay_rates_nearest_neighbour_integration_dates.r
no_license
cfe-lab/ReservoirModelling
R
false
false
1,247
r
# This is akin to model_free_decay_rates.r, but we use the integration dates # drawn using a nearest-neighbour method. # The details of this analysis: # - "nearest neighbour" integration data # - special handling for P3's VL data (i.e. model starts from the # blip rather than ART initiation) source("plot_helpers...
#' @rdname get_dataverse #' @title Get Dataverse #' @description Retrieve details of a Dataverse #' #' @details \code{get_dataverse} function retrieves basic information about a Dataverse from a Dataverse server. To see the contents of the Dataverse, use \code{\link{dataverse_contents}} instead. Contents might include ...
/R/get_dataverse.R
permissive
EdJeeOnGitHub/dataverse-client-r
R
false
false
2,793
r
#' @rdname get_dataverse #' @title Get Dataverse #' @description Retrieve details of a Dataverse #' #' @details \code{get_dataverse} function retrieves basic information about a Dataverse from a Dataverse server. To see the contents of the Dataverse, use \code{\link{dataverse_contents}} instead. Contents might include ...
#' require(data.table) #' require(tidyverse) #' path2Function="G:/signature/Git/MRScore_Tumor/Rcode/function/" #' source(paste0(path2Function,"./Counts2DEG.R")) #' mymeta<-fread(paste0(path2Function,"./testdata/counts2DEGs_meta.csv"))%>%as.data.frame() #' mycountsMat<-fread(paste0(path2Function,"./testdata/counts2DEGs_...
/Rcode/function/expr2MRscore.R
no_license
zhaoxia413/MRScore_Tumor
R
false
false
2,166
r
#' require(data.table) #' require(tidyverse) #' path2Function="G:/signature/Git/MRScore_Tumor/Rcode/function/" #' source(paste0(path2Function,"./Counts2DEG.R")) #' mymeta<-fread(paste0(path2Function,"./testdata/counts2DEGs_meta.csv"))%>%as.data.frame() #' mycountsMat<-fread(paste0(path2Function,"./testdata/counts2DEGs_...
library(survival) library(foreign) library(texreg) library(survminer) library(wesanderson) dat <- read.dta("~/Dropbox/Archive/Teaching/GLM_Spring_2016/Data/warchest.dta") # te: time until a challenger enters a race against an incumbant # wc: warchest of incumbant # pvote: incumbant vote share # democrat # south head(...
/recitation/survival_stuff.R
no_license
asrosenberg/GLM
R
false
false
2,004
r
library(survival) library(foreign) library(texreg) library(survminer) library(wesanderson) dat <- read.dta("~/Dropbox/Archive/Teaching/GLM_Spring_2016/Data/warchest.dta") # te: time until a challenger enters a race against an incumbant # wc: warchest of incumbant # pvote: incumbant vote share # democrat # south head(...
######################### Initial Stock Download ################################ # Set working directory setwd(dirname(rstudioapi::getActiveDocumentContext()$path)) # Set working directory to where R script is saved # Load required packages library(quantmod) library(DBI) library(RSQLite) # Stock tickers tickers <- c...
/stock_init.R
no_license
pearteachar/StockMarket
R
false
false
1,126
r
######################### Initial Stock Download ################################ # Set working directory setwd(dirname(rstudioapi::getActiveDocumentContext()$path)) # Set working directory to where R script is saved # Load required packages library(quantmod) library(DBI) library(RSQLite) # Stock tickers tickers <- c...
get.marked = function(DS="file" ) { tags.datadir= file.path( project.datadirectory("snowcrab"), "data", "tagging" ) marked.file="tags.1996_2001.csv" marked = NULL if (DS=="redo") { marked = read.table( file.path( tags.datadir, marked.file), sep=";", header=T, as.is=T) marked$Nc...
/snowcrab/src/_Rfunctions/tagging/get.marked.r
no_license
rodrigosantana/ecomod
R
false
false
678
r
get.marked = function(DS="file" ) { tags.datadir= file.path( project.datadirectory("snowcrab"), "data", "tagging" ) marked.file="tags.1996_2001.csv" marked = NULL if (DS=="redo") { marked = read.table( file.path( tags.datadir, marked.file), sep=";", header=T, as.is=T) marked$Nc...
1+1 # Matrix example <- matrix(c(1, 2, 3, 4, 5, 6, 7, 8), nrow=4, ncol=2)
/The Data Scientist Toolbox/Week2 Installing R and Rstudio/RStudio Tour/Scripts/RstudioTour.R
no_license
SIMSON20/Data-Science-Specialization-Using-R
R
false
false
79
r
1+1 # Matrix example <- matrix(c(1, 2, 3, 4, 5, 6, 7, 8), nrow=4, ncol=2)
#' map UI Function #' #' @description A shiny Module. #' #' @param id,input,output,session Internal parameters for {shiny}. #' #' @noRd #' #' @importFrom shiny NS tagList mod_map_ui <- function(id){ ns <- NS(id) pageContainer( class = "light", h2("Scores through time"), shinyWidgets::radioGroupButtons...
/R/mod_map.R
permissive
news-r/fopi.app
R
false
false
2,210
r
#' map UI Function #' #' @description A shiny Module. #' #' @param id,input,output,session Internal parameters for {shiny}. #' #' @noRd #' #' @importFrom shiny NS tagList mod_map_ui <- function(id){ ns <- NS(id) pageContainer( class = "light", h2("Scores through time"), shinyWidgets::radioGroupButtons...
#plot 4, multiplot par(mfrow=c(2,2)) par(mar=c(4,4,4,4)) plot(tpower$dt, tpower$Global_active_power, type = "l", xlab = "", ylab = "Global Active Power (kilowatts)") plot(tpower$dt, tpower$Voltage, type = "l", xlab = "datetime", ylab = "Voltage") plot(tpower$dt, tpower$Sub_metering_1, type = "l", xlab = "", ylab = "...
/Week 1/plot4.R
no_license
remembrance1/Coursera_Exploratory-Data-Analysis
R
false
false
781
r
#plot 4, multiplot par(mfrow=c(2,2)) par(mar=c(4,4,4,4)) plot(tpower$dt, tpower$Global_active_power, type = "l", xlab = "", ylab = "Global Active Power (kilowatts)") plot(tpower$dt, tpower$Voltage, type = "l", xlab = "datetime", ylab = "Voltage") plot(tpower$dt, tpower$Sub_metering_1, type = "l", xlab = "", ylab = "...
## These functions create a special object that stores a matrix and caches it's inverse. ## This function creates a "special matrix", which is really a list ## containing functions that set the value of the matrix, get the value of the matrix, ## set the value of the inverse and get the value of the inverse makeCache...
/cachematrix.R
no_license
HarmonG/ProgrammingAssignment2
R
false
false
1,061
r
## These functions create a special object that stores a matrix and caches it's inverse. ## This function creates a "special matrix", which is really a list ## containing functions that set the value of the matrix, get the value of the matrix, ## set the value of the inverse and get the value of the inverse makeCache...
library(phylosim) ### Name: ContinuousInsertor ### Title: The ContinuousInsertor class ### Aliases: ContinuousInsertor ### ** Examples # create a ContinuousInsertor process o<-ContinuousInsertor( name="Conty", rate=0.1, dist=expression(1), ma...
/data/genthat_extracted_code/phylosim/examples/ContinuousInsertor.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,356
r
library(phylosim) ### Name: ContinuousInsertor ### Title: The ContinuousInsertor class ### Aliases: ContinuousInsertor ### ** Examples # create a ContinuousInsertor process o<-ContinuousInsertor( name="Conty", rate=0.1, dist=expression(1), ma...
library(Seurat) dir <- "HCC_Stem_scRNAseq" ########################## figure <- "Figure_5_and_S5/5CD_S5C_inferCNV_lineage" other_figure <- "Figure_5_and_S5/5BEFG_S5AB_integration_and_annotation" data_subpath <- paste0(dir,"/data/",figure) outs_subpath <- paste0(dir,"/outs/",figure) dir.create(outs_subpath) counts_a...
/scripts/Figure_5_and_S5/5CD_S5C_inferCNV_lineage/1_extract_lineage_counts_matrix_and_meta.R
no_license
holab-hku/HCC_Stem_scRNAseq
R
false
false
1,928
r
library(Seurat) dir <- "HCC_Stem_scRNAseq" ########################## figure <- "Figure_5_and_S5/5CD_S5C_inferCNV_lineage" other_figure <- "Figure_5_and_S5/5BEFG_S5AB_integration_and_annotation" data_subpath <- paste0(dir,"/data/",figure) outs_subpath <- paste0(dir,"/outs/",figure) dir.create(outs_subpath) counts_a...
#' Posterior classification and class-membership probabilities #' #' This function provides the posterior classification and posterior individual #' class-membership probabilities for external data. #' #' @param model an object inheriting from class \code{hlme}, \code{lcmm}, #' \code{Jointlcmm} or \code{multlcmm} r...
/R/predictClass.R
no_license
anarouanet/lcmm
R
false
false
2,904
r
#' Posterior classification and class-membership probabilities #' #' This function provides the posterior classification and posterior individual #' class-membership probabilities for external data. #' #' @param model an object inheriting from class \code{hlme}, \code{lcmm}, #' \code{Jointlcmm} or \code{multlcmm} r...
# Andreas Put & Li Quan # # Homework 2: Statistische Modellen & Data-analyse # # May 23, 2011 # ##################################################### library(MASS) library(car) autos<-read.table("autos.txt",header=T,sep=",",na.strings="?") autos$symbol...
/homework2/R/conflicted/homework2 (Li Quan's conflicted copy 2011-05-22 (1)).R
no_license
lquan/DataModelling
R
false
false
5,084
r
# Andreas Put & Li Quan # # Homework 2: Statistische Modellen & Data-analyse # # May 23, 2011 # ##################################################### library(MASS) library(car) autos<-read.table("autos.txt",header=T,sep=",",na.strings="?") autos$symbol...
library("tidyverse") ############################## # 1. Read in the data ############################## rmds = "04-virtual.Rmd" ############################3 # 2. Function to extract data ############################# rmd_parse = function(entry) { values = list(year = NA, month = NA, date = NA, name = NA, ...
/R/parse_virtual.R
no_license
attitte/meetingsR
R
false
false
1,297
r
library("tidyverse") ############################## # 1. Read in the data ############################## rmds = "04-virtual.Rmd" ############################3 # 2. Function to extract data ############################# rmd_parse = function(entry) { values = list(year = NA, month = NA, date = NA, name = NA, ...
plot4<-function(){ #Reads the text file after it has already been extracted and saved to the main directory #Accounting for the null characters and the separator character energy<-read.table("household_power_consumption.txt",header=TRUE,sep=";",na.strings="?") #Converts the Date...
/plot4.R
no_license
javamousse/ExData_Plotting1
R
false
false
2,407
r
plot4<-function(){ #Reads the text file after it has already been extracted and saved to the main directory #Accounting for the null characters and the separator character energy<-read.table("household_power_consumption.txt",header=TRUE,sep=";",na.strings="?") #Converts the Date...
#launch relevant packages library(jsonlite) library(httr) library(Rcpp) library(httpuv) #register with github API git_id = "0f0a2fd5902ce287334a" git_secret = "e2e13b19c6faaec7ed7eb1819311088f2c78fdc2" gitApp <- oauth_app("github", git_id, git_secret) git_token <- oauth2.0_token(oauth_endpoints("github"),gitAp...
/getting_data/wk2/wk2_1.R
no_license
randallhelms/datasciencecoursera
R
false
false
584
r
#launch relevant packages library(jsonlite) library(httr) library(Rcpp) library(httpuv) #register with github API git_id = "0f0a2fd5902ce287334a" git_secret = "e2e13b19c6faaec7ed7eb1819311088f2c78fdc2" gitApp <- oauth_app("github", git_id, git_secret) git_token <- oauth2.0_token(oauth_endpoints("github"),gitAp...
testlist <- list(x = numeric(0)) result <- do.call(myTAI:::cpp_harmonic_mean,testlist) str(result)
/myTAI/inst/testfiles/cpp_harmonic_mean/AFL_cpp_harmonic_mean/cpp_harmonic_mean_valgrind_files/1615844633-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
98
r
testlist <- list(x = numeric(0)) result <- do.call(myTAI:::cpp_harmonic_mean,testlist) str(result)
#Load the csv Data data <- read.csv("C:\\Users\\abhi\\Desktop\\6611_csvFiles\\New test\\ApacheAnt\\Dataset_ApacheAnt.csv") #Assign to input data form from each column input <- data[,c("ConditionalTestLogic","EmptyTest","GeneralFixture","EagerTest","LazyTest","CountDeclClassMethod","SumCyclomatic","MaxInheritanceTr...
/ApacheAnt__LazyTest.R
no_license
Surya64/SM_Team9
R
false
false
2,495
r
#Load the csv Data data <- read.csv("C:\\Users\\abhi\\Desktop\\6611_csvFiles\\New test\\ApacheAnt\\Dataset_ApacheAnt.csv") #Assign to input data form from each column input <- data[,c("ConditionalTestLogic","EmptyTest","GeneralFixture","EagerTest","LazyTest","CountDeclClassMethod","SumCyclomatic","MaxInheritanceTr...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/func_drift2hr.R \name{drift2hr} \alias{drift2hr} \title{Transform from drift scale to hazard ratio scale} \usage{ drift2hr(drift, trtfrac, maxevents) } \arguments{ \item{drift}{expectation of drift estimate} \item{trtfrac}{treatment randomiz...
/man/drift2hr.Rd
permissive
fzhang8/gsdbias
R
false
true
668
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/func_drift2hr.R \name{drift2hr} \alias{drift2hr} \title{Transform from drift scale to hazard ratio scale} \usage{ drift2hr(drift, trtfrac, maxevents) } \arguments{ \item{drift}{expectation of drift estimate} \item{trtfrac}{treatment randomiz...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/run-recode-all.R \name{def_recode_all} \alias{def_recode_all} \title{Recode all columns in a dataset using a definitions list} \usage{ def_recode_all(values_tbl, def_list, .default = NULL, .missing = NULL) } \arguments{ \item{values_tbl}{A da...
/man/def_recode_all.Rd
permissive
davisadamw/definer
R
false
true
1,732
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/run-recode-all.R \name{def_recode_all} \alias{def_recode_all} \title{Recode all columns in a dataset using a definitions list} \usage{ def_recode_all(values_tbl, def_list, .default = NULL, .missing = NULL) } \arguments{ \item{values_tbl}{A da...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/blblm.R \name{coef.blblm} \alias{coef.blblm} \title{calculate the blblm avg coeficient} \usage{ \method{coef}{blblm}(object, ...) } \arguments{ \item{object}{a blblm object} } \value{ a coefficient } \description{ calculate the blblm avg coef...
/man/coef.blblm.Rd
no_license
yuliu10/blblm
R
false
true
329
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/blblm.R \name{coef.blblm} \alias{coef.blblm} \title{calculate the blblm avg coeficient} \usage{ \method{coef}{blblm}(object, ...) } \arguments{ \item{object}{a blblm object} } \value{ a coefficient } \description{ calculate the blblm avg coef...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mediaconnect_operations.R \name{mediaconnect_start_flow} \alias{mediaconnect_start_flow} \title{Starts a flow} \usage{ mediaconnect_start_flow(FlowArn) } \arguments{ \item{FlowArn}{[required] The ARN of the flow that you want to start.} } \de...
/paws/man/mediaconnect_start_flow.Rd
permissive
johnnytommy/paws
R
false
true
451
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mediaconnect_operations.R \name{mediaconnect_start_flow} \alias{mediaconnect_start_flow} \title{Starts a flow} \usage{ mediaconnect_start_flow(FlowArn) } \arguments{ \item{FlowArn}{[required] The ARN of the flow that you want to start.} } \de...
#' Constructor for a class in the PredictiveModel class hierarchy that implements a simple function regressing the top correlated features #' R5 Class for Bayesian Lasso for predictiveModeling #' Bayesian Lasso Regression Model is now included into our predictiveModeling #' #' @export require("standGL") require("synaps...
/R5/myOverlapGroupLassoModel.R
no_license
insockjang/DrugResponse
R
false
false
5,842
r
#' Constructor for a class in the PredictiveModel class hierarchy that implements a simple function regressing the top correlated features #' R5 Class for Bayesian Lasso for predictiveModeling #' Bayesian Lasso Regression Model is now included into our predictiveModeling #' #' @export require("standGL") require("synaps...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/add_asym_connectivity_penalties.R \name{add_asym_connectivity_penalties} \alias{add_asym_connectivity_penalties} \alias{add_asym_connectivity_penalties,ConservationProblem,ANY,ANY,Matrix-method} \alias{add_asym_connectivity_penalties,Conserva...
/man/add_asym_connectivity_penalties.Rd
no_license
bbest/prioritizr
R
false
true
12,269
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/add_asym_connectivity_penalties.R \name{add_asym_connectivity_penalties} \alias{add_asym_connectivity_penalties} \alias{add_asym_connectivity_penalties,ConservationProblem,ANY,ANY,Matrix-method} \alias{add_asym_connectivity_penalties,Conserva...
library(ggplot2); library(caret); library(Hmisc); set.seed(1337) #import data training <- read.csv("data/adult.data", header = FALSE, na.strings = "?") #Data description summary(training) describe(training) head(training) sapply(training, class) str(training) # Split training data into train and test to do cross-va...
/DecisionTree/code/FirstTest.R
no_license
ashishpatel26/codelibrary
R
false
false
1,286
r
library(ggplot2); library(caret); library(Hmisc); set.seed(1337) #import data training <- read.csv("data/adult.data", header = FALSE, na.strings = "?") #Data description summary(training) describe(training) head(training) sapply(training, class) str(training) # Split training data into train and test to do cross-va...
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #' PDF Dictionary object creator #' #' @import R6 #' @import glue #' @export #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PDFDict <- R6::R6Class( "PDFDict", public = list( dict = NULL, initia...
/R/PDFDict.R
permissive
Yixf-Self/minipdf
R
false
false
4,131
r
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #' PDF Dictionary object creator #' #' @import R6 #' @import glue #' @export #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PDFDict <- R6::R6Class( "PDFDict", public = list( dict = NULL, initia...
library(paleoTS) sizeData<-read.delim('bodySizes.txt') timescale<-read.delim('https://raw.githubusercontent.com/naheim/paleosizePaper/master/rawDataFiles/timescale.txt') n.bins<-nrow(timescale) my.mean<-vector(mode="numeric", length=n.bins) my.var<-vector(mode="numeric", length=n.bins) my.n<-vector(mode="numeric", leng...
/R Exercises/paleoTS Practice.R
no_license
saketbakshi/bioHSI_2018
R
false
false
1,231
r
library(paleoTS) sizeData<-read.delim('bodySizes.txt') timescale<-read.delim('https://raw.githubusercontent.com/naheim/paleosizePaper/master/rawDataFiles/timescale.txt') n.bins<-nrow(timescale) my.mean<-vector(mode="numeric", length=n.bins) my.var<-vector(mode="numeric", length=n.bins) my.n<-vector(mode="numeric", leng...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/model-bayes.R \docType{class} \name{Zelig-bayes-class} \alias{Zelig-bayes-class} \alias{zbayes} \title{Bayes Model object for inheritance across models in Zelig} \description{ Bayes Model object for inheritance across models in Zelig } \secti...
/man/Zelig-bayes-class.Rd
no_license
antoinevernet/Zelig
R
false
true
484
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/model-bayes.R \docType{class} \name{Zelig-bayes-class} \alias{Zelig-bayes-class} \alias{zbayes} \title{Bayes Model object for inheritance across models in Zelig} \description{ Bayes Model object for inheritance across models in Zelig } \secti...
rowidformat <- function(n, has_title_row = FALSE, has_star = FALSE, ...) { capital <- rif_capital(has_title_row, has_star, ...) shaft <- rif_shaft(n, ...) new_pillar_1e(capital, shaft) } new_pillar_1e <- function(capital, shaft, width = NULL) { ret <- structure( list(capital = capital, shaft = shaft), ...
/R/pillar.R
permissive
mariusbarth/pillar
R
false
false
1,667
r
rowidformat <- function(n, has_title_row = FALSE, has_star = FALSE, ...) { capital <- rif_capital(has_title_row, has_star, ...) shaft <- rif_shaft(n, ...) new_pillar_1e(capital, shaft) } new_pillar_1e <- function(capital, shaft, width = NULL) { ret <- structure( list(capital = capital, shaft = shaft), ...
#' Nimble Model Code #' #' @export model.code = function() nimbleCode({ for (k in 1:K) { v[k] ~ dbeta(alpha/K, 1) for (j in 1:J) { Z0[j, k] ~ dbern(v[k]) Z[j, k] <- Z0[j, k] + 1 } } alpha ~ dgamma(a_alpha, b_alpha) for (l in 1:L) { # mus_0 mus[1,l] ~ T(dnorm(psi_0, var=tau2_0),...
/cytof/src/model4/cytof4/R/model.R
no_license
luiarthur/ucsc_litreview
R
false
false
1,318
r
#' Nimble Model Code #' #' @export model.code = function() nimbleCode({ for (k in 1:K) { v[k] ~ dbeta(alpha/K, 1) for (j in 1:J) { Z0[j, k] ~ dbern(v[k]) Z[j, k] <- Z0[j, k] + 1 } } alpha ~ dgamma(a_alpha, b_alpha) for (l in 1:L) { # mus_0 mus[1,l] ~ T(dnorm(psi_0, var=tau2_0),...
# Getting and Cleaning Data # Coursera # John Hopkins University # Week 3 - Quiz - Question 2 # install and load package install.packages("jpeg") library(jpeg) # download JPEG file - dont forget to include mode="wb" or you will get an error download.file("https://d396qusza40orc.cloudfront.net/getdata%2Fje...
/Week 3 - Question.2.R
no_license
evashah/Getting-and-Cleaning-Data
R
false
false
615
r
# Getting and Cleaning Data # Coursera # John Hopkins University # Week 3 - Quiz - Question 2 # install and load package install.packages("jpeg") library(jpeg) # download JPEG file - dont forget to include mode="wb" or you will get an error download.file("https://d396qusza40orc.cloudfront.net/getdata%2Fje...
#------------------------------------------------------------------------------- # intsBBM function. # Created: Sonia Sanchez - 2018-05-24 08:10:31 # Changed: 2018-06-01 10:24:36 (ssanchez) #------------------------------------------------------------------------------- # BBMpar.r - DESC # bbm/R/BBMpar.r # Copyrig...
/R/BBMpar.R
no_license
zanbi/FLR_BBM
R
false
false
6,354
r
#------------------------------------------------------------------------------- # intsBBM function. # Created: Sonia Sanchez - 2018-05-24 08:10:31 # Changed: 2018-06-01 10:24:36 (ssanchez) #------------------------------------------------------------------------------- # BBMpar.r - DESC # bbm/R/BBMpar.r # Copyrig...
kbmf1k1mkl_semisupervised_regression_variational_train <- function(Kx, Kz, Y, parameters) { set.seed(parameters$seed) Dx <- dim(Kx)[1] Nx <- dim(Kx)[2] Dz <- dim(Kz)[1] Nz <- dim(Kz)[2] Pz <- dim(Kz)[3] R <- parameters$R sigma_g <- parameters$sigma_g sigma_h <- parameters$sigma_h sigma_y <- paramet...
/GRGMF/kbmf2k/kbmf1k1mkl/kbmf1k1mkl_semisupervised_regression_variational_train.R
no_license
RondoChow/GRGMF
R
false
false
4,342
r
kbmf1k1mkl_semisupervised_regression_variational_train <- function(Kx, Kz, Y, parameters) { set.seed(parameters$seed) Dx <- dim(Kx)[1] Nx <- dim(Kx)[2] Dz <- dim(Kz)[1] Nz <- dim(Kz)[2] Pz <- dim(Kz)[3] R <- parameters$R sigma_g <- parameters$sigma_g sigma_h <- parameters$sigma_h sigma_y <- paramet...
# separator is ; dataset <- eventReactive(input$hubs_text,{ res <- XenaData if (!is.null(input$hubs_text)) { res <- dplyr::filter(res, XenaHostNames %in% input$hubs_text) } if (!is.null(input$cohorts_text) & input$cohorts_text != "") { ids <- sub(";", "|", input$cohorts_text) res <- dplyr::...
/inst/shinyapp/server/repository.R
permissive
changshengzi/UCSCXenaShiny
R
false
false
10,870
r
# separator is ; dataset <- eventReactive(input$hubs_text,{ res <- XenaData if (!is.null(input$hubs_text)) { res <- dplyr::filter(res, XenaHostNames %in% input$hubs_text) } if (!is.null(input$cohorts_text) & input$cohorts_text != "") { ids <- sub(";", "|", input$cohorts_text) res <- dplyr::...
# This code is programmed in R v2.15.2.with iGraph v0.7.0 # clearing workspace closeAllConnections() rm(list=ls()) # Load libraries library("igraph") #################### QUESTION 3 #################### cat(' #################### QUESTION 3 #################### \n ') # Read in the data from .txt file graph_data...
/Q3_4.R
no_license
arunavs94/EE232E_Project1
R
false
false
4,801
r
# This code is programmed in R v2.15.2.with iGraph v0.7.0 # clearing workspace closeAllConnections() rm(list=ls()) # Load libraries library("igraph") #################### QUESTION 3 #################### cat(' #################### QUESTION 3 #################### \n ') # Read in the data from .txt file graph_data...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{makeHtmlId} \alias{makeHtmlId} \title{Make a valid html id from a string} \usage{ makeHtmlId(x) } \arguments{ \item{x}{string to convert into a valid html id.} } \description{ Make a valid html id from a string }
/man/makeHtmlId.Rd
permissive
c-schellenger/flightdeck
R
false
true
305
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{makeHtmlId} \alias{makeHtmlId} \title{Make a valid html id from a string} \usage{ makeHtmlId(x) } \arguments{ \item{x}{string to convert into a valid html id.} } \description{ Make a valid html id from a string }
library(igraph) library(ggplot2) library(tidyverse) rm(list = ls()) edges <- read.csv('new_airline_edges.csv') nodes <- read.csv('new_airline_nodes.csv') ############################################################################################################################## # Oneworld net <- graph.data.frame(ed...
/New_Airline_viz.R
no_license
Gowtham99ps/Air-Route-Network-Comparision
R
false
false
4,641
r
library(igraph) library(ggplot2) library(tidyverse) rm(list = ls()) edges <- read.csv('new_airline_edges.csv') nodes <- read.csv('new_airline_nodes.csv') ############################################################################################################################## # Oneworld net <- graph.data.frame(ed...
# Clean environment #### rm(list = ls()) # Set working directory as ForC main folder #### setwd("") # Load libaries #### library(lme4) library(MuMIn) library(plyr) library(merTools) library(visreg) library(r2glmm) library(nlme) library(viridis) library(AICcmodavg) library(rlist) # Load data #### ForC_simplified <- ...
/scripts/AIC_comparisons_of_models.R
permissive
forc-db/Global_Productivity
R
false
false
9,287
r
# Clean environment #### rm(list = ls()) # Set working directory as ForC main folder #### setwd("") # Load libaries #### library(lme4) library(MuMIn) library(plyr) library(merTools) library(visreg) library(r2glmm) library(nlme) library(viridis) library(AICcmodavg) library(rlist) # Load data #### ForC_simplified <- ...
#' Search tweets (vectorized) #' #' Returns data from one or more search queries. #' #' @param q Vector of search queries. #' @param n Number of tweets to return per query. Defaults to 100. #' Must be of length 1 or equal to length of user. #' @param \dots Other arguments passed on to \code{search_tweets}. #' @return...
/R/vectorized.R
no_license
luke-a/rtweet
R
false
false
2,288
r
#' Search tweets (vectorized) #' #' Returns data from one or more search queries. #' #' @param q Vector of search queries. #' @param n Number of tweets to return per query. Defaults to 100. #' Must be of length 1 or equal to length of user. #' @param \dots Other arguments passed on to \code{search_tweets}. #' @return...
# ------------------------------------------------------------------------------------- # Início código R # ------------------------------------------------------------------------------------- # Autor: Bruno Henrique Giovannini # Data: 21/07/2017 # Objetivo: Métricas e centralidde - classificar os vértices de um ...
/Desafio_Semantix.R
permissive
BrunoHenriqueGiovannini/desafio_semantix
R
false
false
1,842
r
# ------------------------------------------------------------------------------------- # Início código R # ------------------------------------------------------------------------------------- # Autor: Bruno Henrique Giovannini # Data: 21/07/2017 # Objetivo: Métricas e centralidde - classificar os vértices de um ...
data<-dlt count<-dim(dlt)[1] dlt.clu.mda.II <- function(data,count) { library(mda) library(caret) data.train<-head(data,count-2) rows<-dim(data.train)[1] row<-0 row.line<-count-2 for (i in 1:rows) { row<-c(row,row.line) row.line<-row.line-3 if (row.line<=42) { break ...
/dlt.clu.mda.II.R
no_license
dlt-lee/dlt
R
false
false
74,413
r
data<-dlt count<-dim(dlt)[1] dlt.clu.mda.II <- function(data,count) { library(mda) library(caret) data.train<-head(data,count-2) rows<-dim(data.train)[1] row<-0 row.line<-count-2 for (i in 1:rows) { row<-c(row,row.line) row.line<-row.line-3 if (row.line<=42) { break ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/treeda-functions.R \name{plot.treedacv} \alias{plot.treedacv} \title{Plot a treedacv object} \usage{ \method{plot}{treedacv}(x, ...) } \arguments{ \item{x}{An object of class \code{treedacv}.} \item{...}{Not used.} } \description{ Plots the ...
/man/plot.treedacv.Rd
no_license
cran/treeDA
R
false
true
577
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/treeda-functions.R \name{plot.treedacv} \alias{plot.treedacv} \title{Plot a treedacv object} \usage{ \method{plot}{treedacv}(x, ...) } \arguments{ \item{x}{An object of class \code{treedacv}.} \item{...}{Not used.} } \description{ Plots the ...
ROC.voting <- function(dat, grp, n = 200, healthy = NULL, seed = NULL, para1 = 200, para2 = 1, length = 40, display = FALSE, med = FALSE){ para2 <- ceiling(para2) if(!is.null(seed)){set.seed(seed)} if (class(dat) == "ExpressionSet"){ if (length(grp) == 1) { grp <- pData(dat)[, grp] dat <- expr...
/ktspair/R/ROC.voting.r
no_license
ingted/R-Examples
R
false
false
2,578
r
ROC.voting <- function(dat, grp, n = 200, healthy = NULL, seed = NULL, para1 = 200, para2 = 1, length = 40, display = FALSE, med = FALSE){ para2 <- ceiling(para2) if(!is.null(seed)){set.seed(seed)} if (class(dat) == "ExpressionSet"){ if (length(grp) == 1) { grp <- pData(dat)[, grp] dat <- expr...
testlist <- list(a = 0L, b = 0L, x = c(688569385L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L)) result <- do.call(grattan:::anyOutside,testlist) str(result)
/grattan/inst/testfiles/anyOutside/libFuzzer_anyOutside/anyOutside_valgrind_files/1610386687-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
206
r
testlist <- list(a = 0L, b = 0L, x = c(688569385L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L)) result <- do.call(grattan:::anyOutside,testlist) str(result)
library(FrF2) plan.annotated = FrF2(16, 6, factor.names = list( DieOrif = c(2.093, 2.1448), PistDiam = c(9.462, 9.5), Temp = c(188.1, 191.1), DieClean = c("Dirty", "Clean"), SMass = c(4, 8), BarClean = c("Dirty", "Clean")), seed = 6285) MI <- c(35.77, 35.03, 38.5, 39.33, 35.7, 35.1, 39.27, 37, 41.07, 32.03, ...
/hw06/ex.R
no_license
sunnycd/stat571
R
false
false
448
r
library(FrF2) plan.annotated = FrF2(16, 6, factor.names = list( DieOrif = c(2.093, 2.1448), PistDiam = c(9.462, 9.5), Temp = c(188.1, 191.1), DieClean = c("Dirty", "Clean"), SMass = c(4, 8), BarClean = c("Dirty", "Clean")), seed = 6285) MI <- c(35.77, 35.03, 38.5, 39.33, 35.7, 35.1, 39.27, 37, 41.07, 32.03, ...
##################### # internal function # ##################### #' plotShiraishiModel (internal function) #' #' `plotShiraishiModel()` plots a single signature or the mutation #' frequency data for a single genome of the Shiraishi-type model. #' #' @usage plotShiraishiModel(mutData, numBases, trDir, colors = NULL) ...
/R/plotShiraishiModel.R
no_license
rmpiro/decompTumor2Sig
R
false
false
10,455
r
##################### # internal function # ##################### #' plotShiraishiModel (internal function) #' #' `plotShiraishiModel()` plots a single signature or the mutation #' frequency data for a single genome of the Shiraishi-type model. #' #' @usage plotShiraishiModel(mutData, numBases, trDir, colors = NULL) ...
library(glmnet) mydata = read.table("./TrainingSet/Correlation/pleura.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('./Model/EN/Correlation/pleura/pleura_019.txt',ap...
/Model/EN/Correlation/pleura/pleura_019.R
no_license
leon1003/QSMART
R
false
false
360
r
library(glmnet) mydata = read.table("./TrainingSet/Correlation/pleura.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('./Model/EN/Correlation/pleura/pleura_019.txt',ap...
\name{SpatialEffect} \alias{SpatialEffect} \title{SpatialEffect} \description{The function estimate the marginalized individualistic response (MIR) curve defined in Aronow, Samii and Wang (2019) and its standard error.} \usage{ SpatialEffect(ras, Ydata, outcomme = "outcome", x_coord_Y = "x_coord_Y", y_coord_Y = "...
/SpatialEffect/man/SpatialEffect.Rd
no_license
gsipe-workshop/SpatialEffectPackage
R
false
false
5,207
rd
\name{SpatialEffect} \alias{SpatialEffect} \title{SpatialEffect} \description{The function estimate the marginalized individualistic response (MIR) curve defined in Aronow, Samii and Wang (2019) and its standard error.} \usage{ SpatialEffect(ras, Ydata, outcomme = "outcome", x_coord_Y = "x_coord_Y", y_coord_Y = "...
#' Check if an argument is a factor #' #' @templateVar fn Factor #' @template x #' @inheritParams checkVector #' @param levels [\code{character}]\cr #' Vector of allowed factor levels. #' @param ordered [\code{logical(1)}]\cr #' Check for an ordered factor? If \code{FALSE} or \code{TRUE}, checks explicitly #' for an...
/R/checkFactor.R
no_license
reedcourty/checkmate
R
false
false
3,576
r
#' Check if an argument is a factor #' #' @templateVar fn Factor #' @template x #' @inheritParams checkVector #' @param levels [\code{character}]\cr #' Vector of allowed factor levels. #' @param ordered [\code{logical(1)}]\cr #' Check for an ordered factor? If \code{FALSE} or \code{TRUE}, checks explicitly #' for an...
#' @export processingPlinkData=function(plinkBed,checkRefAllele=TRUE,dupSnpFile=NULL,dupSampleFile=NULL,raceFile=NULL,aimFile=NULL, MafOutlierCut=0.3, plinkChrToGenomeChr=c("23"="X","24"="Y","26"="MT"), raceTo1000GRace=c("CHB"="EAS",...
/R/prepare_functions.R
no_license
slzhao/GTQC
R
false
false
9,922
r
#' @export processingPlinkData=function(plinkBed,checkRefAllele=TRUE,dupSnpFile=NULL,dupSampleFile=NULL,raceFile=NULL,aimFile=NULL, MafOutlierCut=0.3, plinkChrToGenomeChr=c("23"="X","24"="Y","26"="MT"), raceTo1000GRace=c("CHB"="EAS",...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/WebGestaltR-package.R, R/WebGestaltR.R, % R/WebGestaltRBatch.R \docType{package} \name{WebGestaltR} \alias{WebGestaltR} \alias{WebGestaltR-package} \alias{WebGestaltRBatch} \alias{WebGestaltR_batch} \title{WebGestaltR: The R interface for e...
/man/WebGestaltR.Rd
no_license
sailepradh/WebGestaltR
R
false
true
14,193
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/WebGestaltR-package.R, R/WebGestaltR.R, % R/WebGestaltRBatch.R \docType{package} \name{WebGestaltR} \alias{WebGestaltR} \alias{WebGestaltR-package} \alias{WebGestaltRBatch} \alias{WebGestaltR_batch} \title{WebGestaltR: The R interface for e...
#------------------------------------------- # # Dummymodel met vrij onzekere waarden # Sensitivity in TCRE # #------------------------------------------- # Punten zijn ingelezen met http://arohatgi.info/WebPlotDigitizer/app/ # # Den Haag #setwd("~/disks/y/ontwapps/Timer/Users/Stijn/Model/modelTt") # Thuis #setwd("~...
/TCRE+nonCO2.R
no_license
marsmans/deltaCO2
R
false
false
4,090
r
#------------------------------------------- # # Dummymodel met vrij onzekere waarden # Sensitivity in TCRE # #------------------------------------------- # Punten zijn ingelezen met http://arohatgi.info/WebPlotDigitizer/app/ # # Den Haag #setwd("~/disks/y/ontwapps/Timer/Users/Stijn/Model/modelTt") # Thuis #setwd("~...
#' @export execute_py <- function (string) { library(reticulate) cat(py_capture_output(py_run_string(string))) }
/R/python.R
no_license
zalazhar/reticulate_ocpu
R
false
false
117
r
#' @export execute_py <- function (string) { library(reticulate) cat(py_capture_output(py_run_string(string))) }
#' Create an AzureContext. #' #' Create a container (azureContextObject) for holding variables used by the `AzureSMR` package. If the Tenant ID, Client ID and Authenication Key are provided the function will attempt to authenticate the session. #' #' See the Azure documentation (\url{https://azure.microsoft.com/en-us/...
/R/AzureContextObject.R
no_license
strategist922/AzureSMR
R
false
false
4,087
r
#' Create an AzureContext. #' #' Create a container (azureContextObject) for holding variables used by the `AzureSMR` package. If the Tenant ID, Client ID and Authenication Key are provided the function will attempt to authenticate the session. #' #' See the Azure documentation (\url{https://azure.microsoft.com/en-us/...
#' --- #' title: "Fit any gauss family to dataset in CEC" #' author: "" #' date: "" #' output: #' html_document: #' self_contained: false #' --- # Load our library library(gmum.r) # Load ellipse_gauss data set data(cec.ellipsegauss) # Try to fit 5 gaussians to the data set cec <- CEC(k=5, x=cec.ellipsegauss, met...
/demo/samples/cec.ellipse.R
no_license
Silveryu/gng.r
R
false
false
478
r
#' --- #' title: "Fit any gauss family to dataset in CEC" #' author: "" #' date: "" #' output: #' html_document: #' self_contained: false #' --- # Load our library library(gmum.r) # Load ellipse_gauss data set data(cec.ellipsegauss) # Try to fit 5 gaussians to the data set cec <- CEC(k=5, x=cec.ellipsegauss, met...
library(qat) ### Name: qat_save_slide_distribution_2d ### Title: Produce a savelist from a resultlist for a Slide Distribution ### Test ### Aliases: qat_save_slide_distribution_2d ### Keywords: utilities ### ** Examples vec <- array(rnorm(1000), c(10, 100)) result <- list(result=qat_analyse_slide_distribution_2...
/data/genthat_extracted_code/qat/examples/qat_save_slide_distribution_2d.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
388
r
library(qat) ### Name: qat_save_slide_distribution_2d ### Title: Produce a savelist from a resultlist for a Slide Distribution ### Test ### Aliases: qat_save_slide_distribution_2d ### Keywords: utilities ### ** Examples vec <- array(rnorm(1000), c(10, 100)) result <- list(result=qat_analyse_slide_distribution_2...
## Stochastic MArkov library(ggplot2) atp_2007_matches <- tidy_atp_matches %>% filter(year(tourney_date) == "2007") %>% select(match_id, winner_name, loser_name, w_pct_point_won_on_serve, l_pct_point_won_on_serve, w_serve_points, w_serve_points_won, l_serve_points, l_serve_points_won, w_return...
/StochasticMarkovChainModel.R
no_license
wesfb/disso
R
false
false
19,581
r
## Stochastic MArkov library(ggplot2) atp_2007_matches <- tidy_atp_matches %>% filter(year(tourney_date) == "2007") %>% select(match_id, winner_name, loser_name, w_pct_point_won_on_serve, l_pct_point_won_on_serve, w_serve_points, w_serve_points_won, l_serve_points, l_serve_points_won, w_return...
# Problem 1.43a nObs <- 100000 x <- rexp(n = nObs, rate = 1) y <- rexp(n = nObs, rate = 1) u <- (x-y)/(x+y) min(u) max(u) hist(u, freq = FALSE, breaks = 50, ylim = c(0,1), main = 'Distr. of (X-Y)/(X+Y) if X and Y are indep Exp(1)') gridVals <- seq(-1,1,length=1000) lines(gridVals, 1/2*rep(1,length(gridVals)), col = "r...
/ProbTheory/Code/Snippets.R
no_license
mattiasvillani/TeachingMaterial
R
false
false
7,950
r
# Problem 1.43a nObs <- 100000 x <- rexp(n = nObs, rate = 1) y <- rexp(n = nObs, rate = 1) u <- (x-y)/(x+y) min(u) max(u) hist(u, freq = FALSE, breaks = 50, ylim = c(0,1), main = 'Distr. of (X-Y)/(X+Y) if X and Y are indep Exp(1)') gridVals <- seq(-1,1,length=1000) lines(gridVals, 1/2*rep(1,length(gridVals)), col = "r...
#!/usr/bin/env Rscript args = commandArgs(trailingOnly=TRUE) filename <- args[1] data <- read.delim(filename, sep = "") hist(as.numeric(data$NMISS))
/histogram.R
no_license
KajsaGeorgii/Introduction
R
false
false
149
r
#!/usr/bin/env Rscript args = commandArgs(trailingOnly=TRUE) filename <- args[1] data <- read.delim(filename, sep = "") hist(as.numeric(data$NMISS))
####### Single season site-occupancy model on weasel Data from Dieren rm(list=ls()) ## Open library library(jagsUI) ###### Model for 2017 ###### # Define model in BUGS language cat(file="occ-Weasel17month.txt", " model{ # Priors and model for params int.psi ~ dunif(0,1) #...
/Occ-Mostela-Dieren-MS.R
no_license
Tim-Hofmeester/mostela-dieren
R
false
false
9,129
r
####### Single season site-occupancy model on weasel Data from Dieren rm(list=ls()) ## Open library library(jagsUI) ###### Model for 2017 ###### # Define model in BUGS language cat(file="occ-Weasel17month.txt", " model{ # Priors and model for params int.psi ~ dunif(0,1) #...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dataReshape.R \name{dataReshape} \alias{dataReshape} \title{Reshape longitudinal data} \usage{ dataReshape(theData = NULL, numTime = NULL) } \arguments{ \item{theData}{a data frame containing longitudinal data to which the model will be fit.}...
/man/dataReshape.Rd
no_license
rahmarid/stablespec
R
false
true
1,176
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dataReshape.R \name{dataReshape} \alias{dataReshape} \title{Reshape longitudinal data} \usage{ dataReshape(theData = NULL, numTime = NULL) } \arguments{ \item{theData}{a data frame containing longitudinal data to which the model will be fit.}...
testlist <- list(n = 255L) result <- do.call(breakfast:::setBitNumber,testlist) str(result)
/breakfast/inst/testfiles/setBitNumber/libFuzzer_setBitNumber/setBitNumber_valgrind_files/1609960327-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
91
r
testlist <- list(n = 255L) result <- do.call(breakfast:::setBitNumber,testlist) str(result)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/datacheckfuncs.R \name{plotMean} \alias{plotMean} \title{Plotting function to assess the mean of generated data} \usage{ plotMean(model, simdat, bins = 15, quants = c(0.025, 0.975)) } \arguments{ \item{model}{model object of class glm, gam or...
/man/plotMean.Rd
no_license
lindesaysh/MRSeaPower
R
false
true
1,378
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/datacheckfuncs.R \name{plotMean} \alias{plotMean} \title{Plotting function to assess the mean of generated data} \usage{ plotMean(model, simdat, bins = 15, quants = c(0.025, 0.975)) } \arguments{ \item{model}{model object of class glm, gam or...
# Matrix inversion is usually a costly computation and there may be some benefit # to caching the inverse of a matrix rather than compute it repeatedly # The functions in this file cache the inverse of a matrix. # This function creates a special "matrix" object that can cache its inverse. makeCacheMatrix ...
/cachematrix.R
no_license
mitul1411/ProgrammingAssignment2
R
false
false
1,068
r
# Matrix inversion is usually a costly computation and there may be some benefit # to caching the inverse of a matrix rather than compute it repeatedly # The functions in this file cache the inverse of a matrix. # This function creates a special "matrix" object that can cache its inverse. makeCacheMatrix ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/read_merlin.R \name{read_merlin_map} \alias{read_merlin_map} \title{Read MERLIN \code{fam.map}} \usage{ read_merlin_map(fname) } \arguments{ \item{fname}{The file name to read.} } \value{ A \code{data.frame} with three columns (chromosome, na...
/man/read_merlin_map.Rd
permissive
bahlolab/linkrvis
R
false
true
653
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/read_merlin.R \name{read_merlin_map} \alias{read_merlin_map} \title{Read MERLIN \code{fam.map}} \usage{ read_merlin_map(fname) } \arguments{ \item{fname}{The file name to read.} } \value{ A \code{data.frame} with three columns (chromosome, na...
#!/usr/bin/env Rscript library(optparse) library(plyr) library(mvtnorm) library(data.table) library(caret) library(e1071) library(rpart) source('0.init.R') option_list <- list(make_option(c("-d", "--dataset"), type="character", default='skin', help="dataset file name"), ...
/algs/OPTRB/allrb_iwal.R
no_license
zhangns07/oal
R
false
false
13,610
r
#!/usr/bin/env Rscript library(optparse) library(plyr) library(mvtnorm) library(data.table) library(caret) library(e1071) library(rpart) source('0.init.R') option_list <- list(make_option(c("-d", "--dataset"), type="character", default='skin', help="dataset file name"), ...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/metadata.R \name{metadata} \alias{exampleMetadata} \alias{metadata} \alias{updateMetadata} \title{Create or modify the metadata for a load model.} \usage{ metadata(constituent, flow, load.rate = "", dates, conc.units, flow.units, lo...
/man/metadata.Rd
no_license
jacaronda/loadflex
R
false
false
5,734
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/metadata.R \name{metadata} \alias{exampleMetadata} \alias{metadata} \alias{updateMetadata} \title{Create or modify the metadata for a load model.} \usage{ metadata(constituent, flow, load.rate = "", dates, conc.units, flow.units, lo...
styler::style_dir(path = "/Users/isaiahnyabuto/dhis2r/R") usethis::use_tidy_description()
/data-raw/data.R
no_license
INyabuto/dhis2r
R
false
false
92
r
styler::style_dir(path = "/Users/isaiahnyabuto/dhis2r/R") usethis::use_tidy_description()
##' Function to calculate carbon impact of change in active travel for HEAT ##' ##' Takes three user-created data frames as input and returns carbon saving of additional ##' walking and/or cycling ##' ##' @param df_ucc A data frame class object containing the use case criteria ##' @param df_qual A data frame class ob...
/R/impact_carbon.R
no_license
vcopley/AdvR
R
false
false
10,702
r
##' Function to calculate carbon impact of change in active travel for HEAT ##' ##' Takes three user-created data frames as input and returns carbon saving of additional ##' walking and/or cycling ##' ##' @param df_ucc A data frame class object containing the use case criteria ##' @param df_qual A data frame class ob...
# Get the MST for the philly adjacency matrix library(igraph) W <- as.matrix(read.csv("data/A_block_density.csv", header = FALSE)) N <- nrow(W) T <- 12 tmp_time <- scale(1:T, center = TRUE, scale = TRUE) ############ # Get MST & transformed design matrix # for full simulations, we need only compute this once and ...
/two_partitions/scripts/prepare_scc_design_tracts.R
no_license
cecilia-balocchi/particle-optimization
R
false
false
1,631
r
# Get the MST for the philly adjacency matrix library(igraph) W <- as.matrix(read.csv("data/A_block_density.csv", header = FALSE)) N <- nrow(W) T <- 12 tmp_time <- scale(1:T, center = TRUE, scale = TRUE) ############ # Get MST & transformed design matrix # for full simulations, we need only compute this once and ...
# Pipe Network Simulator Using Newton-Raphson ######################################################## ########## Read the Input Data from a file ############# ######################################################## zz <- file("PipeNetwork.txt", "r") # Open a connection named zz to file named PipeNetork.txt nodes <- a...
/3-Readings/PCHinR-LectureNotes/10-PumpsAndValves/PipeNetwork.R
no_license
hwangpo/ce-5362-webroot
R
false
false
6,313
r
# Pipe Network Simulator Using Newton-Raphson ######################################################## ########## Read the Input Data from a file ############# ######################################################## zz <- file("PipeNetwork.txt", "r") # Open a connection named zz to file named PipeNetork.txt nodes <- a...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ListFauna.lan.R \name{ListFauna.lan} \alias{ListFauna.lan} \title{Capturas de un lance específico} \usage{ ListFauna.lan(camp, dns = "Porc", lan, gr = NA, out = TRUE) } \arguments{ \item{camp}{Campaña de la que se extrae los datos del lance (...
/man/ListFauna.lan.Rd
no_license
Franvgls/CampR
R
false
true
1,533
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ListFauna.lan.R \name{ListFauna.lan} \alias{ListFauna.lan} \title{Capturas de un lance específico} \usage{ ListFauna.lan(camp, dns = "Porc", lan, gr = NA, out = TRUE) } \arguments{ \item{camp}{Campaña de la que se extrae los datos del lance (...
#' Ellipse Geom #' #' @param n the number of ellipse path. #' @inheritParams ggplot2::layer #' @inheritParams ggplot2::geom_polygon #' @section Aesthetics: #' \code{geom_ellipse2()} understands the following aesthetics (required aesthetics are in bold): #' \itemize{ #' \item \strong{\code{x}} #' \item \...
/R/geom-ellipse2.R
no_license
aaa7260/ggcor
R
false
false
2,315
r
#' Ellipse Geom #' #' @param n the number of ellipse path. #' @inheritParams ggplot2::layer #' @inheritParams ggplot2::geom_polygon #' @section Aesthetics: #' \code{geom_ellipse2()} understands the following aesthetics (required aesthetics are in bold): #' \itemize{ #' \item \strong{\code{x}} #' \item \...
set.seed(613) x <- c(runif(10, min = 1, max = 6), runif(10, min = 5, max = 10)) y <- c(rep(0,10), rep(1,10)) plot(x, y, main = "Does this linear model make sense?", cex = 2, pch = "+") abline(lm(y~x), col = "red") df <- read.csv("https://stats.idre.ucla.edu/stat/data/binary.csv") df$rank <- ceiling(df$rank/2) - 1 head...
/Lecture11.r
no_license
thomasmcgill/EPIB613_2019
R
false
false
2,642
r
set.seed(613) x <- c(runif(10, min = 1, max = 6), runif(10, min = 5, max = 10)) y <- c(rep(0,10), rep(1,10)) plot(x, y, main = "Does this linear model make sense?", cex = 2, pch = "+") abline(lm(y~x), col = "red") df <- read.csv("https://stats.idre.ucla.edu/stat/data/binary.csv") df$rank <- ceiling(df$rank/2) - 1 head...
EM <- read.delim("~/Desktop/Extracellular matrix remodeling cluster_AM RNAseq.txt", stringsAsFactors=FALSE) EM$Cohort = as.factor(EM$Cohort) library(reshape2) data_long <- melt(data=EM, id.var=c("Sample", "Cohort"), measure.vars=c("ITGA6", "A2M", "SDC4", "MMP2", "MMP9", "MMP12", "COL1A1", ...
/Melt Summarize and Bar Plot Script.R
no_license
elogue01/Lab-data-R-scripts
R
false
false
1,460
r
EM <- read.delim("~/Desktop/Extracellular matrix remodeling cluster_AM RNAseq.txt", stringsAsFactors=FALSE) EM$Cohort = as.factor(EM$Cohort) library(reshape2) data_long <- melt(data=EM, id.var=c("Sample", "Cohort"), measure.vars=c("ITGA6", "A2M", "SDC4", "MMP2", "MMP9", "MMP12", "COL1A1", ...
CL <- function(o) floor(657*runif(1))+1 # random color rdisk <- function(q) # how to generate random points in the unit disk? { R <- matrix(runif(10000), ncol=1) Theta <- matrix(runif(10000,0,2*pi), ncol=1) XY <- cbind(R^q*cos(Theta),R^q*sin(Theta)) #x11(width=5,height=5.5) # keep old plot and o...
/r4.R
no_license
callinSwitzer/S135
R
false
false
7,537
r
CL <- function(o) floor(657*runif(1))+1 # random color rdisk <- function(q) # how to generate random points in the unit disk? { R <- matrix(runif(10000), ncol=1) Theta <- matrix(runif(10000,0,2*pi), ncol=1) XY <- cbind(R^q*cos(Theta),R^q*sin(Theta)) #x11(width=5,height=5.5) # keep old plot and o...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/reduceResultsExperimentsParallel.R \name{reduceResultsExperimentsParallel} \alias{reduceResultsExperimentsParallel} \title{Reduce very many results in parallel.} \usage{ reduceResultsExperimentsParallel(reg, ids, part = NA_character_,...
/man/reduceResultsExperimentsParallel.Rd
no_license
imbs-hl/BatchExperiments
R
false
false
2,859
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/reduceResultsExperimentsParallel.R \name{reduceResultsExperimentsParallel} \alias{reduceResultsExperimentsParallel} \title{Reduce very many results in parallel.} \usage{ reduceResultsExperimentsParallel(reg, ids, part = NA_character_,...
# tune hyper params w/ script library(tfruns) training_run("mnist_mlp.R")
/mnist/hyper_params.R
no_license
bweiher/projs
R
false
false
76
r
# tune hyper params w/ script library(tfruns) training_run("mnist_mlp.R")
library(data.table) library(class) library(data.table) library(class) lista_best_normal<-as.data.frame(NULL) for (i in 2:7){ lista_best_normal<-rbind(table_it_normal_nondef[table_it_normal_nondef[,4]==i,][1,],lista_best_normal) } lista_best_normal<-lista_best_normal[order(lista_best_normal[,6]),] for (s in 1:nrow(...
/CODES/results_normal.R
no_license
yurier/TEMA-R-CODES
R
false
false
4,264
r
library(data.table) library(class) library(data.table) library(class) lista_best_normal<-as.data.frame(NULL) for (i in 2:7){ lista_best_normal<-rbind(table_it_normal_nondef[table_it_normal_nondef[,4]==i,][1,],lista_best_normal) } lista_best_normal<-lista_best_normal[order(lista_best_normal[,6]),] for (s in 1:nrow(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/unitClassApi.r \name{unitClass$getByPath} \alias{unitClass$getByPath} \title{Retrieve a unit class by path.} \arguments{ \item{path}{The path to the unit class.} \item{selectedFields}{List of fields to be returned in the response, separated ...
/man/unitClass-cash-getByPath.Rd
permissive
frbl/PI-Web-API-Client-R
R
false
true
682
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/unitClassApi.r \name{unitClass$getByPath} \alias{unitClass$getByPath} \title{Retrieve a unit class by path.} \arguments{ \item{path}{The path to the unit class.} \item{selectedFields}{List of fields to be returned in the response, separated ...
#' ============================================================================= #' Name : BSP Outlier ResearchL NG Trend plot #' Author : Joe W. Byers #' Date: 4/3/17 #' Modifed : #' Version: 1.0001 #' Mail : <<<ecjbosu@aol.com>>> #' ============================================================================= #' ...
/Outliers in Commodity Futures with Simkins and Popova/CJTrendplot.R
permissive
ecjbosu/Research
R
false
false
4,776
r
#' ============================================================================= #' Name : BSP Outlier ResearchL NG Trend plot #' Author : Joe W. Byers #' Date: 4/3/17 #' Modifed : #' Version: 1.0001 #' Mail : <<<ecjbosu@aol.com>>> #' ============================================================================= #' ...
############################################################ ## Women First Trial: Guatemala Methylation Analysis ## Written by Jessica Murphy ## Last edited on January 7, 2021 ## This function annotates each combp region with overlapping & ## flanking genes. The gene file was created using Extract_genes....
/Code/Annotation/annotate_combp.R
no_license
JessMurphy/WFMethylation
R
false
false
4,359
r
############################################################ ## Women First Trial: Guatemala Methylation Analysis ## Written by Jessica Murphy ## Last edited on January 7, 2021 ## This function annotates each combp region with overlapping & ## flanking genes. The gene file was created using Extract_genes....
#LABORATORIO DISTRIBUCION T #Es un miembro de una familia de distribuciones de probabilidad cont?nua #que surge al estimar la media de una poblaci?n distribuida normalmente en #situaciones donde el tama?o de la muestra es peque?o y se desconoce #la desviaci?n est?ndar de la poblaci?n. #Cargando librer?as rm(list=ls()...
/r/Lab3-Distribuciones/LAB-DISTRIBUCION-T.R
no_license
luigrocha/maestria-analisis-estadisticos
R
false
false
8,873
r
#LABORATORIO DISTRIBUCION T #Es un miembro de una familia de distribuciones de probabilidad cont?nua #que surge al estimar la media de una poblaci?n distribuida normalmente en #situaciones donde el tama?o de la muestra es peque?o y se desconoce #la desviaci?n est?ndar de la poblaci?n. #Cargando librer?as rm(list=ls()...
## LOAD PACKAGES #### library(dplyr) library(tidyr) ## READ IN DATA #### word_info = read.table("data/word_information.txt", header=T, sep="\t", stringsAsFactors=F) sub_45_sent = read.table("data/raw_data/sub_45_sentences_INITIAL.txt", header=T, sep="\t", stringsAsFactors=F) ## ORGANIZE DATA #### # Add comments for...
/scripts/checking_data/check_data_INITIAL.R
no_license
pagepiccinini/cs_scripted
R
false
false
1,156
r
## LOAD PACKAGES #### library(dplyr) library(tidyr) ## READ IN DATA #### word_info = read.table("data/word_information.txt", header=T, sep="\t", stringsAsFactors=F) sub_45_sent = read.table("data/raw_data/sub_45_sentences_INITIAL.txt", header=T, sep="\t", stringsAsFactors=F) ## ORGANIZE DATA #### # Add comments for...
#function to read in the source data and sample 5 percent using the #rbinom function subSampleText <- function(filePath, outfilePath, subSamplepct){ temp <- readLines(filePath) randLines <- rbinom(length(temp),1,0.999) temp <- temp[!randLines] #replace funny characters temp <- gsub("’...
/CreateTestDataset.R
no_license
chrisspooner55/CapstoneProject
R
false
false
2,541
r
#function to read in the source data and sample 5 percent using the #rbinom function subSampleText <- function(filePath, outfilePath, subSamplepct){ temp <- readLines(filePath) randLines <- rbinom(length(temp),1,0.999) temp <- temp[!randLines] #replace funny characters temp <- gsub("’...
############################################################################## ######## Simplified Code for Getting Model Parameters ################ ############################################################################## #New Model Run september 2nd 2019 load("/Users/alisonpaquette/Dropbox/PlacentalTR...
/CodeTGenerateNullModels.R
no_license
AlisonPaquette/PlacentalTRN_ModelParameterization
R
false
false
11,141
r
############################################################################## ######## Simplified Code for Getting Model Parameters ################ ############################################################################## #New Model Run september 2nd 2019 load("/Users/alisonpaquette/Dropbox/PlacentalTR...
dec <- function(depth=4, new=TRUE) { s2 <- s2tessel.zorder(depth=depth, viewgrid=FALSE) tc.surf <- s2$tcsurf pc <- s2$pc pc <- pc / max(abs(pc)) w <- t(apply(abs(pc), 1, norm01)) ck <- rgb(w) pos <- c(0,0,0) pcsurf <- cbind(pc[tc.surf,1] + pos[1], pc[tc.surf,2] + pos[2] , pc[tc.surf,3]) ...
/gdimap/R/dec.R
no_license
ingted/R-Examples
R
false
false
921
r
dec <- function(depth=4, new=TRUE) { s2 <- s2tessel.zorder(depth=depth, viewgrid=FALSE) tc.surf <- s2$tcsurf pc <- s2$pc pc <- pc / max(abs(pc)) w <- t(apply(abs(pc), 1, norm01)) ck <- rgb(w) pos <- c(0,0,0) pcsurf <- cbind(pc[tc.surf,1] + pos[1], pc[tc.surf,2] + pos[2] , pc[tc.surf,3]) ...
# draw the first plot plot1 <- function() { plot(data$Time, data$Global_active_power, type = "l", xlab = "", ylab = "Gloabl Active Power") } # draw the second plot plot2 <- function() { plot(data$Time, data$Voltage, type = "l", xlab = "datetime", ylab = "Voltage") } # draw the third plot plot3 <- fun...
/plot4.R
no_license
EmilyGao/ExData_Plotting1
R
false
false
1,380
r
# draw the first plot plot1 <- function() { plot(data$Time, data$Global_active_power, type = "l", xlab = "", ylab = "Gloabl Active Power") } # draw the second plot plot2 <- function() { plot(data$Time, data$Voltage, type = "l", xlab = "datetime", ylab = "Voltage") } # draw the third plot plot3 <- fun...
context("Parsing") Sys.setlocale("LC_TIME", "C") test_that("ymd functions correctly parse dates separated by -", { expect_that(ymd("2010-01-02"), equals(as.Date("2010-01-02"))) expect_that(ymd("10-01-02"), equals(as.Date("2010-01-02"))) expect_that(ydm("2010-02-01"), equ...
/tests/testthat/test-parsers.R
no_license
waynenilsen/lubridate
R
false
false
35,271
r
context("Parsing") Sys.setlocale("LC_TIME", "C") test_that("ymd functions correctly parse dates separated by -", { expect_that(ymd("2010-01-02"), equals(as.Date("2010-01-02"))) expect_that(ymd("10-01-02"), equals(as.Date("2010-01-02"))) expect_that(ydm("2010-02-01"), equ...
#' Forward Request to The Next Handler #' #' This function is used when a filter is done processing a request and wishes #' to pass control off to the next handler in the chain. If this is not called #' by a filter, the assumption is that the filter fully handled the request #' itself and no other filters or endpoints ...
/R/plumber-step.R
no_license
MarkEdmondson1234/plumber
R
false
false
4,053
r
#' Forward Request to The Next Handler #' #' This function is used when a filter is done processing a request and wishes #' to pass control off to the next handler in the chain. If this is not called #' by a filter, the assumption is that the filter fully handled the request #' itself and no other filters or endpoints ...
library(spatstat) ### Name: nearestsegment ### Title: Find Line Segment Nearest to Each Point ### Aliases: nearestsegment ### Keywords: spatial math ### ** Examples X <- runifpoint(3) Y <- as.psp(matrix(runif(20), 5, 4), window=owin()) v <- nearestsegment(X,Y) plot(Y) plot(X, add=TRUE) plot(X[1], add=TR...
/data/genthat_extracted_code/spatstat/examples/nearestsegment.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
383
r
library(spatstat) ### Name: nearestsegment ### Title: Find Line Segment Nearest to Each Point ### Aliases: nearestsegment ### Keywords: spatial math ### ** Examples X <- runifpoint(3) Y <- as.psp(matrix(runif(20), 5, 4), window=owin()) v <- nearestsegment(X,Y) plot(Y) plot(X, add=TRUE) plot(X[1], add=TR...
rm(list=ls()) library(stats) library(survsim) n = 500 p = 20000 beta = rep(0,p) beta[1:10] = runif(n = 10,-1,-0.1) beta[11:20] = runif(n = 10,0.1,1) generateTtime <- function(x,beta,lambda,v){ # lambda is the scale. # v is the shape. # of baseline hazard ratio. u <- runif(n=1,0,1) T <- (log(u)/(-exp(sum(x*bet...
/simuCox.r
no_license
stormliucong/multi_omics_survival
R
false
false
1,892
r
rm(list=ls()) library(stats) library(survsim) n = 500 p = 20000 beta = rep(0,p) beta[1:10] = runif(n = 10,-1,-0.1) beta[11:20] = runif(n = 10,0.1,1) generateTtime <- function(x,beta,lambda,v){ # lambda is the scale. # v is the shape. # of baseline hazard ratio. u <- runif(n=1,0,1) T <- (log(u)/(-exp(sum(x*bet...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/forecasting.R \name{grnn_examples} \alias{grnn_examples} \title{Examples of a GRNN model} \usage{ grnn_examples(forecast) } \arguments{ \item{forecast}{A \code{grnnForecast} object.} } \value{ A matrix including the features and targets of th...
/man/grnn_examples.Rd
no_license
franciscomartinezdelrio/tsfgrnn
R
false
true
573
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/forecasting.R \name{grnn_examples} \alias{grnn_examples} \title{Examples of a GRNN model} \usage{ grnn_examples(forecast) } \arguments{ \item{forecast}{A \code{grnnForecast} object.} } \value{ A matrix including the features and targets of th...