Expands each element according to the factor expansions of columns in expand_as_numeric().

expand_vec(y, x)

Arguments

y

a vector of length 1 or ncol(x).

x

as in expand_as_numeric().

Value

A vector of size ncol(expand_as_numeric(x)).