expand_var: Function to expand variables from a vector of characters

Description Usage Arguments Value

View source: R/VarWrang.R

Description

Function to expand variables from a vector of characters

Usage

1
expand_var(masterdata, data, index, column)

Arguments

masterdata

: masterdata; not much use, just to know the number of subjects

data

: the dataframe containing the characters of variables

index

: the index column in "data"

column

: the column of characters in "data"

Value

A matrix with columns for different characters, and rows for different subjects, with values of 1 and 2


cheungngo/PrevCorr documentation built on Feb. 27, 2021, 9:10 p.m.