orderLike: Order the variables in a GADSdat
.
Description
Order the variables in a GADSdat
according to a character vector. If there are discrepancies between the two sets, a warning is issued.
Usage
orderLike(GADSdat, newOrder)
Value
Returns a GADSdat
object.
Arguments
- GADSdat
A GADSdat
object.
- newOrder
A character vector containing the order of variables.
Details
The variables in the dat
and in the labels
section are ordered. Variables not contained in the character vector are moved to the end of the data.