search for: r_fh

Displaying 2 results from an estimated 2 matches for "r_fh".

Did you mean: r_f
2004 Sep 28
1
call R scripts from python
...earnt how to do it from perl, in fact reading in the mail archive I found the following good example: *************************************** #!/usr/local/bin/perl open (FILE, ">test.txt"); print FILE "a,b,c,d,e\n1,2,3,4,5"; close FILE; ####### Start R code #### open (R_FH, "|/usr/local/bin/R --no-save --slave") or die "$!"; print R_FH qq{ data<-read.csv("test.txt") datamean<-mean(as.numeric(as.character(data[1,])), na.rm=TRUE) write(datamean, file="out.txt") quit(save='no',status=0) }; close R_FH; #####...
2004 Jan 15
4
invoking R scripts from a linux shell ?
Hello, I have written perl programs that extract data from a text file, process them, and create other text files, which I'd like to apply some statistics too (for example with R). I'd like to do it all in once , with a single script. I'm not familiar with R, I'd like to know if this task could be accomplished by creating a linux shells that launches the perl scripts and then