[R] reading in a (very simple) list from a file
vas1 at st-andrews.ac.uk
Wed Oct 10 19:29:40 CEST 2012
Apologies - I feel this is a very simple thing to do yet I am failing
massively. I keep finding information about how to do much more complicated
things (usually on this mailing list!), which then fail when I try to apply
it to my simple task.
Anyway, all I want to do is read in a series of key-value pairs from a file.
I thought a list would be a good way to keep these, such that I could access
them like: listname$key
I was imagining a file like this:
(the keys will always be character strings, the values might be other types,
but they will always be single items)
I won't bore you with all the things I've tried. I'm sure I'm overlooking
something basic and simple, but I would greatly appreciate it if someone
could help me out here.
View this message in context: http://r.789695.n4.nabble.com/reading-in-a-very-simple-list-from-a-file-tp4645741.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help