wrathematics/lineSampler: File Sampler

A collection of utilities for reading subsamples of flat text files by line in a reasonably efficient manner. We do so by sampling as the input file is scanned and randomly choosing whether or not to dump the current line to an external temporary file. This temporary file is then read back into R. For (aggressive) 'downsampling', this is a very effective strategy; for resampling, you are much better off reading the full dataset into memory.

Getting started

Package details

MaintainerDrew Schmidt <wrathematics@gmail.com>
LicenseBSD 2-clause License + file LICENSE
Version0.4-0
URL https://github.com/wrathematics/filesampler
Package repositoryView on GitHub
Installation Install the latest version of this package by entering the following in R:
install.packages("remotes")
remotes::install_github("wrathematics/lineSampler")
wrathematics/lineSampler documentation built on Feb. 27, 2020, 8:01 p.m.