Skip to content

Commit

Permalink
Improve comment about how across_cols() is used
Browse files Browse the repository at this point in the history
  • Loading branch information
DavisVaughan committed Mar 3, 2020
1 parent 7c47df9 commit cec55ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/data-mask.R
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ DataMask <- R6Class("DataMask",

# Pull unused vars from original data to keep from marking them as used.
# Column lengths will not match if `original_data` is grouped, but for
# across we only need the column names and types to be correct.
# the usage of tidyselect in `across()` we only need the column names
# and types to be correct.
cols_unused <- original_data[across_vars_unused]
cols_used <- self$current_cols(across_vars_used)

Expand Down

0 comments on commit cec55ba

Please sign in to comment.