stackr (version 0.0.0.9000)

stack_posts: Query posts from the Stack Exchange API

Description

Query for posts, either questions or answers, based on IDs.

Usage

stack_posts(id = NULL, special = NULL, ...)

Arguments

id
A vector containing one or more IDs, or none to query all questions and answers
special
One of c("comments", "revisions", "suggested-edits"), to return that information associated with the specified answers rather than the answers themselves
...
Additional arguments to API (see below)

Value

A data.frame of questions or answers (TODO)

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