stack_answers: Query answers from the Stack Exchange API

Description Usage Arguments Details Value

Description

Query for a list of answers, or information related to a one or more specific answers.

Usage

1
stack_answers(id = NULL, special = NULL, ...)

Arguments

id

A vector containing one or more answer IDs, or none to query all answers

special

If "comments", return the comments on the answers rather than the answers themselves

...

Additional arguments to API (see below)

Details

API querying methods allow the following additional options:

site

ID of Stack Exchange site (by default, Stack Overflow)

sort

field to sort by

order

whether the sort field should be arranged in descending ("desc") or ascending ("asc") order

min

Minimum value of the sort field

max

Maximum value of the sort field

fromdate

Starting date

todate

Ending date

page

Which page to start from

pagesize

Size of each page to extract (max 100)

num_pages

Number of pages to extract

Value

A data.frame of answers.

An answer object is documented in full here:

https://api.stackexchange.com/docs/types/answer

It comes with the following columns:


dgrtwo/stackr documentation built on May 15, 2019, 8:20 a.m.