JSON data in data frame
Hey Rob, Thanks for replying but what i see after i run str(tab$list) is that it has nested data.frame. And for some weird reason Spotfire is discarding and stating as illegal data type.
On Jan 14, 2017 20:15, "Rob Baer" <rwbaer at gmail.com> wrote:
I just tried after fixing what I thoug were email wrapping errors and it
seemed to work:
library(jsonlite)
dat<- fromJSON('http://api.openweathermap.org/data/2.5/group?id=
524901,703448,2643743&units=metric&appid=ec0313a918fa729d4372555ada5fb1f8
')
tab <- dat$list
Avoid the line breaks in your string
On 1/14/2017 3:25 AM, Archit Soni wrote:
library(jsonlite)
dat<- fromJSON('
http://api.openweathermap.org/data/2.5/group?id=524901,70344
8,2643743&units=metric&appid=ec0313a918fa729d4372555ada5fb1f8
')
tab <- dat$list