validate_column_names: Validate Column Names

View source: R/validate_column_names.R

validate_column_namesR Documentation

Validate Column Names

Description

This function checks a vector of column names to ensure they are valid. It performs the following checks:

  • The column names must not be NULL.

  • The column names must not contain empty strings.

  • The column names must not contain NA values.

  • The column names must be unique.

Usage

validate_column_names(names)

Arguments

names

A character vector of column names to validate.

Value

Returns TRUE if all checks pass. If any check fails, the function stops and returns an error message.

Examples

validate_column_names(c("name", "age", "gender"))


fullRankMatrix documentation built on July 3, 2024, 5:12 p.m.