as.bootstrap: Create a Bootstrap Table

Description Usage Arguments Details Value Methods (by class) See Also Examples

Description

Creates a bootstrap table.

Creates bootstrap from bootstrap.

Creates bootstrap from numeric.

Creates bootstrap from character.

Creates a bootstrap table from a PsN bootstrap results csv filepath.

Creates a bootstrap table from a modelname in Project Context.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
as.bootstrap(x, ...)

## S3 method for class 'bootstrap'
as.bootstrap(x, ...)

## S3 method for class 'numeric'
as.bootstrap(x, ...)

## S3 method for class 'character'
as.bootstrap(x, ...)

## S3 method for class 'filepath'
as.bootstrap(x, skip = 28, check.names = FALSE,
  lo = "5", hi = "95", verbose = TRUE, ...)

## S3 method for class 'modelname'
as.bootstrap(x, project = if (is.null(opt)) getwd() else
  opt, opt = getOption("project"), rundir = file.path(project, x),
  pattern = "bootstrap_results.csv", bootcsv = dir(rundir, pattern =
  pattern, recursive = TRUE, full.names = TRUE), ...)

Arguments

x

object of dispatch

...

arguments to methods

skip

number of lines to skip in bootstrap_results.csv

check.names

passed to bootstrap reader

lo

the PsN bootstrap lower confidence limit (%)

hi

the PsN bootstrap upper confidence limit (%)

verbose

display messages

project

path to model directories

opt

alternative specification of project

rundir

model specific run directory

pattern

pattern to search for bootstrap file

bootcsv

path to bootstrap_results.csv or equivalent

Details

Assumes project has been identified, model directory exists, and PsN bootstrap method has been run for the model. Scavenges for the last file matching pattern.

Value

data.frame

data.frame

data.frame

data.frame

data.frame

data.frame

Methods (by class)

See Also

as.bootstrap.modelname

Examples

1
2
3
library(magrittr)
options(project = system.file('project/model',package='partab'))
1001 %>% as.bootstrap

bergsmat/partab documentation built on May 12, 2019, 3:09 p.m.