standardizeColnames: Standardize Column Names in a Dataframe (Internal)

View source: R/cleanPedigree.R

standardizeColnamesR Documentation

Standardize Column Names in a Dataframe (Internal)

Description

This internal function standardizes the column names of a given dataframe. It utilizes regular expressions and the 'tolower()' function to match column names against a list of predefined standard names. The approach is case-insensitive and allows for flexible matching of column names.

Usage

standardizeColnames(df, verbose = FALSE)

Arguments

df

A dataframe whose column names need to be standardized.

verbose

A logical indicating whether to print progress messages.

Value

A dataframe with standardized column names.


BGmisc documentation built on April 12, 2025, 2 a.m.