extract_rows_from_file: Extract Rows from File

Description Usage Arguments See Also

View source: R/extract_rows_from_file.R View source: R/RcppExports.R


This function reads through a delimited file on disk, determines if the entry at the specified column is in a character vector of items, and writes that line to file (or to R) if it is.


extract_rows_from_file(file, out = NULL, column, sep = NULL, keep)



The input file to extract rows from.


The location to output the file. If this is NULL, we redirect output back into the R session.


The column to check, indexed from 1.


The delimiter used in file. Must be a single character. If no delimiter is specified, we guess the delimiter from the first row of file.


A character vector containing all items that we want to check and keep within the columnth column of each row.

See Also


Kmisc documentation built on May 19, 2017, 11:08 a.m.
Search within the Kmisc package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.