The goal of fars is to test building R packages knowedge.
This vinette is writen for the package fars
as part of week 4
assignment of the coursera course “R packages”. The aim of this is to
describe the functions in the package and their use cases. The packages
consists of 5 main functions:
[TBD] You can install the released version of fars from CRAN with:
install.packages("fars")
And the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("ineszz/fars")
This is a basic example which shows you how to solve a common problem:
library(fars)
#> Warning: replacing previous import 'vctrs::data_frame' by 'tibble::data_frame'
#> when loading 'dplyr'
## basic example code
make_filename(year) e.g. make_filename(2013)
fars_read(filename) e.g. fars_read(“accident_2013.csv.bz2”)
fars_read_years(years) e.g. fars_read_years(c(2013,2014,2015))
fars_summarize_years(years) e.g. fars_summarize_years(c(2013,2014,2015))
fars_map_state(state.num, year) e.g. fars_map_state(1,2013)
Peer-graded Assignment
For this assignment you’ll submit a link to the GitHub repository which contains your package. This assessment will ask reviewers the following questions:
Please, follow the links on Review Criteria.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.