Helper function to order data frame by two columns (col1, col2)

orderedDataFrame(df, col1 = "Name", col2 = "TIME_day")

Arguments

df

data.frame

col1

first column to be used for ordering (Default: Name)

col2

second column to be used for ordering (Default: TIME_day)

...

further arguments passed to function order(), e.g. decreasing = TRUE

Value

ordered (default: accending) data.frame according to col1 & col2