Skip to contents

Methods extending objects defined in other packages.

Usage

# S3 method for tilt_profile
use_dictionary(data, ...)

Arguments

data

A 'tilt_profile'.

...

Arguments passed on to rsetools::use_dictionary

Examples

library(tiltIndicator)

profile <- tilt_profile(nest_levels(
  product = tibble(companies_id = "a", x = 1),
  company = tibble(companies_id = "a", y = TRUE)
))
class(profile)
#> [1] "tilt_profile" "tbl_df"       "tbl"          "data.frame"  

profile
#> # A tibble: 1 × 3
#>   companies_id product          company         
#> * <chr>        <list>           <list>          
#> 1 a            <tibble [1 × 1]> <tibble [1 × 1]>

use_dictionary(profile)
#> # A tibble: 4 × 5
#>   dataset level   name         type      definition
#>   <chr>   <chr>   <chr>        <chr>     <chr>     
#> 1 profile product companies_id character NA        
#> 2 profile product x            double    NA        
#> 3 profile company companies_id character NA        
#> 4 profile company y            logical   NA