powered by
Coerce an object to matrix if needed (useful before algorithms that expect matrices).
matrix
adjust_matrix(data)
returns an adjusted matrix
dataset
data(iris) mat <- adjust_matrix(iris)
Run the code above in your browser using DataLab