extract_id: Extracts an ID from string IRIS CSV file

View source: R/read_iris_csv.R

extract_idR Documentation

Extracts an ID from string IRIS CSV file

Description

First tries to extract only digits, separating these by underscore when there are multiple blocks. If this give a non-valid id, returns the whole string without spaces and periods, hoping it makes sense. For internal use, but should be overridden for exotic IDs

Usage

extract_id(id)

Arguments

id

One item from column Identifikation, e.g. "KEK-ZH-Nr.2013-1234"

Examples

extract_id

breathtestcore documentation built on Feb. 16, 2023, 10:42 p.m.