test_that("calculateAutoCorrelation() gives number between 0 and 1", {
correlation <- nottem %>%
temperatureSeriesToDf %>%
tidyTemperatures %>%
addCelsiusColumn %>%
summariseAvgTemperatureByYear %>%
calculateAutoCorrelation
expect_gte(correlation, 0)
expect_lte(correlation, 1)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.