Learn R Programming

plusser (version 0.4-0)

parseAttachments: Parsing of post attachments

Description

This function takes a raw list of posts (as retrieved by harvestPage) and extracts any attachments it might find. It uses private (i.e. not exported) parsing functions for some known attachment types. At present, these are articles, albums, photos and videos. Other attachment types will just be cast generically to data.frames. The rownames of all these data frames are the ids of the posts that attachment belongs to. The columns of the returned data frames should be pretty much self-explanatory. If in doubt, check the Google+ API documentation https://developers.google.com/+/api/latest/activities#object.attachments.

Usage

parseAttachments(pl)

Arguments

pl
a posting list as retrieved e.g. by harvestPage.

Value

A list containing one data frame per identified attachment type.

Examples

Run this code
## Not run: 
# myPosts <- harvestPage("115046504166916768425", ret="list")
# myPosts.att <- parseAttachments(myPosts)
# ## End(Not run)

Run the code above in your browser using DataLab