Skip to content

Convert json data to an r dataframe

5 messages · Rui Barradas, Jeff Newmiller, sp.duccio

#
It really seems to me that what you ought to be doing is carefully studying the code provided at the lamages link that you referenced until you can modify it to do what you want. It really isn't fair for you to ask people to do your thinking for you. This is the R-help mailing list, not R-do-my-work-for-me mailing list.

JSON, like XML, is a far more flexible data format than a data frame. That means it is up to you to decide what data or relationships you want to ignore so you can squeeze some useful subset of the information into a data frame. There is no way to write a do-it-all function that does this for all cases. Your goals must be part of each extraction function you use, so you really need to write it yourself.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.
"sp.duccio" <sp.duccio at gmail.com> wrote: