Statistics::R::REXP::Vector - an R vector
version 0.092
use Statistics::R::REXP::Vector; # $vec is an instance of Vector $vec->does('Statistics::R::REXP::Vector'); print $vec->elements;
An object of this class represents an R vector. This class cannot be directly instantiated (it's a Moose::Role), because it is intended as a base abstract class with concrete subclasses to represent specific types of vectors, such as numeric or list.
Statistics::R::REXP::Vector inherits from Statistics::R::REXP.
Statistics::R::REXP::Vector
Returns an array reference to the vector's elements.
Perl value of the language vector is an array reference to the Perl values of its elements. (That is, it's equivalent to map {$_-to_pl}, $vec->elements>.)
elements
map {$_-
Classes in the REXP hierarchy are intended to be immutable. Please do not try to change their value or attributes.
REXP
There are no known bugs in this module. Please see Statistics::R::IO for bug reporting.
See Statistics::R::IO for support and contact information.
Davor Cubranic <cubranic@stat.ubc.ca>
This software is Copyright (c) 2014 by University of British Columbia.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007
To install Statistics::R::IO, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Statistics::R::IO
CPAN shell
perl -MCPAN -e shell install Statistics::R::IO
For more information on module installation, please visit the detailed CPAN module installation guide.