parse_response.wikidiff2 {wikkitidy}R Documentation

Convert a response from a Wikipedia API into a convenient format

Description

Wikipedia's APIs provide data using a range of different json schemas. This generic function converts the data into a convenient formats for use in an R data frame.

Usage

## S3 method for class 'wikidiff2'
parse_response(response)

parse_response(response)

## Default S3 method:
parse_response(response)

## S3 method for class 'row_list'
parse_response(response)

Arguments

response

The data retrieved from Wikipedia.

Value

A vector the same length as the response. Generally, this will be a simple vector, a tibble::tbl_df or a list of tibble::tbl_df objects.

Methods (by class)


[Package wikkitidy version 0.1.14 Index]