allBadges: Functions to manipulate StackExchange badges

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

Description

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

Usage

1
2
3
4
5
allBadges(num=NULL, site='stackoverflow.com')
nameBadges(num=NULL, site='stackoverflow.com')
tagBadges(num=NULL, site='stackoverflow.com')
badgeRecipients(ids, fromDate=NULL, toDate=NULL, num=NULL,
                site='stackoverflow.com')

Arguments

num

An upper bound on the number of results to return

ids

A vector of badge IDs to look up

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

site

Which StackExchange site to poll

Details

The allBadges function will return all badges in the site in alphabetical order

The nameBadges function will return all non-tagged-based badges in alphabetical order.

The tagBadges function will return all tagged-based badges in alphabetical order.

Value

All but badgeRecipients return a list of seBadge objects, while badgeRecipients returns a list of seUser objects.

Author(s)

Jeff Gentry

See Also

seBadge, seUser

Examples

1
2
3
    zz <- allBadges(num=25)
    ids <- sapply(zz, function(x) x$getBadgeID())
    xx <- badgeRecipients(ids, num=5)

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