I'm rather new to this and I could use some help. I like to achieve 2 things in R. At the moment i have a dataset called "researchdata".
1. I like to manipulate the data in one specific column.
Let's say I want to change the text "New York" to "NY" in the column/variable "City". (so not the whole dataset at once) I'm not sure the command is different but i also like to do that with a number, for example change "-1" to "NA".
2. Deleting a specific value in a specific column
How do i delete the NA's or missing values or actually any kind of value or string for a specific column. Lets say I want to delete both the values "NA" and "-1" for the column/variable city.
I tried some commands but I couldn't get them work, they weren't what i was looking for. I hope you guys can help, thanks in advance.