rmw_clip: Function to "clip" the edges of a normalised time series...

View source: R/rmw_clip.R

rmw_clipR Documentation

Function to "clip" the edges of a normalised time series after being produced with rmw_normalise.

Description

rmw_clip helps if the random forest model behaves strangely at the beginning and end of the time series during prediction.

Usage

rmw_clip(df, seconds = 31536000/2)

Arguments

df

Data frame from rmw_normalise.

seconds

Number of seconds to clip from start and end of time-series. The default is half a year.

Value

Data frame.

Author(s)

Stuart K. Grange

See Also

rmw_normalise, rmw_plot_normalised

Examples


# Clip the edges of a normalised time series, default is half a year
data_normalised_clipped <- rmw_clip(data_london_normalised)


rmweather documentation built on June 22, 2024, 9:33 a.m.