Rserve::REXP::Double - an R numeric vector
use Rserve::REXP::Double
my $vec = Rserve::REXP::Double->new([ 1, 4, 'foo', 42 ]);
print $vec->elements;
An object of this class represents an R numeric (aka double) vector (REALSXP
).
Rserve::REXP:Double
inherits from Rserve::REXP::Vector, with the added restriction that its elements are real numbers. Elements that are not numbers have value undef
, as do elements with R value NA
.
SEXPTYPE of complex vectors is REALSXP
.