filter_read_csv: Filter Read CSV

View source: R/filter_read_csv.R

filter_read_csvR Documentation

Filter Read CSV

Description

Iteratively reads in and filters a CSV file based on specified filters.

Usage

filter_read_csv(path, batch_size, cols, filters)

Arguments

path

A file path to a local csv file.

batch_size

The size of each csv chunk to be read in. If not specified, then the data will be broken into 10 chunks by default.

filters

vector of filters to be applied. Each filter should start with the column name and NOT the name of the file; filter_read_csv will take care of this automatically. For example, if one of the filters was to be applied on the column "Age", the filter would be included in the vector as "Age < 40", NOT as "df$AGE < 40".

Value

A filtered tibble.


matthiasronnau/matthias documentation built on June 15, 2022, 11:44 p.m.