Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add tidiers for stats::decompose and stats::stl #165
This PR adds an
# Perform seasonal decomposition on the data with both decompose and stl: d1 <- stats::decompose(nottem) d2 <- stats::stl(nottem, s.window = "periodic", robust = TRUE) # Compare the original series to these two decompositions. cbind(broom::tidy(nottem), broom::augment(d1), broom::augment(d2))
The Roxygen documentation contains the above example (demonstrating basic usage) and a much longer one for visualising both types of decomposition using ggplot2. I don't know what the policy is on including these larger examples, but I'm happy to amend this one to fit the style of the project.
Similarly, I don't know what the policy is on adding test for new tidiers, but again I'm happy to write them.