# NOT RUN {
library(dplyr)
library(timetk)
d10_daily <- m4_daily %>% filter(id == "D10")
# --- VECTOR ----
value_bc <- box_cox_vec(d10_daily$value)
value <- box_cox_inv_vec(value_bc, lambda = 1.25119350454964)
# --- MUTATE ----
m4_daily %>%
group_by(id) %>%
mutate(value_bc = box_cox_vec(value))
# }
Run the code above in your browser using DataLab