powered by
Define function to transform a vector of modalities into matrix of binary data
vector2binary(x)
a numeric
a matrix of binary data.