Error: unexpected input in "class

Doing web scrapping i found myself out with a dataframe where the names of the variables have symbols and I am having multiple issues with the data so I think that the solution is to rename the variable with the symbols on for the same name without the symbols but i got this error:

Error: unexpected input in "class(Weight▲"

Thank you for reading and posible solutions are welcome

Hi!

To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one: