Statis...:Double(3pm)

✨ NAME ✨

Statistics::R::REXP::Double β€” it's giving an R numeric vector, bestie πŸ’–


🌸 VERSION 🌸

version 1.0002 β€” yeah she's on 1.0002, keep up 🫢


πŸŽ€ SYNOPSIS πŸŽ€

okay so here's the whole vibe, copy it exactly:

use Statistics::R::REXP::Double

my $vec = Statistics::R::REXP::Double->new([
    1, 4, 'foo', 42
]);
print $vec->elements;

yes bestie, 'foo' is in there, and no, that's not a mistake, keep reading πŸ‘€


πŸ¦‹ DESCRIPTION πŸ¦‹

so an object of this class? it's literally the whole representation of an R numeric vector β€” aka a double vector, aka "REALSXP". that's the moment. that's the assignment. πŸ’…


πŸ‘‘ METHODS πŸ‘‘

Statistics::R::REXP:Double inherits from Statistics::R::REXP::Vector, but with one extra rule on top: its elements have to be real numbers. periodt.

and like β€” what happens when an element isn't a number? it gets the value undef. and same energy for elements whose R value is NA. both of them are undef. iconic behavior honestly 🫢

⭐ sexptype ⭐

the SEXPTYPE of complex vectors is REALSXP.

okay lowkey note this one down fr fr, it's the whole point of the method.

πŸ’€ BUGS AND LIMITATIONS πŸ’€

the classes in the REXP hierarchy are meant to be immutable. like, do not. do not try to change their value. do not try to change their attributes. just let them be their own main character, untouched. πŸ™ˆ

there are no known bugs in this module. if you do find something though, bestie, please see Statistics::R::IO for bug reporting. we're not gatekeeping the bug tracker πŸ’œ


🌈 SUPPORT 🌈

for support and contact info, go check Statistics::R::IO. that's the whole thing. she's there for you πŸŽ€


πŸ“ AUTHOR πŸ“

Davor Cubranic <cubranic@stat.ubc.ca> β€” shoutout to the author, ate and left no crumbs πŸ‘‘


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

free software, GPLv3, June 2007 β€” that's the whole license situation, no cap ⭐


and that's the page bestie!! 🫢 this was Statis...:Double(3pm) from the perl v5.34.0 era, dated 2022-02-10, brought to you by User Contributed Perl Documentation. slay, bye πŸ’…βœ¨