powered by
Convert dataframe to matrix
weight.mat(data)
A matrix
dataframe of weight
weight.mat(data = weight)
Run the code above in your browser using DataLab