Re: [R] Read Windows-like .INI files into R data structure?

From: Vladimir Eremeev <wl2776_at_gmail.com>
Date: Wed, 13 Jun 2007 01:20:57 -0700 (PDT)

One more question, inspired by this one, just to increase my R skill level.

Earl F. Glynn wrote:
>
> I need to process some datasets where the configuration information was
> stored in .INI-like files, i.e., text files with sections like this:
>
> [Section1]
> var1=value1
> var2=value2
> [Section2]
> A=value3
> B=value4
>
"var1=value1", "A=value3" is almost pure R code. Is it possible to use this feature to solve the problem? That is, something like eval(as.expression("A=value3")) and assign (store) the result in "lst$Section2" environment.

"lst" is a newly created list, containing the contents of the file being processed.

-- 
View this message in context: http://www.nabble.com/Read-Windows-like-.INI-files-into-R-data-structure--tf3908740.html#a11094865
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help_at_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 13 Jun 2007 - 08:41:15 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 13 Jun 2007 - 17:31:57 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.