I have this dataframe, with the following variables:
amostra_coc02 <- c("AI-0006-LT01-T1-1", "AI-0006-LT01-T1-1")
equipamento_coc02 <- c("FZ-001-CP", "FZ-001-CP")
data_coc02 <- c("2022-06-09", "2022-06-09")
data_coc03 <- c("2022-06-13", "2022-06-13")
data_medicao <- c("2022-06-11", "2022-06-12")
temperatura <- c("-28", "-29")
df <- data.frame(amostra_coc02 , equipamento_coc02, data_coc02, data_coc03, data_medicao, temperatura, datas_faltantes)
In the interval from 2022-06-09 to 2022-06-13, temperature measurements were taken on 2022-06-11 and 2022-06-12 as indicated in the "data_measurement" field.
I need it to return the dates 2022-06-09 / 2022-06-10 / 2022-06-13 I have several records in my dataframe, where I need to return these intervals.
I tried something like:
mutate(aux = first(data) + row_number() - 1)%>%
but for the most recent dates this doesn't work