seUser-class: Class '"seUser"': A class to represent a StackExchange user

Description Details Fields Methods Author(s) See Also Examples

Description

This class models the user objects in the StackExchange family of websites

Details

The seUser class is implemented as a reference class. An instance of a generator for this class is provided as a convenience to the user as it is configured to handle most standard cases. To access this generator, use the object seUserFactory. Accessor set & get methods are provided for every field using reference class $accessors() methodology (see setRefClass). As an example, the displayName field could be accessed with object$getDisplayName() and object$setDisplayName().

Fields

userID:

Internal ID of this user

userType:

Type of user, e.g. registered

creationDate:

POSIXct date of when this user was created

displayName:

Short handle for this user

reputation:

Total reputation score for this user

lastAccessDate:

POSIXct date for last access of this user account

aboutMe:

Personal description of this user

questionCount:

Number of questions this user has asked

answerCount:

Number of answers this user has given

viewCount:

Number of times this user profile has been viewed

upVoteCount:

Number of up votes this user has cast

downVoteCount:

Number of down votes this user has cast

acceptRate:

Rate at which this user accepts answers

goldBadges:

Number of gold ranked badges earned

silverBadges:

Number of silver ranked badges earned

bronzeBadges:

Number of bronze ranked badges earned

site:

StackExchange site this answer belongs to

Methods

topAnswersByTags(tags):

Retrieves a list of seAnswer objects representing the top answers this user has given for a given set of tags

topQuestionsByTags(tags):

Retrieves a list of seQuestion objects representing the top questions this user has posted for a given set of tags

topTagsByAnswer:

Gets the top 30 tags (by score) this user has posted answers in

topTagsByQuestion:

Gets the top 30 tags (by score) this user has asked a question in

Author(s)

Jeff Gentry

See Also

getUsers, searchUsers, setRefClass

Examples

1
2
   zz <- searchUsers(num=5, filter='foo')
   zz[[2]]$topTagsByAnswers()

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