I imported a csv file and I need to filter a row from the data frame. Then I need to take the number of death as a time series, i.e., s_1, s_2, s_3, s_4, ..., s_n, group the data into consecutive triples (s_1, s_2, s_3), (s_2, s_3, s_4), (s_3, s_4, s_5), etc. And plot the first two values as x and y coordinates and the third value as z coordinate.
My code is:
deaths.df = read.csv(file = "time_series_covid19_deaths_US.csv", header = TRUE)
D <- deaths.df %>%
- filter(Province_State == "Georgia" & Admin2 == "Macon")
I am not sure how to proceed!