Description Usage Arguments Examples
Move columns to the beginning
1 | setcolfirst(x, first)
|
first |
vector; character (names of columns) integer (column numbers) |
a |
data.table |
1 2 3 4 | data(iris)
setDT(iris)
setcolfirst(iris,"Species")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.