R time series or data outliers

100 Views Asked by At

have data that has several aberrant values ​​and I want to correct this to make forecasts knowing that my values ​​are normally between and 4. as I have to take these values ​​without touching the normal values ​​(between 1 and 4). Thank you

Trafic date
107 01/02/2020
60 01/03/2020
3.4 01/04/2020
3.2 01/05/2020
2.9 01/06/2020
1

There are 1 best solutions below

1
On

You can try scaling the variable using scale() function.