Description Usage Arguments Value Examples
Convert the entire dataset to time-series data type
1 |
time_vars |
The variable in the dataset which marks the year of the observations. E.g. "year". If there are separate year and month variables, use a vector with the year variable first and the month variable second. E.g. c("year", "month") |
df |
The dataframe which needs to be made a time series data |
vars |
A vector of variable names, e.g. c("pop", "inv", ) |
The new dataset
1 2 3 | file = system.file("extdata", "hseinv.txt", package="Kenometrics")
data <- read.delim(file)
TS_data <- make_ts("year", data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.