[R] Searching for keyword values in a text (configuration) file

From: Andre Jung <ajung_at_gfz-potsdam.de>
Date: Wed 27 Sep 2006 - 13:07:36 GMT


Hi,

I would like to read values from an ASCII text file that contains information in the following format:

DEVICE = 'PC'
CPU_SPEED = '1999', '233'
...

It's like a config file.

How can I e.g. get R to read the 2nd value of CPU_SPEED? How do I go through text files and search for keywords and their values?

Thanks a lot,
Andre



R-help@stat.math.ethz.ch 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. Received on Wed Sep 27 23:08:18 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 27 Sep 2006 - 14:30:07 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.