Description Usage Arguments Value Examples
Generate a new variable into the default data.frame. Default data.frame must be set using sedata(df) prior to use generate.
1 |
name |
Name of the new variable/column to create |
value |
The value to assign to the new variable. if it's a logical expression. The new variable will contain TRUE or FALSE according to the evaluation of the logical expression for each row The new variable is added to the original dataset. |
The new variable
1 | generate("test", "age/10")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.