logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Statistics::R::REXP::Vector - an R vector

Author

       Davor Cubranic <cubranic@stat.ubc.ca>

Bugs And Limitations

       Classes  in the "REXP" hierarchy are intended to be immutable. Please do not try to change their value or
       attributes.

       There are no known bugs in this module. Please see Statistics::R::IO for bug reporting.

Description

       An object of this class represents an R vector. This class cannot be directly instantiated (it will die
       if you call "new" on it), because it is intended as a base abstract class with concrete subclasses to
       represent specific types of vectors, such as numeric or list.

Methods

       "Statistics::R::REXP::Vector" inherits from Statistics::R::REXP.

   ACCESSORS
       elements
           Returns an array reference to the vector's elements.

       to_pl
           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>.)

       type
           Human-friendly description of the vector type (e.g., "double" vs.  "list"). For the true R type,  use
           sexptype.

Name

       Statistics::R::REXP::Vector - an R vector

Support

       See Statistics::R::IO for support and contact information.

Synopsis

           use Statistics::R::REXP::Vector;

           # $vec is an instance of Vector
           $vec->does('Statistics::R::REXP::Vector');
           print $vec->elements;

Version

       version 1.0002

See Also