zoo_name_set | R Documentation |
Zoo time series do not have an attribute 'name'. However, within distantia
, to keep data consistency in several plotting and analysis operations, an attribute 'name' is used for these objects. This function is a convenient wrapper of attr(x = x, which = "name") <- "xxx"
.
zoo_name_set(x = NULL, name = NULL)
x |
(required, zoo object) Zoo time series to analyze. Default: NULL. |
name |
(required, character string) name or new name of the zoo object. If NULL, |
zoo time series
Other zoo_functions:
zoo_aggregate()
,
zoo_name_clean()
,
zoo_name_get()
,
zoo_permute()
,
zoo_plot()
,
zoo_resample()
,
zoo_smooth_exponential()
,
zoo_smooth_window()
,
zoo_time()
,
zoo_to_tsl()
,
zoo_vector_to_matrix()
#simulate zoo time series
x <- zoo_simulate()
#get current name
zoo_name_get(x = x)
#change name
x <- zoo_name_set(
x = x,
name = "My.New.name"
)
zoo_name_get(x = x)
#clean name
x <- zoo_name_clean(
x = x,
lowercase = TRUE
)
zoo_name_get(x = x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.