Learn R Programming

scidb (version 1.2-0)

peek: Sample from populated cells in a SciDB array.

Description

Return an R dataframe containing samples from an input array.

Usage

peek (x, n=50L, prob=1) iqdf (x, n=50L, prob=1)

Arguments

x
A scidb or scidbdf object.
n
Return at most n elements.
prob
A number in the interval (0, 1] indicating the probability of a cell being included in the sample.

Value

An R data frame.

Details

Peek at non-empty values of an array, returning at most n values. Use peek to get a sense of the data contained in an array.

The function always returns results in data frame form, including the array coordinates as data frame variables.

See Also

bernoulli

Examples

Run this code
## Not run: 
# x <- as.scidb(iris)
# peek(x)
# ## End(Not run)

Run the code above in your browser using DataLab