Is your feature request related to a problem? Please describe.
Downloading data for one or more specific states as described in the vignette takes a number of steps:
Load the regions table
Drop null values from it
Run a combination of which and stringr::str_detect to find the base filename
Run get_bbsData
Since this is a core functionality for the package it would be nice to hide this complexity from the user.
Describe the solution you'd like
Move the first three steps inside of get_bbsData and have the get_bbsData argument be region so that a call to get the data for Florida looks like: get_bbsData(region = 'Florida').
This is recommendation based on my experience while reviewing this package for JOSS (https://github.com/openjournals/joss-reviews/issues/1768).
Is your feature request related to a problem? Please describe.
Downloading data for one or more specific states as described in the vignette takes a number of steps:
which
andstringr::str_detect
to find the base filenameget_bbsData
Since this is a core functionality for the package it would be nice to hide this complexity from the user.
Describe the solution you'd like
Move the first three steps inside of
get_bbsData
and have theget_bbsData
argument beregion
so that a call to get the data for Florida looks like:get_bbsData(region = 'Florida')
.