Describe unique values in a data frame
Usage
describe_unique(
df,
...,
.rename_first = "value",
.set_names = NULL,
.names_to = "variable"
)
Examples
describe_unique(fuimus:::forager_data(), claim_id, payer)
#> # A tibble: 17 × 3
#> variable value n
#> <chr> <chr> <int>
#> 1 claim_id 01 1
#> 2 claim_id 02 1
#> 3 claim_id 03 1
#> 4 claim_id 04 1
#> 5 claim_id 05 1
#> 6 claim_id 06 1
#> 7 claim_id 07 1
#> 8 claim_id 08 1
#> 9 claim_id 09 1
#> 10 claim_id 10 1
#> 11 payer BCBS 2
#> 12 payer Medicare 2
#> 13 payer UnitedHealth 2
#> 14 payer Anthem 1
#> 15 payer Centene 1
#> 16 payer Humana 1
#> 17 payer Medicaid 1
# describe_unique(fuimus:::forager_data(200), names(df)[2:3])