Description Usage Arguments Note Examples
This function updates by reference multiple columns by applying
a desired function such as numeric
, factor
using functions in
the same manner as apply()
, or with .
as a placeholder.
1 |
x |
A data.table. Or, set() accepts data.frame, too. If you are creating new columns, x should be a data.table.
|
j |
Column name(s) (character) or number(s) (integer) to be assigned
value when column(s) already exist, and only column name(s) if they are to
be added newly. Additionally, assigning |
value |
A list of replacement values to assign by reference to
|
... |
Is used to pass arguments into the value "function" if you choose
to apply a function instead of updating the data with a replacement vector
or list. If you choose to place a |
These functions are for convenience only.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.