Description Usage Arguments Details Value Examples
Items data refers to data on unique items listed. Items needs to contain the following variables:
'hash_str': this is a unique identifier for each item listing
'marketplace': marketplace that the item was listed on
'title': title of item listing
'vendor': vendor account ID that listed the item
'vendor_hash': unique identifier for vendor, corresponds to 'hash_str' in 'users' and feedback
'prediction': category predicted for item listing, see Soska and Christin (2015)
'dosage': dosage extracted from item title
'unit': units extracted from item title
1 | infoFromItems(items, itemHashesOfInterest, userHashesOfInterest)
|
items |
dataframe as described above |
itemHashesOfInterest |
item_hashes for items that have feedback in timeframe of interest; can be generated by 'infoFromFeedback()' |
userHashesOfInterest |
vendor_hashes for accounts that have feedback in timeframe of interest; can be generated by 'infoFromFeedback()' |
Account-level variables returned are:
'vendor_hash': unique identifier for seller account
'numTitleTokens': number of unique tokens from item titles
'titleTokens': list item
'inventory': list item
list containing 1. dataframe with vendor_hash and numTitleTokens, 2. 'titleTokens' list, 3. 'inventory' list
1 2 3 4 | ## Not run:
itemsOut <- infoFromItems(items, out$itemHashes, out$vendorHashes)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.