Statis...P::Raw(3pm)

🌸 Statistics::R::REXP::Raw 🌸

okay bestie, welcome to the perl manual page for Statistics::R::REXP::Raw β€” a User Contributed Perl Documentation moment. it's giving "R data types but make it perl". let's get into it πŸ’…


✨ NAME ✨

Statistics::R::REXP::Raw β€” an R raw vector, and yes she's exactly what she sounds like 🫢


πŸŽ€ VERSION πŸŽ€

version 1.0002. iconic. no notes. ⭐


πŸ¦‹ SYNOPSIS πŸ¦‹

here's the vibe, bestie:

use Statistics::R::REXP::Raw

my $vec = Statistics::R::REXP::Raw->new([
    1, 27, 143, 33
]);
print $vec->elements;

like… make the object, print the elements. that's the whole girl. 🌈


πŸ’– DESCRIPTION πŸ’–

so an object of this class represents an R raw vector, which in R-land goes by the SEXPTYPE "RAWSXP". she's built to hold the data of arbitrary binary objects β€” think bytes you read off a socket connection, that kind of thing. raw data energy, no cap. πŸ”₯


πŸ‘‘ METHODS πŸ‘‘

"Statistics::R::REXP:Raw" inherits from Statistics::R::REXP::Vector, but with one added restriction, and it's a big one: its elements are byte values, and they literally cannot have missing values. so if you try to create a raw vector with elements that aren't numbers in range 0-255? yeah, that raises an exception. it's giving strict. πŸ’€

✨ sexptype ✨

the SEXPTYPE of raw vectors is "RAWSXP". that's it, that's the tea. πŸ“


🚨 BUGS AND LIMITATIONS 🚨

classes in the "REXP" hierarchy are intended to be immutable. so please, bestie, do not try to change their value or attributes. hands off the masterpiece. πŸ™ˆ

there are no known bugs in this module. for bug reporting, go peek at Statistics::R::IO. 🌸


🫢 SUPPORT 🫢

see Statistics::R::IO for support and contact information. she's got you. πŸ’œ


⭐ AUTHOR ⭐

Davor Cubranic <cubranic@stat.ubc.ca> β€” the main character who wrote this. πŸ‘‘


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

periodt. free software, GPLv3, June 2007. slay. 🌈


and that's the whole page, bestie! this one shipped with perl v5.34.0 and was dated 2022-02-10. mwah, go forth and make raw vectors πŸ’–βœ¨πŸŽ€