Integer.Rd
A class and a constructor function to create integer vector trait(let)s.
Integer(...)
# S3 method for Integer
as.integer(x, ...)
# S3 method for Integer
as.numeric(x, ...)
# S3 method for Integer
to_json(x, ...)
Other arguments.
An integer traitlet.
RKernel::Trait
-> Integer
value
An integer vector.
optional
Logical value, whether a length-zero value is allowed.
coerce
Logical value, whether assignments to the value field should be coerced to the appropriate type.
length
Integer number, the length the value should have.
Inherited methods
new()
Initialize the traitlet.
IntegerClass$new(
initial = integer(0),
coerce = TRUE,
optional = length(initial) == 0,
length = 1L
)
initial
An integer vector, the initial value for the traitlet.
coerce
coerce Logical value, whether assignments to the value field should be coerced to the appropriate type.
optional
Logical value, whether a length-zero value is allowed.
length
Integer number, the length the value should have.