r dataframe to matrix 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)