Re: [R] get data from Perl arrays

2012-04-02 Thread Till Bayer
On 4/2/2012 8:20 AM, José Ramón Blas Pastor wrote: Hi, a very simple doubt, but I do not know how to manage this. I want to plot a histogram for all data in 'datos.txt'. b) How could I invoke R inside Perl to do the same?? #!/usr/bin/perl open(DAT,"datos.txt"); while () { chomp; push(@da

[R] get data from Perl arrays

2012-04-01 Thread José Ramón Blas Pastor
Hi, a very simple doubt, but I do not know how to manage this. I want to plot a histogram for all data in 'datos.txt'. a) by using R: datos<-scan("datos.txt") pdf("xh.pdf") hist(datos) dev.off() b) How could I invoke R inside Perl to do the same?? #!/usr/bin/perl open(DAT,"datos.txt"); while (