as_scalar | R Documentation |
Tag an atomic vector with a single element as class 'scalar'. When output to JSON it will be output as a scalar not a vector
as_scalar(x)
x |
atomic vector with length = 1 |
If x is an atomic vector with length = 1, then object is returned with class 'scalar', otherwise object is returned unmodified
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.