| optional_nonneg_double_scalar | R Documentation |
S7 property accepting NULL or a single finite double greater than or equal to zero.
optional_nonneg_double_scalar
An S7 property object.
EDG
Penalty <- S7::new_class(
"Penalty",
properties = list(alpha = optional_nonneg_double_scalar)
)
Penalty()@alpha
Penalty(alpha = 0)@alpha
try(Penalty(alpha = -1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.