fars_read: Read csv file if it exist in table format and creates a data...

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

Read csv file if it exist in table format and creates a data frame from it

Usage

1
fars_read(filename)

Arguments

filename

A character string and defines the name of the file where the data is going to be read from. filename represents also the path to get file.

Value

A data frame: a type of data structure used by R to represents rectangular data for statistical analysis. However if the filename doesn't exist the fars_read is stopped with error message.

Examples

1
2
3
4
5
6
7
8
## Not run: 
mydataInfolderOther <- fars_read(filename = "folder_data/my_data.csv")

## End(Not run)
## Not run: 
mydataInfolderCurrent <- fars_read(filename = "my_data.csv")

## End(Not run)

BouranDS/accident documentation built on Aug. 22, 2020, 12:02 a.m.