as.hierarchy {data.cube} | R Documentation |
Create hierarchy
as.hierarchy(x, ...) ## Default S3 method: as.hierarchy(x, ...) ## S3 method for class 'list' as.hierarchy(x, ...)
x |
list which keeps named character vectors (often length 0L) of level key and dependent attributes not listed yet on lower level key. |
... |
arguments passed to methods. |
You generally won't need to use that function directly, but use as.dimension
that takes a list of (possibly named) hierarchies inputs.
hierarchy class object.
hierarchy
, level
, dimension
, data.cube
time.calendar = as.hierarchy(list( year = character(), quarter = character(), month = character(), date = c("year","quarter","month") )) str(time.calendar)