RAnEn::sortStations sorts the data based on either 'Xs', 'Ys', or 'StationNames'.

sortStations(obj, sort.stations = NULL, verbose = F)

Arguments

obj

A Forecasts or Observations

sort.stations

Either one of Xs, Ys, or StationNames, or a numeric vector for the order. For example, if a numeric vector is passed, like c(1, 4, 2, 3), the stations and the data will be ordered in such a way that: the first station is not moved, the second station is moved to the third position, the third station is moved to the forth position, and the forth station is moved to the second position. And there are only four stations!