factorR2 | R Documentation |
factorR2
returns the R^2
of the series' regression on the factors
in form of a tibble.
factorR2(series, factors, plot = F)
series |
A tibble with multiple time series as columns. |
factors |
A tibble with factors as columns. |
plot |
A logical indicator whether the function should additionally return a bar plot of the R^2. |
A tibble of R^2 from each time series for each factor will be
returned.
If plot = TRUE
, a plot containing the R^2 is returned
and displayed additonally.
dat <- pca( keywords = c("Pluto", "Saturn"), categories = 0, geo = "DE", time = paste("2020-01-01", "2020-06-01") ) series <- dplyr::select(dat, date, 4:5) factors <- dplyr::select(dat, date, 2:3) factorR2(series, factors, plot = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.