infoFromProfileClean: Get account-level information from profile scrapes for some...

Description Usage Arguments Details Value Examples

Description

Profile scrapes data needs to contain the following variables:

Usage

1
2
infoFromProfileClean(profileClean, userHashesOfInterest, startDate,
  endDate)

Arguments

profileClean

dataframe as described above

userHashesOfInterest

vendor_hashes for accounts that have feedback in timeframe of interest; can be generated by 'infoFromFeedback()'

startDate

string for start of time frame of interest, e.g. "2014-01-10"

endDate

string for end of time frame of interest (exclusive), e.g. "2014-01-15" means up to 1/14

Details

We first consider all scrapes within the start and end dates specified. If there are no scrapes available, we look at equal time periods before and after the dates of interest. For example, if we are interested in August 2014, and no scrapes are available then, we consider all scrapes in July-September 2014.

Account-level variables returned are:

Value

list containing 1. dataframe with vendor_hash and numProfileTokens, 2. 'profileTokens' list

Examples

1
2
3
4
5
## Not run: 
    profileCleanOut <- infoFromProfileClean(profileClean, out$vendorHashes,
    "2014-08-01", "2014-08-31")

## End(Not run)

xhtai/heisenbrgr documentation built on June 8, 2019, 9:30 a.m.