as.tbl_cube

0th

Percentile

Coerce an existing data structure into a

Coerce an existing data structure into a tbl_cube

Usage
as.tbl_cube(x, ...)

# S3 method for array as.tbl_cube(x, met_name = deparse(substitute(x)), dim_names = names(dimnames(x)), ...)

# S3 method for table as.tbl_cube(x, met_name = deparse(substitute(x)), dim_names = names(dimnames(x)), ...)

# S3 method for matrix as.tbl_cube(x, met_name = deparse(substitute(x)), dim_names = names(dimnames(x)), ...)

# S3 method for data.frame as.tbl_cube(x, dim_names, ...)

Arguments
x
an object to convert. Built in methods will convert arrays, tables and data frames.
...
Passed on to individual methods; otherwise ignored.
met_name
a string to use as the name for the metric
dim_names
names of the dimesions. Defaults to the names of the dimnames.
Aliases
  • as.tbl_cube
  • as.tbl_cube.array
  • as.tbl_cube.data.frame
  • as.tbl_cube.matrix
  • as.tbl_cube.table
Documentation reproduced from package dplyr, version 0.4.0.9000, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.