Generate a dataset from a given dataset using sampling with or without replacement.

1 |

`dataset` |
a p x m data matrix. |

`n` |
the number of rows of observations to be included in the new dataset. |

`replace` |
logical. If replace is TRUE sampling will be with replacement, thus returning a bootstrap replicate. |

This function is a simple shortcut for generating a bootstrap sample. It was originally designed for use within the comparison framework, but can be used as a stand-alone function.

The function returns a new n x m matrix. The default is a bootstrap replicate of the orginal data.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.