Learn R Programming

bivarhr (version 0.1.5)

normalize_names: Normalize character names by stripping BOM and NBSP

Description

Removes common problematic Unicode characters from a character vector (Byte Order Mark and non-breaking spaces) and trims leading and trailing whitespace.

Usage

normalize_names(x)

Value

A character vector with BOM and non-breaking spaces removed and surrounding whitespace trimmed.

Arguments

x

Character vector (e.g., column names) to normalize.