make_column_names: A function to provide default names for columns and ensure...

Description Usage Arguments Value

View source: R/column_functions.R

Description

A function to provide default names for columns and ensure that every column has a name

Usage

1
make_column_names(n_cols, col_names = NULL, partial_names = TRUE)

Arguments

n_cols

numeric. Number of columns in the data

col_names

character vector with names for the columns.

partial_names

logical. If TRUE, the first seven columns will receive default names (“subject”, “md5_hash”, “controller”, “presentation_order”, “element_number”, “type”, “item”), since these columns are the same in all (default) Ibex controllers. So col_names will be taken to specify names for columns starting from 8. If FALSE, col_names will be taken as specifying names for all columns. If there are fewer than 8 columns, partial_names will always be taken to be FALSE.

Value

vector with column names


antonmalko/ibextor documentation built on May 25, 2019, 2:26 p.m.