stack_questions: Query questions from the Stack Exchange API

Description Usage Arguments Details Value

View source: R/stack_questions.R

Description

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

Usage

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

Arguments

id

A vector containing one or more answer IDs

special

One of c("answers", "comments", "linked", "related", "timeline"), describing what information to retrieve about specific questions, or one of c("featured", "no-answers", "unanswered"), describing a filter to place on returned quesitons.

...

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 questions.

A question object is documented in full here:

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

It comes with the following columns:


Qalfredo/stackmath documentation built on May 9, 2017, 8:41 p.m.