| opt_unwrap | R Documentation | 
Cast an optional object to its base type.
opt_unwrap(opt)
opt | 
 The optional variable to cast back  | 
Since an optional can be used the same way as its base type, there is no known scenario where this function might be useful.
The object wrapped in opt. 
NULL if opt is none.
make_opt(), match_with()
a <- option(5) class(a) ## [1] "optional" a <- opt_unwrap(a) class(a) ## [1] "numeric"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.