GetSampleFromFile {dils} | R Documentation |
Read a large text file in batches, keeping the rows to be included in the sample. Return a data.frame whose rows are the sample.
GetSampleFromFile(n, out.of, filename)
n |
numeric, size of sample to be taken. |
out.of |
numeric, number of rows in the data set not including the header. |
filename |
character, name of the file containing
the data. This must be a tab-delimited file with a header
row formatted per the default options for
|
data.frame, size n random subset of the rows of filename
Stephen R. Haptonstahl srh@haptonstahl.org
https://github.com/shaptonstahl/
ScalablePCA
,
GetSampleFromDataFrame
,
GetSampleFromDb
## Not run: x <- dils:::GetSampleFromFile(10, 150, "folder/containing/data.txt")