Description Usage Arguments Value See Also Examples
This function is used to assign expressions within a function to a value of your choice. It can be used with line_insert() to modify what a function returns, add additional conditional statements, and add more to already existing functions.
1 | line_assign(.f, line, assign_to)
|
.f |
A non-primitive function |
line |
An expression from the body of the function |
assign_to |
The name of the variable to assign to, as a string |
function
1 2 | new_map <- line_assign(strwidth, line = 3, assign_to = 'abc')
line_insert(new_map, after_line = 4, quote(return(abc)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.