Learn R Programming

MonetDB.R (version 0.8.0)

sample: Random Data Sampling

Description

sample gets a number of randomly selected values from the query result or table wrapped by a monet.frame object.

Usage

## S3 method for class 'monet.frame':
sample(x, size, replace = FALSE, prob = NULL)

Arguments

x
a monet.frame object
size
Sample size, numerical value
replace
Unsupported, must not be set
prob
Unsupported, must not be set

Value

  • A data.frame object containing the sample rows.

See Also

sample

Examples

Run this code
frame <- mf("demo","iris")
	sample(frame,4)

Run the code above in your browser using DataLab