powered by
Copy the variable order from one dataset to another.
copyOrder(source, target)
the dataset you want to copy the order from
the dataset you want to copy the order to
returns an object of class VariableOrder (which can be assigned to a dataset with ordering)
VariableOrder
ordering
# NOT RUN { ordering(ds) <- copyOrder(ds1, ds) # }
Run the code above in your browser using DataLab