Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

reorder dataframe cols r

col_order <- c("Species", "Petal.Width", "Sepal.Length",
               "Sepal.Width", "Petal.Length")
my_data2 <- my_data[, col_order]
Source by www.sthda.com #
 
PREVIOUS NEXT
Tagged: #reorder #dataframe #cols
ADD COMMENT
Topic
Name
3+6 =