change_names: Change column names

View source: R/change_names.R

change_namesR Documentation

Change column names

Description

Change the columns names of a data frame and stores the original column names

Usage

change_names(data)

Arguments

data

data.frame, A data frame

Value

A list of length two:

1. a data frame with the original column names and the corresponding new names

2. a data frame with the changed column names

Examples

# original data frame with 5 columns
data <- data.frame(matrix(1:20, nrow = 4, ncol = 5))
change_names(data)

shortIRT documentation built on Sept. 9, 2025, 5:33 p.m.