Converts a vector of attribute strings to a matrix with as many columns as there are different attributes occurring in the vector and each row representing an element of the vector for which the values of assigned attributes will occur in the corresponding attribute column.