Random Sample of Rows Dialog Function

DESCRIPTION:

This function is used by the Random Sample of Rows dialog.

USAGE:

menuRandomSample(data, size=n, replace=F, prob=n, seed=NULL, 
     save.name=NULL, show.p=.Options$show.data.in.view) 

REQUIRED ARGUMENTS:

data
data set from which to draw a random sample of rows.
size
number of rows in the sample.

OPTIONAL ARGUMENTS:

replace
logical indicating whether sampling should be performed with replacement.
prob
name of column indicating the probability of each row being selected.
seed
integer to be passed to set.seed for setting the random number seed to a particular value.
save.name
name under which to save revised data set.
show.p
logical indicating whether to display revised data set in a Data window.

VALUE:

data set with rows which are randomly sampled from the initial data set.

SEE ALSO: