bootstrap: Create a bootstrap sample from a data-set

Description Usage Arguments Value Examples

View source: R/util_sampler.R

Description

Create a bootstrap sample from a data-set

Usage

1
bootstrap(obj, ...)

Arguments

obj

the object which data should be bootstrapped

...

groups on which you be bootstrapped. If you want to create a normal boostrap sample, you would ignore this argument. If you want to separate your data into groups and bootstrap from every group, you would give the unquoted name of the columns in your obj to group on. For instance, if you provide 'gene' as an argument, then your data set would be grouped into separate 'gene' groups and bootstrapping would be conducted on every of those groups. Afterwards genes are aggregated

Value

returns an object with boostrapped data

Examples

1
2
3
  data(rnaiscreen)
  bootstrap(rnaiscreen)
  bootstrap(rnaiscreen, Condition, Perturbation)

cbg-ethz/perturbatr documentation built on Feb. 11, 2020, 4:21 p.m.