Statistics::R::REXP::Vector(3pm)

Statistics::R::REXP::Vector3pm

An r vector

Usage

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

Version

version 1.0002

Overview

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.

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.

Support

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

Releases

Unchanged in 2 releases since Debian 12 (Bookworm).

  1. 12–13

Author

Davor Cubranic <[email protected]>

From libstatistics-r-io-perl 1.0002-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.