NAME
Statistics::embedR - Object-oriented interface for Statistics::useR.
VERSION
Version 0.01
SYNOPSIS
use Statistics::embedR;
my $r = Statistics::embedR->new();
$r->eval($cmd); # execute $cmd
$r->R("1"); # 1
$r->R("'1'"); # '1'
my $ary = [3,5,7];
$r->arry2R($ary, "array"); # array == c(3,5,7)
$r->sum("c(2,3)"); # 5, almost all R functions are available automatically
DESCRIPTION
This module provides an object-oriented interface for Statistics::useR. And provides some additional useful methods for invoking R.
METHODS
eval(Str $cmd)
Execute R cmd given by the $cmd.
R(Str $cmd)
Execute R cmd given by the $cmd, and do some transformation on the results.
arry2R(ArrayRef $data, Str $RData)
Convert ArrayRef specified by $data to a R list structure with the name $RData.
AUTHOR
Hongwen Qiu, <qiuhongwen at gmail.com>
BUGS
Please report any bugs or feature requests to bug-statistics-embedr at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Statistics-embedR. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Statistics::embedR
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
ACKNOWLEDGEMENTS
LICENSE AND COPYRIGHT
Copyright 2010 Hongwen Qiu.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.