sampleFromData: Sample from a data frame

Description Usage Arguments Value Author(s) Examples

Description

This function has been designed to sample from the rows of a two dimensional data set, returning all columns of sampled rows.

Usage

1

Arguments

data

A data frame or matrix from which rows are to be sampled

size

Numeric. Number of rows to return

replace

Logical. Sample with replacement? TRUE by default.

...

Extra options passed to sample function.

Value

A data set of the same type as input with size rows.

Author(s)

Doug Ashton

Examples

1

dougmet/simToolsBG documentation built on May 15, 2019, 10:44 a.m.