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