sample
function is not possible.
sampleCSV(file, percORn, nrLines, header=TRUE, mxPerc=0.5)
sample
to
obtain the sample.The function obtains the sample of rows without actually loading the full data into memory - only the final sample is loaded into main memory.
The function is based on unix-based utility programs (perl
and wc
) so
it is limited to this type of platforms. The function will not run on
other platforms (it will check the system variable .Platform$OS.type
), although you may wish to check the function code and
see if you can adapt it to your platform.
nrLinesFile
, sample
, sampleDBMS