What's the idiom of assigning a default value to a variable if it's  
not set?  In Ruby one can say

v ||= default

-- that's an or-assign, which triggers the assignment only if v is  
not set already.  Is there an R shorthand?

Cheers,
Alexy

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to