Extract value column and present it as ts

extract_value(model_sample, target = "value")

Arguments

model_sample

preferably tsibble

target

name of the target variable, "value" by default

Value

univariate time series

Details

Extract value column and present it as ts

Examples

test = dplyr::tibble(date = as.Date("2017-01-01") + 0:9, value = rnorm(10)) extract_value(test)
#> Time Series: #> Start = 1 #> End = 10 #> Frequency = 1 #> value #> [1,] 1.21248959 #> [2,] 1.24036003 #> [3,] 0.68567588 #> [4,] -0.02679868 #> [5,] 0.30958051 #> [6,] 0.24986433 #> [7,] -1.35646087 #> [8,] 0.59937977 #> [9,] 0.00864779 #> [10,] 0.09071661