Dplyr: Feature request: return error when errant column used in distinct()

Created on 14 Jun 2017  路  2Comments  路  Source: tidyverse/dplyr

Can dplyr error out when one identifies a variable that does not exist in the data frame?

## No error returned despite aa not appearing in the complimentary R data frame named "cars"
df <- cars %>% distinct(aa)

bug

All 2 comments

Still broken in dplyr_0.7.2. Was it moved to a later release?

@holgerbrandl yes, the change appears to be reverted and moved to v0.9 (probably)

Was this page helpful?
0 / 5 - 0 ratings