Learn R Programming

plusser (version 0.4-0)

parseProfile: Parse profile

Description

This function takes a raw list of profiles (as retrieved by harvestProfile) and parses the contained information into a one row data frame.

Usage

parseProfile(p)

Arguments

p
a raw profile as retrieved e.g. by harvestProfile.

Value

a one row data frame with a number of fields. See Details.

Details

The following fields will be filled with data (if available) or NA otherwise:
id
The Google+ user ID.

sex
The user's gender: male, female, or other.
ln
The user's last name.
fn
The user's first name.

verified
Logical. TRUE if it is a verified Google+ profile.
website
A URL listed in the profile.
ageMin, ageMax
Google+ provides only age ranges for some profiles. This will contain the lower and upper bound of the age range of the user.
bday
The birthday of the user (YYYY-MM-DD).
nCircled
The number of Persons the user circled by.

currentLoc
The user's current location.

lang
The primary language the user reported.

p1count
The number of +1s the user awarded.

relationship
The user's relationship status.

bio
The `About Me' short autobiography.

tagline
The tagline of a profile.

type
The type of a profile: person or page.
brag
The `bragging rights' section of the profile.
occ
The person's occupation.
skills
The person's skills.

See Also

Google+ API documentation: https://developers.google.com/+/api/latest/people/get

Examples

Run this code
## Not run: 
# gProfile <- parseProfile(harvestProfile("+google", parseFun=NULL))
# ## End(Not run)

Run the code above in your browser using DataLab