I'm a newbie to R studio (my final for this class is due tomorrow ) and I'm really struggling on renaming columns on one of my datasets so I can join it to the other. They have the same variables, they're just named something different. I used the
rename(new_cases, Entity = location, Day = date) View(new_cases) and it worked. It shows up in the R console but when I "view" the dataset it isn't there. I've tried it multiple times and restarted R and nothing works. It'll still combine with my other dataset but it is by no means tidy data. I've given a glimpse of the dataset as I do not know how to use the dput function. Pls help if you can! column titles are "location" "day" and "new_cases_smoothed"
1 China 2020-03-14 29.571 2 China 2020-03-15 25.714 3 China 2020-03-16 24.714 4 China 2020-03-17 24.429 5 China 2020-03-18 25.857 6 China 2020-03-19 32.000 7 China 2020-03-20 43.571