mean_3years | R Documentation |
mean_ai
smooth the value over 3 years (or 2 years at the start and the end of the serie)
mean_3years(data)
data |
the table in mean_IA to smooth. The mean AI column should be named " |
year <- c(1985:1995)
AI_standard <- rnorm(10,0.5,0.1)
data_ex <- as.data.frame(cbind(year, AI_standard))
mean_3years(data_ex)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.