Description Usage Arguments Value Author(s) References See Also Examples
View source: R/GetSampleFromFile.R
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.
1 | 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
1 | ## Not run: x <- dils:::GetSampleFromFile(10, 150, "folder/containing/data.txt")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.