GerkeLab / fcds

Process data from the Florida Cancer Data System
https://gerkelab.github.io/fcds/
Other
3 stars 1 forks source link

Tidyeval Principles #69

Closed gadenbuie closed 5 years ago

gadenbuie commented 5 years ago

When to use tidyeval and NSE?

  1. Columns that are expected to exist in the input data and are used in computation should be unquoted.

    fcds %>%
     separate_age_groups(age_column)
  2. Columns that are created, added, or (possibly) overwritten are character strings.

    # good
    fcds %>%
     separate_age_groups(age_column, age_min = "age_low")
    
    # bad
    fcds %>%
     separate_age_groups(age_column, age_min = age_low)