Skip to contents

Just a convenient wrapper of attributes(x)$name.

Usage

zoo_name_get(x = NULL)

Arguments

x

(required, zoo object) Zoo time series to analyze. Default: NULL.

Value

character string

Examples

#simulate zoo time series
x <- zoo_simulate()

#get current name
zoo_name_get(x = x)
#> [1] "A"

#change name
x <- zoo_name_set(
  x = x,
  name = "My.New.name"
)

zoo_name_get(x = x)
#> [1] "My.New.name"

#clean name
x <- zoo_name_clean(
  x = x,
  lowercase = TRUE
)

zoo_name_get(x = x)
#> [1] "my_new_name"