getAnswer: Functions to manipulate StackExchange answers

Description Usage Arguments Value Author(s) See Also Examples

Description

These functions allow you to download and manipulate answers from a StackExchange site

Usage

1
2
3
getAnswers(num=NULL, ids=NULL, fromDate=NULL, toDate=NULL,
           min=NULL, max=NULL, sort=NULL, order=NULL,
           site="stackoverflow.com")

Arguments

num

An upper bound on the number of results to return

ids

An optional vector of numeric IDs representing a specific subset of answers to search

fromDate

When present, an early bound on results to return, either as a POSIXct date or an Unix timestamp

toDate

When present, an upper bound on results to return, either as a POSIXct date or an Unix timestamp

min

When present, minimum value for the current sort

max

When present, maximum value for the current sort

sort

When present, how results are to be sorted, one of activity (default), creation or votes

order

When present, how results should be ordered, one of desc (default) or asc

site

Which StackExchange site to poll

Value

The getAnswers function returns a list of objects of class seAnswer

Author(s)

Jeff Gentry

See Also

seAnswer

Examples

1
2
     zz <- getAnswers(num=3, fromDate=as.POSIXct('2009-09-25'),
                      toDate=as.POSIXct('2010-05-30'))

geoffjentry/RStackExchange documentation built on May 17, 2019, 1:11 a.m.