seComment-class: Class '"seComment"': A class to represent a StackExchange...

Description Details Fields Author(s) See Also Examples

Description

Provides a model to represent a StackExchange comment

Details

The seComment 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 seCommentFactory. Accessor set & get methods are provided for every field using reference class $accessors() methodology (see setRefClass). As an example, the body field could be accessed with object$getBody() and object$setBody().

Fields

commentID:

Internal ID of the comment

creationDate:

POSIXct date of when the comment was created

postID:

ID of object this is commenting on

postType:

What type of post this is a comment on, e.g. question or answer

score:

Total score

body:

Text of the comment

owner:

The owner of the comment, a seUser object

site:

StackExchange site this comment belongs to

Author(s)

Jeff Gentry

See Also

getComments, getRefClass

Examples

1
2
   zz <- getComments(num=5)
   sapply(zz, function(x) x$body)

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