View source: R/Ajuste_prophet.R
outliers_to_prophet | R Documentation |
Modifica los datos que seran outliers, soporta vector de rangos.
Es necesario usar formato de entrada prophet, de no hacerlo se ajustara usando data_to_prophet
outliers_to_prophet(datos, from, to, ..., verbose = T)
datos |
Datos para el análisis de serie de tiempo solo Data.frame |
from |
[as.Date] Univalor o vector de fechas para hacer intervalos de outliers |
to |
[as.Date] Univalor o vector de fechas para hacer intervalos de outliers |
... |
Not work |
Si se ingresa vector de fechas, from y to deben ser del mismo tamaño.
Data.frame con outliers etiquetados con NA
datos <- read.csv("https://raw.githubusercontent.com/crissthiandi/datos/master/Series_tiempo/sunspot_month_dataframe.csv")
outliers_to_prophet(datos,as.Date('2002-02-01'),as.Date('2007-06-01'))
# Si se usan varios rangos
from <- c(as.Date('1800-06-01'),as.Date('2004-03-01'))
to <- c(as.Date('1805-06-01'),as.Date('2007-03-01'))
outliers_to_prophet(datos,from,to)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.