Description Usage Arguments Value See Also Examples
Create a "uts_vector"
from long (also known as narrow) tabular data. Data in this format has three different columns; the observation values, the observation times, and the entity/attribute name (e.g. person, country, economic indicator) of each observation.
1 | uts_vector_long(values, times, names = base::names(values))
|
values |
a vector observation values. |
times |
a |
names |
a character vector. The matching entity/attribute names of the observations. By default, the names of |
An object of class "uts_vector"
with length given by to the number of distinct sources.
uts_vector_wide
, uts_matrix_long
, uts_matrix_wide
1 2 3 4 5 6 | values <- c(a=5, b=6, a=6, a=7)
times <- as.POSIXct("2016-01-01") + dhours(1:4)
uts_vector_long(values, times)
uts_vector_long(values=1:10, times=as.POSIXct("2016-01-01") + days(1:10),
names=c("a", "a", "a", "a", "a", "c", "c", "b", "b", "b"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.