|There's more than one way to do things|
Feed data to R using Statistics::Rby Anonymous Monk
|on Apr 29, 2011 at 15:55 UTC||Need Help??|
Anonymous Monk has asked for the
wisdom of the Perl Monks concerning the following question:
I am trying to use Statistics::R to run a simple t-test, but I am having a hard time feeding the data to R from my perl script.
Below is a minimal script. $data is created by the first 100 lines of my perl script, which I removed here.
Using "scan" does not work. The example in the documentation is too simple, it only contains one number. Also, I do not understand what the qq, q and backticks are in the argument of "send" in the documentation.
Normally in R I would run the following commands, but I would like to avoid writing the data out to a file and reading it back in.
If per chance someone uses the package, I would be grateful for any help. I am an R beginner so there may be ways of reading in data I do not know about.