Description Usage Arguments Details Value Author(s) See Also Examples
These functions interact with the question functionality of the StackExchange API
1 2 3 4 5 6 7 8 9 10 | getQuestions(num = NULL, ids = NULL, fromDate = NULL, toDate = NULL, min = NULL, max = NULL,
sort = NULL, order = NULL, tagged = NULL, site = "stackoverflow.com")
getUnansweredQuestions(num = NULL, fromDate = NULL, toDate = NULL, min = NULL, max = NULL,
sort = NULL, order = NULL, tagged = NULL, site = "stackoverflow.com")
getNoAnswerQuestions(num = NULL, fromDate = NULL, toDate = NULL, min = NULL, max = NULL,
sort = NULL, order = NULL, tagged = NULL, site = "stackoverflow.com")
getQuestionLinks(num = NULL, ids = NULL, fromDate = NULL, toDate = NULL, min = NULL, max = NULL,
sort = NULL, order = NULL, site = "stackoverflow.com")
getQuestionRelated(num = NULL, ids = NULL, fromDate = NULL, toDate = NULL, min = NULL, max = NULL,
sort = NULL, order = NULL, site = "stackoverflow.com")
|
num |
An upper bound on the number of results to return |
ids |
A vector of numeric IDs representing a specific subset of questions to search |
fromDate |
When present, an early bound on results to return, either as a |
toDate |
When present, an upper bound on results to return, either as a |
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
|
order |
When present, how results should be ordered, one of
|
tagged |
An optional vector of tags to limit the search space |
site |
Which StackExchange site to query |
The getQuestions
function is a standard search for questions.
The getUnansweredQuestions
function will limit the search to questions which are considered unanswered. This
means that there are no answers with at least one upvote for the question.
The getNoAnswerQuestions
function will limit the search to questions which have no answers.
The getQuestionLinks
function will return any questions which link to the questions represented by ids
The getQuestionRelated
function will return questions which are deemed related to those identified by ids
A list of seQuestion
objects
Jeff Gentry
1 2 3 4 5 6 7 8 | zz <- getQuestions(num=2, fromDate=as.POSIXct('2009-09-25'), toDate=as.POSIXct('2010-05-30'))
ids <- sapply(zz, function(x) x$getQuestionID())
getQuestionRelated(num=3, ids=ids)
xx <- getNoAnswerQuestions(num=3)
yy <- getUnansweredQuestions(num=2)
getQuestionLinks(ids=sapply(yy, function(x) x$getQuestionID()))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.