Learn R Programming

SciencesPo (version 1.3.5)

varOrder: Move variable order in a data.frame

Description

Move variable order in a data.frame

Usage

varOrder(data, var, where)

Arguments

data
The data object
var
The variable to be moved.
where
The new location for the variable (var).

encoding

UTF-8

Examples

Run this code
varOrder(ssex, "DK", "Oppose")

Run the code above in your browser using DataLab