Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

turn row names into column in r

data$row_names <- row.names(data)                     # Apply row.names function
data                                                   # Print updated data
#   x1 x2 row_names
# 1  A  e         1
# 2  B  d         2
Source by statisticsglobe.com #
 
PREVIOUS NEXT
Tagged: #turn #row #names #column
ADD COMMENT
Topic
Name
2+6 =