[R] jsonlite

JEFFERY REICHMAN reichm@nj @ending from @bcglob@l@net
Tue Nov 6 20:06:44 CET 2018


r-help Forum

With a bit of r-help yesterday I was able to structure a JSON file such that I can read it within the R environment and export what I need except for one list object.

So when I run ....

location <- json.raw[["favorites"]]
thead(location)

# R returns something like ...

[[1]]
  favoriteValue          favoriteType          Classification
1          23527           https:// .....                xxxx
2          21837           https:// .....                xyxy

[[2]]
  favoriteValue          favoriteType          Classification
1          25427           https:// .....                xxxx
2          21237           https:// .....                xyxy
3          21997           https:// .....                xyxy

[[3]]
  favoriteValue          favoriteType          Classification
1          99427           https:// .....                xxxx


What I want (need) is a data frame that looks like 

    favoriteValue
1  23527, 21837
2  25427, 21237, 21997
3  99427

Jeff Reichman



More information about the R-help mailing list