#' @export
calculateAutoCorrelation <- function(avg_temperatures) {
acf(avg_temperatures$avgTemperature, lag.max = 1, plot = FALSE)$acf[2]
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.