add_numbered_colnames: Add numbered colnames with a common prefix.

View source: R/data_manip_utils.R

add_numbered_colnamesR Documentation

Add numbered colnames with a common prefix.

Description

Add numbered colnames with a common prefix.

Usage

add_numbered_colnames(x, prefix = "C")

Arguments

x

The variable to add column names to.

prefix

The prefix to use for each column name. Each column's number will be appended to this prefix to generate the column name.

Value

x, with its column names set to the column number appended to prefix.

Examples


# TODO: PCA example


DarwinAwardWinner/rctutils documentation built on July 22, 2022, 5:19 a.m.