kaijagahm / vultureUtils

Utility functions for working with vulture data
Other
4 stars 0 forks source link

Bug in cleanData #98

Closed kaijagahm closed 1 year ago

kaijagahm commented 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.