Description Usage Arguments Value Examples
Convert (Zoo) Data Frame to Numeric
1 | make_numeric(df, time_var = "year")
|
df |
The data frame to be converted (which is not numeric) |
time_var |
The variable in the dataset which marks the year of the observations. E.g. "year" |
The original data frame but in numeric form
1 2 3 4 5 6 7 8 9 | #Souring the data
file = system.file("extdata", "hseinv.txt", package="Kenometrics")
data <- read.delim(file)
#Making the data time-series
TS_data <- make_ts("year", data)
#Converting back to numeric
non_TS_data <- make_numeric(TS_data, "year")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.