Skip to contents

A generalised value is often written with its unit attached – "30-39歳", "1000-1999円", "65歳以上". The unit has to be removed before the endpoints can be read, and it is removed wherever it sits directly after a number, not only at the end of the value: "65歳以上" is the ordinary Japanese form and reading only "65以上" left the commonest top-coded band invisible (Issue #92).

Usage

generalization_units()

Value

a character vector of unit strings

Details

Stripping *any* text after a number would misread a categorical code such as "3S" as the number 3, so only these known units are removed. Pass your own vector to `score_containment(units = )` to extend the list.

Examples

generalization_units()
#>  [1] "時間"  "歳"    "才"    "年"    "円"    "人"    "件"    "回"    "日"   
#> [10] "月"    "%"    "時"    "分"    "秒"    "度"    "点"    "個"    "名"   
#> [19] "%"     "yr"    "yrs"   "y"     "years" "kg"    "km"    "cm"    "m"    
#> [28] "g"