change_names {shortIRT}R 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)

[Package shortIRT version 0.1.3 Index]