fars_read: Read a csv file and convert it to tibble data format (tbl_df...

Description Usage Arguments Value Note Examples

Description

This function reads in a csv file, and if it exists converts it to a tibble data frame which inherits properties from data.frame class. The tibble data frame is more suitable in some cases than standard data frame, as it, among other things, doesn't convert strings to factors, keeps orignal variable names (e.g., if they contain a space), uses a somewhat different print method, etc.

Usage

1
fars_read(filename)

Arguments

filename

A path to a file. Files ending in .gz, .bz2, .xz, or .zip will be automatically uncompressed

Value

A tibble data frame. If the file cannot be found an error is generated and execution is halted

Note

The file to be read needs to be a csv or a compressed csv. Other file formats cannot be read with this function.

Examples

1

ValeriVoev/VRVPackage documentation built on May 30, 2019, 9:41 p.m.