Rserve::REXP::Character - an R character vector
use Rserve::REXP::Character
my $vec = Rserve::REXP::Character->new([ 1, '', 'foo', [] ]);
print $vec->elements;
An object of this class represents an R character vector (STRSXP
).
Rserve::REXP:Character
inherits from Rserve::REXP::Vector, with the added restriction that its elements are scalar values. Elements that are not scalars (i.e., numbers or strings) have value undef
, as do elements with R value NA
.
SEXPTYPE of character vectors is STRSXP
.