Description Usage Arguments Value Examples
set value to update only if update passes miss condition
1 | update_value(value, update, miss = is.null)
|
value |
the current value of the variable being updated |
update |
the updated value to check |
miss |
the condition function for update ( default = is.null ) |
update if miss condition not met, otherwise value
1 2 3 4 | y<- 100
y<-update_value(y, 200)
y<-update_value(y, NULL)
y<-update_value(y, 'a', function(x) x=='a')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.