r - Select (dplyr) operator with '-' -
how use select (dplyr library) operator name containing '-'? example:
adultuci %>% select(capital-gain)
caused:
try this
data.frame(`a-b` = 1, c = 2, check.names = false) %>% select(`a-b`) # a-b # 1 1
Comments
Post a Comment