extract_name: Extract only a non-code component

extract_nameR Documentation

Extract only a non-code component

Description

This uses a regular expression to strip a code from beging of a character string. Useful to extract names from code-name variables.

Usage

extract_name(x)

Arguments

x

A character vector (or a factor).

Value

A character vector (or a factor).

See Also

extract_code

Examples

 extract_name("S1311 Valtionhallinto")

pttry/statfitools documentation built on Feb. 2, 2025, 1:50 a.m.