compress_ems_codes: Compress EMS Codes

View source: R/codes.R

compress_ems_codesR Documentation

Compress EMS Codes

Description

Compresses EMS codes by removing EMS_ from start and replacing all '_' with '-'. This function is provided because wqbc stored EMS codes in expanded form.

Usage

compress_ems_codes(x)

Arguments

x

A character vector of codes to compress.

See Also

expand_ems_codes

Examples

compress_ems_codes(c("EMS_0014", "EMS_KR-P", "0-15"))

bcgov/wqbc documentation built on Feb. 11, 2023, 11:15 p.m.