Skip to content
Prev 199112 / 398506 Next

Conditional read-in of data

Hello Jim and Gabor,
Thanks for your inputs. The lines:

a<-as.matrix(read.table(pipe("awk -f cut.awk Data.file")))
cut.awk>{for(i = 1; i <= NF; i=i+10) print $i,""}

solved my problem. I know that 40k lines is not a large data set. I have
about 150 files each of which has 40k rows and in each file I wanted to
visualize (basically to ensure nothing odd is going on) how the data behaves
in each quarter of the data w/o making 150 figures/pdf files. In future as
my data size increases I will consider using relational databases.

Thanks again,
mnstn
Gabor Grothendieck wrote: