[R] JSON data in data frame
Archit Soni
soni.archit1989 at gmail.com
Sat Jan 14 16:44:51 CET 2017
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
>>
>
>
[[alternative HTML version deleted]]
More information about the R-help
mailing list