dataset <- tibble::tibble(
state =
c("day", "day", "day", "night", "night", "day", "day", "night",
"night", "night", "day", "night")
)
number_states(dataset, state)
#example with photoperiods, calculating the mean values for each day and night
coordinates <- c(48.52, 9.06)
sample.data.environment |>
add_photoperiod(coordinates) |>
number_states(photoperiod.state) |>
dplyr::group_by(photoperiod.state.count, .add = TRUE) |>
dplyr::summarize(mean_MEDI = mean(MEDI)) |>
tail(13)
Run the code above in your browser using DataLab