Answers for "reorder dataframe cols r"

2

reorder dataframe cols r

col_order <- c("Species", "Petal.Width", "Sepal.Length",
               "Sepal.Width", "Petal.Length")
my_data2 <- my_data[, col_order]
Posted by: Guest on July-08-2020

Code answers related to "reorder dataframe cols r"

Browse Popular Code Answers by Language