changing row names data fram in R code example
Example 1: set row names in r
row.names(x) <- value
Example 2: turn row names into column in r
d <- cbind(rownames(d), data.frame(d, row.names=NULL))
row.names(x) <- value
d <- cbind(rownames(d), data.frame(d, row.names=NULL))