Renaming a variable starting with _ (ie _STATE)

I am having trouble renaming variables that start with an underscore for example data$_STATE. I am using BRFSS data and this is how it's being imported into R. When I try and rename or full_join, it doesn't recognize the underscore.

Any input would be fantastic.

Thanks in advance,

Christian

Blockquote

ian

Use backticks:

data$`_STATE`

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.