how do I change row names within this variable in my data frame? I would like to change all ActivityHour 00AM 1AM 2AM 8AM 9AM 10AM 11AM 12PM 1PM 2PM 3PM
structure(list(Id = c("user_1", "user_1", "user_1", "user_1",
"user_1", "user_1", "user_1", "user_1", "user_1", "user_1"),
ActivityHour = c("0:00", "1:00", "2:00", "8:00", "9:00",
"10:00", "11:00", "12:00", "13:00", "14:00"), TotalIntensity = c(20,
8, 7, 13, 30, 29, 12, 11, 6, 36), AverageIntensity = c(0.333333,
0.133333, 0.116667, 0.216667, 0.5, 0.483333, 0.2, 0.183333,
0.1, 0.6)), row.names = c(NA, -10L), class = c("tbl_df",
"tbl", "data.frame"))
Thank you!