R data.frame from matrix code example
Example 1: data frame to matrix r
data.matrix(frame, rownames.force = NA)
Example 2: R data.frame from matrix
df = as.data.frame(matrix)
data.matrix(frame, rownames.force = NA)
df = as.data.frame(matrix)