fars_read: Read-in a file and return it as a tibble.

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This is a function for reading csv-files and returning the data as a tibble. If the file does not exist the function returns an error with the non-existing file-name. Files ending with .gz, .bz2, .xz, or .zip will be automatically uncompressed and files starting with ttp://, https://, ftp://, or ftps:// will be downloaded. If the the file to read is not a csv-file, the function produces an error for an invalid file argument.

Usage

1
fars_read(filename)

Arguments

filename

A path to a file as a single string or vector.

Value

This function returns the data as a tibble.

Examples

1

mkaywins/farsdata documentation built on Nov. 4, 2019, 6:59 p.m.