a data.frame containing a subset of the rows of data.
Arguments
data
a data.frame, rows represent samples
param
a list with the following components: n is a numeric value
specifying the size of the subsample; replace determines if sampling is
with or without replacement
Details
If param$replace=FALSE, a subsample of size
min(param$n,nrow(data)) will be drawn from data. If
param$replace=TRUE, the size of the subsample is param$n.