variable | R Documentation |
Use this function to create a variable, which is a data array with frequencies. It can have a name and other named fields.
variable(data, startFrequency = NULL, name = NULL, fields = NULL)
data |
The data of the variable. |
startFrequency |
The frequency of the first element. |
name |
The name of the variable. |
fields |
A list that contains named fields. |
An object of class ldtv
, which is also a list with the following members:
data: Determines the data
.
name: Determines the name
.
startFrequency: Determines the startFrequency
.
fields: Determines the fields
.
data <- c(1,2,3,2,3,4,5)
start_f <- f.monthly(2022,12)
fields <- list(c("key1","value1"), c("key2", "value2"))
v1 = variable(data, start_f, "V1", fields)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.