O'Reilly logo

R Data Analysis Cookbook - Second Edition by Kuntal Ganguly

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How it works...

Steps 2 and 3 get data from Meetup.com using their console.

By default, Meetup APIs return 20 results (JSON documents) for each call. However, by adding page=n to the console or the URL (where n is a number), we can get more documents (up to a maximum of 200). The API response contains metadata information including the number of documents returned (in the count element), the total documents available (the total_count element), the URL used to get the response, and the URL to get the next set of results (the next element).

Step 4 saves the results displayed in the browser as groups.json in your R working directory.

Step 5 loads the JSON data file into an R data frame using the from JSON function in the jsonlite package. For ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required