rename_columns: Rename default column names for interest areas.

Description Usage Arguments Value Examples

View source: R/checking.R

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

1

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

1
2
3
4
5
6
7
## 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)

VWPre documentation built on Jan. 11, 2020, 9:28 a.m.