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

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to