Learn R Programming

examly (version 0.2.0)

detect_id_cols: Detect ID columns using regex

Description

Searches a vector of column names for common ID-related patterns.

Usage

detect_id_cols(cols)

Value

A character vector of names that matched the ID pattern.

Arguments

cols

A character vector of column names.

Examples

Run this code
detect_id_cols(c("Ad", "Soyad", "ogrenci no", "Madde1", "StudentID"))

Run the code above in your browser using DataLab