sample: Random Data Sampling

Description Usage Arguments Value See Also Examples

Description

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

Usage

1
2
 	## 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

1
2
3
4
5
## Not run: 
	frame <- mf("demo","iris")
	sample(frame,4)

## End(Not run)

MonetDB.R documentation built on May 2, 2019, 5:26 p.m.

Related to sample in MonetDB.R...