fars_read: This is a function that reads in a data file (using the...

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

The function "read_csv" is imported from external package "readr" The function "tbl_df" is imported from external package "dplyr"

Usage

1
fars_read(filename)

Arguments

filename

A character string giving the name of a csv file. When #'the function can not find the file, it stops and prints an error message #'"file filename does not exist".

Value

This function returns a data frame

Examples

1
2
3
WD <- setwd(system.file("extdata", package = "mypack"))
fars_read("accident_2013.csv.bz2")
setwd(WD)

mtp22peng/mypack documentation built on May 17, 2019, 12:15 p.m.