Reorder a single variable in a GADSdat
. The variable (var
) can be inserted right after another variable (after
) or at the beginning
of the GADSdat
via after = NULL
.
Arguments
- GADSdat
A
GADSdat
object.- var
Character string of the variable name which should be sorted.
- after
Character string of the variable name after which
var
should be inserted. IfNULL
,var
is inserted at the beginning of theGADSdat
.
Details
The variables in the dat
and in the labels
section are ordered. For reordering the whole GADSdat
, see
orderLike
.