dot-TrimColNames: Remove prefixes from data frame column names

Description Usage Arguments Details Value Examples

Description

.TrimColNames is an internal function that is not intended to be called by the user. It is called by other FIRST API methods.

Usage

1
.TrimColNames(col_names)

Arguments

col_names

A character vector of column names, generally provided by the names() function.

Details

.TrimColNames removes all portions of a string up to and including the first period. It's intended to produce shorter column names that are easier to type in R interactive sessions. Column names without periods are left unchanged.

Value

A character vector of trimmed column names, with the same length as the col_names argument.

Examples

1
names(rankings) <- .TrimColNames(names(rankings))

irwinsnet/FIRST_api_R documentation built on Dec. 22, 2020, 5:12 p.m.