Statistics::R::IO::RData - Supply object methods for RData files
version 0.10
use Statistics::R::IO::RData; my $rdata = Statistics::R::IO::RData->new('.RData'); my %r_workspace = $rdata->read; while (my ($var_name, $value) = each %r_workspace) { print $var_name, $value; } $rdata->close;
Statistics::R::IO::RData provides an object-oriented interface to parsing RData files. RData files store a serialization of a collection of named objects, typically a workspace. These files are created in R using the save function and are typically named with the .RData file extension. (Contents of the R workspace can also be saved automatically on exit to the file named .RData, which is by default automatically read in on startup.)
Statistics::R::IO::RData
save
.RData
Statistics::R::IO::RData inherits from Statistics::R::IO::Base and provides an implementation for the "read" method that parses RData files.
Reads a contents of the filehandle and returns a hash whose keys are the names of objects stored in the file with corresponding values as Statistics::R::REXP instances.
There are no known bugs in this module. Please see Statistics::R::IO for bug reporting.
See Statistics::R::IO for support and contact information.
Davor Cubranic <cubranic@stat.ubc.ca>
This software is Copyright (c) 2014 by University of British Columbia.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007
To install Statistics::R::IO, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Statistics::R::IO
CPAN shell
perl -MCPAN -e shell install Statistics::R::IO
For more information on module installation, please visit the detailed CPAN module installation guide.