how to convert a data frame to matrix in r code example
Example 1: turn matrix into dataframe r
> baskets.df <- as.data.frame(t(baskets.team))
Example 2: data frame to matrix r
data.matrix(frame, rownames.force = NA)
> baskets.df <- as.data.frame(t(baskets.team))
data.matrix(frame, rownames.force = NA)