# Load package
library(dplyr)
# Keep things reproducible
set.seed(123)
# Prepare example data for modelling, replicate observations twice too
data_london %>%
rmw_nest_for_modelling(by = c("site", "variable"), n = 2)
Run the code above in your browser using DataLab