How to use SELECT (dplyr library) operator with name containing '-'? For 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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With