[R] Parsing JSON records to a dataframe
Jeroen Ooms
jeroenooms at gmail.com
Fri Jan 7 06:08:06 CET 2011
What is the most efficient method of parsing a dataframe-like structure that
has been json encoded in record-based format rather than vector based. For
example a structure like this:
[ {"name":"joe", "gender":"male", "age":41}, {"name":"anna",
"gender":"female", "age":23} ]
RJSONIO parses this as a list of lists, which I would then have to apply
as.data.frame to and append them to an existing dataframe, which is terribly
slow.
--
View this message in context: http://r.789695.n4.nabble.com/Parsing-JSON-records-to-a-dataframe-tp3178646p3178646.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list