Hi Guys

I am trying to read a bunch of files in the loop but pipe function
which I use to cut few columns is somehow unable to interpolate the
file variable.


eg:

> file="check.txt"
> data  <- read.table(pipe("cut -f 2,3 file"), sep="\t", 
> col.names=c('pos','cov') )
cut: file: No such file or directory

how can I pass variable file to pipe so that it can be interpolated.

Thanks!
-Abhi

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to