library(tsfeatures)
x <- generate_ts_with_target(
n = 1, ts.length = 60, freq = 1, seasonal = 0,
features = c("entropy", "stl_features"), selected.features = c("entropy", "trend"),
target = c(0.6, 0.9), parallel = FALSE
)
forecast::autoplot(x)
Run the code above in your browser using DataLab