Statis...ression(3pm)
β¨ Statistics::R::REXP::Expression β the manual, but make it make sense β¨
okay so bestie, you found the page π this is Statis...ression(3pm) from the User Contributed Perl Documentation, and it's genuinely a cute one, i promise. let's get into it π«Ά
πΈ NAME πΈ
Statistics::R::REXP::Expression β it's an R expression vector, no cap π
π VERSION π
version 1.0002 β¨
π¦ SYNOPSIS π¦
use Statistics::R::REXP::Expression
# Representation of the R call C<expresson(1 + 2))>:
my $vec = Statistics::R::REXP::Expression->new([
Statistics::R::REXP::Language->new([
Statistics::R::REXP::Symbol->new('+'),
Statistics::R::REXP::Double->new([1]),
Statistics::R::REXP::Double->new([2])
])]);
print $vec->elements;
likeβ¦ look at her. building a whole R call out of pieces and then printing the elements. main character energy fr fr π
π DESCRIPTION π
so an object of this class represents an R expression vector, aka "EXPRSXP" π these objects hold a list of calls, symbols, etc. β like, for example, the stuff you get back when you call the R function "parse" or "expression" πΈ
π METHODS π
"Statistics::R::REXP:Expression" inherits from Statistics::R::REXP::List, and lowkey it adds no restrictions on the value of its elements. free spirit. no notes β¨
β sexptype
the SEXPTYPE of expressions is "EXPRSXP" π
that's the whole thing. iconic.
π to_pl
the Perl value of the expression vector is an array reference to the Perl values of its "elements" π (so basically it's equivalent to "map {$_-"to_pl}, $vec->elements>".)
and here's the lil plot twist β unlike List, elements that are atomic vectors of length 1 are still represented as a one-element array reference, rather than as scalar values π so don't get caught slippin on that one.
π BUGS AND LIMITATIONS π
the classes in the "REXP" hierarchy are intended to be immutable. please do not try to change their value or attributes π like, they said what they said. respect the boundaries bestie.
there are no known bugs in this module. for bug reporting, please see Statistics::R::IO π«Ά
πΈ SUPPORT πΈ
see Statistics::R::IO for support and contact information π
π AUTHOR π
Davor Cubranic <cubranic@stat.ubc.ca> β the author, the moment, the legend β¨
π 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
and that's the whole vibe check, bestie π this page came to you courtesy of perl v5.34.0, dated 2022-02-10, and filed under Statis...ression(3pm) β go forth and slay your expression vectors π
β¨π¦
π¦ where this page comes from
- debian bookworm: libstatistics-r-io-perl 1.0002-2 Β· GPL-3.0-only
- debian trixie: libstatistics-r-io-perl 1.0002-2 Β· GPL-3.0-only
- ubuntu jammy: libstatistics-r-io-perl 1.0002-2 Β· GPL-3.0-only
- ubuntu noble: libstatistics-r-io-perl 1.0002-2 Β· GPL-3.0-only
- ubuntu resolute: libstatistics-r-io-perl 1.0002-2 Β· GPL-3.0-only
- ubuntu stonking: libstatistics-r-io-perl 1.0002-2 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms