Sort dataset by a column
examples/data-frames/sort_dataset_by_a_column.R
iris = read.table(file="data/iris.txt", sep=" ", header=T, stringsAsFactors=T) head(iris) ord = order(iris$Sepal.Length) head(iris[ord,])
iris = read.table(file="data/iris.txt", sep=" ", header=T, stringsAsFactors=T) head(iris) ord = order(iris$Sepal.Length) head(iris[ord,])