Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign uproles and possible type to list columns #221
Comments
|
This change would also need changes to the various check functions that now expect a single type/role. Would you ever need to have exclusive selections? Additionally, should Maybe having roles <- c("numeric", "date")
add_role(roles, "fun")
#> [1] "numeric" "date" "fun"
change_role(roles, from = "numeric", to = "character")
#> [1] "character" "date"
reset_role(roles, "character")
#> [1] "character" |
In the spirit of breaking changes for the next version...☹️
For example:
Created on 2018-10-08 by the reprex package (v0.2.1)
There are certainly occasions where a column can play more than one role.
We also might want to have more granular
typeattributes. For example, should a date field have types of "numeric" and "date"?This would affect the functionality of
add_roleand we might need an additionalchange_rolesince the former should append and the latter should reset.