Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

turn row names into column in r

library("dplyr")
data <- tibble::rownames_to_column(data, "row_names")  # Apply rownames_to_column
data                                                   # Print updated data
#   row_names x1 x2
# 1         1  A  e
# 2         2  B  d
# 3         3  C  c
Source by statisticsglobe.com #
 
PREVIOUS NEXT
Tagged: #turn #row #names #column
ADD COMMENT
Topic
Name
6+5 =