Learn R Programming

adas.utils (version 1.0.0)

as_tibble.alias.matrix: Convert an alias matrix to a tibble

Description

Given an alias matrix, this function returns a tidy tibble of the alias structures, with the added generator column containing the generator (i.e. right-hand side) of the defining relationship that generates each alias.

Usage

# S3 method for alias.matrix
as_tibble(x, ..., compact = TRUE)

Value

a tibble representation of the alias matrix

Arguments

x

the alias matrix object.

...

additional arguments to as_tibble.

compact

a logical: if TRUE, it reports all possible effects combinations, even those with no alias.

Examples

Run this code
tibble::as_tibble(fp_alias_matrix(~A*B*C, ~B*C*D))

Run the code above in your browser using DataLab