rename_columns {VWPre}R Documentation

Rename default column names for interest areas.

Description

rename_columns will replace the default numerical coding of the interest area columns with more meaningful user-specified names. For example, IA_1_C and IA_1_P could be converted to IA_Target_C and IA_Target_P. Again, this will work for upto 8 interest areas.

Usage

rename_columns(data, Labels = NULL)

Arguments

data

A data table object output by either bin_prop. transform_to_elogit, or create_binomial.

Labels

A named character vector specifying the interest areas and the desired names to be inserted in place of the numerical labelling.

Value

A data table object with renamed columns.

Examples

## Not run: 
library(VWPre)
# For renaming default interest area columns
dat2 <- rename_columns(dat, Labels = c(IA1="Target", IA2="Rhyme", 
                           IA3="OnsetComp", IA4="Distractor")) 

## End(Not run)

[Package VWPre version 1.2.4 Index]