Skip to content
Prev 58491 / 398502 Next

Reading word by word in a dataset

Thanks, Tony.
I got a very good idea of using "flush" in scan() from
your reply, so that I successfully did my little job.
But, my next question arises if I want to extract the
list of the price items only in the 2nd column in my
example.
I did it the following way. Is it the right way to do?
Or do you have a smarter or more efficient way to do
it?
i1-apple 10$ New_York
i2-banana 5$ London
i3-strawberry 7$ Japan
flush=T)[[2]]
Read 3 records
[1] "10$" "5$"  "7$"

Cheers,

John
--- Tony Plate <tplate at acm.org> wrote: