Learn R Programming

crunch (version 1.24.0)

copyOrder: Copy the variable order from one dataset to another.

Description

Copy the variable order from one dataset to another.

Usage

copyOrder(source, target)

Arguments

source

the dataset you want to copy the order from

target

the dataset you want to copy the order to

Value

returns an object of class VariableOrder (which can be assigned to a dataset with ordering)

Examples

Run this code
# NOT RUN {
ordering(ds) <- copyOrder(ds1, ds)
# }

Run the code above in your browser using DataLab