sometimes age categories get changed from 0-10 to 0.10 and 60+ to 60. replace each substituted period with the correct character

repair_names_age(x)

Arguments

x

a named list or data.frame

Value

a named list or data.frame

Examples

state <- c(S_0.10 = 100, E_60. = 1)
repair_names_age(state)
#> S_0-10  E_60+ 
#>    100      1