getTags: Functions to manipulate StackExchange tags

Description Usage Arguments Details Value Author(s) See Also Examples

Description

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

Usage

1
2
3
4
5
6
getTags(num = NULL, filter = NULL, fromDate = NULL, toDate = NULL,
        min = NULL, max = NULL, sort = NULL, order = NULL,
        site = "stackoverflow.com")
getTagSynonyms(num = NULL, tags = 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

filter

Required text in returned tags

tags

An optional vector of tags, see details

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

Details

The getTags function will retrieve all tags that match the criteria specified.

The getTagSynonyms will by default return all tag synonyms that match the criteria but one can supply a vector of tag names, in which case syonyms are returned for just the tags specified (which also meet any other criteria).

As of this writing, tags don't seem to have a unique identifier and are only referenced by name.

Value

A list of seTag objects

Author(s)

Jeff Gentry

See Also

seTag

Examples

1
2
3
    zz <- getTags(filter='java', num=5)
    tags <- sapply(zz, function(x) x$getName())
    xx <- getTagSynonyms(num=3, tags=tags, order='desc')

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