The error message that I'm getting is as followed:
Error in rename():
! Can't rename columns that don't exist. Column ActivityDate doesn't exist.
Run rlang::last_trace() to see where the error occurred.
In my data frame there is a column named "Activity Date" as well as a column named "Sleep Day" and I'm trying to rename them. Can someone please tell me how to resolve the code error.
The error occurs because R is case-sensitive and also doesnβt handle spaces in column names well. Try using backticks or check column names with colnames(daily_activity). Modify your code like this:
It seems that my problems are stemming from the fact that I haven't loaded the packages into Rmd. When I went to load the appropriate packages in I'm getting the following message:
The messages inform you that there are functions with the same names in different packages and inform you which take precedence (due to the order of loading the packages).