[R] Convert string to list?

Manuel Morales Manuel.A.Morales at williams.edu
Fri Jul 27 02:39:28 CEST 2007


Let's say I have the following string:

str <- "P = 0.0, T = 0.0, Q = 0.0"

I'd like to find a function that generates the following object from
'str'.

list(P = 0.0, T = 0.0, Q = 0.0)

Thanks!

-- 
http://mutualism.williams.edu



More information about the R-help mailing list