Add unit attribute to a query

unit(x)

Arguments

x

A single character idetifier for a unit or a concept set that identifies units

Value

An attribute that can be used in a query function

Examples

# create a unit attribute
unit(8713L)
#> ⁺ Capr Concept Attribute: Unit
#> # A tibble: 1 × 6
#>   concept_id concept_name concept_code domain_id vocabulary_id concept_class_id
#>        <int> <chr>        <chr>        <chr>     <chr>         <chr>           
#> 1       8713 NA           NA           NA        NA            NA              
unit("%")
#> ⁺ Capr Concept Attribute: Unit
#> # A tibble: 1 × 6
#>   concept_id concept_name concept_code domain_id vocabulary_id concept_class_id
#>        <int> <chr>        <chr>        <chr>     <chr>         <chr>           
#> 1       8554 %            NA           NA        NA            NA