R/add.colnames.resp.R

Defines functions add.colnames.resp

# IRTC
# Copyright (C) 2026 WEIAN DATA TECH (Beijing) Co., Ltd.
# SPDX-License-Identifier: GPL-2.0-or-later
# See inst/COPYRIGHTS for licensing details.

## File Name: add.colnames.resp.R

add.colnames.resp <- function(resp)
{
    if (!is.null(colnames(resp))) {
        return(resp)
    }

    item_numbers <- 1L:ncol(resp)
    colnames(resp) <- paste("I", item_numbers, sep="")
    resp
}

Try the IRTC package in your browser

Any scripts or data that you put into this service are public.

IRTC documentation built on July 24, 2026, 5:07 p.m.