Learn R Programming

shortIRT (version 0.1.3)

change_names: Change column names

Description

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

Usage

change_names(data)

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

Arguments

data

data.frame, A data frame

Examples

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

Run the code above in your browser using DataLab