User Tools

Site Tools


sort_by_date_or_value

For Dates, specify the format:

By date

data <- data[order(as.Date(data$Day, format='%Y-%m-%d')),]

Or in general:

data <- data[order(data$value),]
sort_by_date_or_value.txt · Last modified: 2015/09/21 16:43 by vincenzo