Scroll to navigation

Statistics::R::REXP::Null(3pm) User Contributed Perl Documentation Statistics::R::REXP::Null(3pm)

NAME

Statistics::R::REXP::Null - the R null object

VERSION

version 1.0002

SYNOPSIS

    use Statistics::R::REXP;
    
    my $null = Statistics::R::REXP::Null->new();
    say $rexp->is_null;
    print $rexp->to_pl;

DESCRIPTION

An object of this class represents the null R object ("NILSXP"). The null object does not have a value or attributes, and trying to set them will cause an exception.

METHODS

"Statistics::R::REXP::Null" inherits from Statistics::R::REXP and adds no methods of its own.

ACCESSORS

SEXPTYPE of null objects is "NILSXP".
The Perl value of "NULL" is "undef".
Null objects have no attributes, so the attributes accessor always returns "undef".

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.

AUTHOR

Davor Cubranic <cubranic@stat.ubc.ca>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2017 by University of British Columbia.

This is free software, licensed under:

  The GNU General Public License, Version 3, June 2007
2022-02-10 perl v5.34.0