cross_tab_tbl {CellaRepertorium} | R Documentation

## Generate a 2d cross tab using arbitrary numbers of columns as factors

### Description

As many rows as unique combs of x_fields As many columns as unique combs of y_fields No NA.

### Usage

    cross_tab_tbl(tbl, x_fields, y_fields)

### Arguments

`tbl` | `data.frame`
`x_fields` | `character` fields in `tbl`
`y_fields` | `character` fields in `tbl`

### Value

`tibble`

### Examples

    cross_tab_tbl(mtcars, c('cyl', 'gear'), 'carb')

[Package CellaRepertorium version 1.4.0 Index]