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/knockout documentation built on Feb. 13, 2020, 7:27 p.m.