Learn R Programming

dils (version 0.8.1)

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

Description

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

Usage

GetSampleFromDb(n, db)

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

References

https://github.com/shaptonstahl/

See Also

ScalablePCA, GetSampleFromDataFrame, GetSampleFromFile

Examples

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

Run the code above in your browser using DataLab