| move_to_front | R Documentation | 
Rearrange columns of a data.table object, moving a list of columns to the front, while leaving the remaining columns in their original order.
move_to_front(DT, cols)
| DT | 
 | 
| cols | names of columns to move to the front | 
data.table with rearranged columns
Florian Klinglmueller
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.