Addresses #37 by adding a new parameter, environment to calc_vol(). This PR also replaces the categorization with dplyr::case_when() with a simpler method using cut(). A side-effect of this is that now the category column is a factor, which seems appropriate.
Addresses #37 by adding a new parameter,
environment
tocalc_vol()
. This PR also replaces the categorization withdplyr::case_when()
with a simpler method usingcut()
. A side-effect of this is that now thecategory
column is a factor, which seems appropriate.