GetSampleFromDb: Sample from the rows of a (possibly large) database table...

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/GetSampleFromDb.R

Description

Access a database table directly. Return a data.frame whose rows are the sample.

Usage

1

Arguments

n

numeric, size of sample to be taken.

db

connection, connection to the database table containing the data.

Value

data.frame, size n random subset of the rows of filename

Author(s)

Stephen R. Haptonstahl srh@haptonstahl.org

References

https://github.com/shaptonstahl/

See Also

ScalablePCA, GetSampleFromDataFrame, GetSampleFromFile

Examples

1
## Not run: x <- dils:::GetSampleFromDb(10, my.db)

dils documentation built on May 2, 2019, 8:28 a.m.