parsePost: Parsing a Google+ post

Description Usage Arguments Details Value Examples

Description

This function turns a Google+ post into a (1 row) data frame extracting or computing a number of fields. See Details.

Usage

1

Arguments

p

A raw post as returned from e.g. the harvestPage function.

Details

This function extracts or computes the following fields:

ti

Date and time the post was published.

age

The age of the post as difference between now and ti in (floating point) days.

id

The post's unique Google+ post ID.

au

The post's author's Google+ user ID.

ve

The action describing the post.

nC

The number of comments the post has attracted so far.

nP

The number of +1s the post has attracted so far.

nR

The number of times the post has been reshared so far.

at

The type of attachment (article, photo, ...) as reported by the API

msg

The post's content.

Value

A 1 row data frame filled with the information from the post parsed.

Examples

1
2
3
4
5
## Not run: 
myPosts <- harvestPage("115046504166916768425", ret="list")
myPosts.df <- ldply(myPosts, parsePost)

## End(Not run)


Search within the plusser package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.