getComments: Functions to manipulate StackExchange comments

Description Usage Arguments Value Author(s) See Also Examples

Description

These functions can be used to retrieve comments from a StackExchange site.

Usage

1
2
3
getComments(num = NULL, ids = NULL, fromDate = NULL, toDate = NULL,
            min = NULL, max = NULL, sort = NULL, order = NULL,
            idsArePosts = FALSE, 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

idsArePosts

If TRUE, the ids argument are assumed to be ids of questions and answers, and will retrieve associated comments

Value

Returns a list of seComment objects

Author(s)

Jeff Gentry

See Also

seComment

Examples

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

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