df2matrix function

Translates a data.frame, formatted for use in multiple membership modelling in MLwiN, to a matrix.