as.data.table.array {data.cube}R Documentation

Convert array to data.table

Description

Convert array to data.table

Usage

## S3 method for class 'array'
as.data.table(x, keep.rownames = FALSE, na.rm = TRUE, ...)

Arguments

x

array

keep.rownames

ignored

na.rm

logical default TRUE, NA value of a measure is not included into resulting data.table

...

ignored

Value

A data.table object with (by default) non-NA values of a measure for each dimension cross.

Note

Array should not have a dimension named value because this name will be used for a measure in data.table.


[Package data.cube version 0.4.0 Index]