parseProfile: Parse profile

Description Usage Arguments Details Value See Also Examples

View source: R/parse.R

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

1

Arguments

p

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

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.

Value

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

See Also

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

Examples

1
2
3
4
## Not run: 
gProfile <- parseProfile(harvestProfile("+google", parseFun=NULL))

## End(Not run)

plusser documentation built on May 2, 2019, 8:17 a.m.