pos_double_vector: Positive double vector S7 property

pos_double_vectorR Documentation

Positive double vector S7 property

Description

S7 property accepting a non-empty double vector with all elements finite, strictly greater than zero, and no NAs.

Usage

pos_double_vector

Value

An S7 property object.

Author(s)

EDG

Examples

Weights <- S7::new_class(
  "Weights",
  properties = list(case_weights = pos_double_vector)
)
Weights(case_weights = c(0.5, 1, 2))@case_weights
try(Weights(case_weights = c(1, 0)))

rtemis.core documentation built on Sept. 20, 2026, 9:06 a.m.