Closed kaijagahm closed 1 year ago
df3 <- df3 %>% dplyr::mutate(daylight = ifelse(timestamp >= .data[[sunrise]] & timestamp <= .data[[sunset]], "day", "night")) %>% dplyr::select(-c("sunrise", "sunset"))
should instead be
df3 <- df3 %>% dplyr::mutate(daylight = ifelse(timestamp >= .data[["sunrise"]] & timestamp <= .data[["sunset"]], "day", "night")) %>% dplyr::select(-c("sunrise", "sunset"))
I remembered to put this in quotes when I did it in another function, but in cleanData I forgot, it looks like.
should instead be
I remembered to put this in quotes when I did it in another function, but in cleanData I forgot, it looks like.