retailer_products: Products for a specific retailer

View source: R/retailer.R

retailer_productsR Documentation

Products for a specific retailer

Description

Products for a specific retailer

Usage

retailer_products(
  retailer_id,
  product = NA,
  brand = NA,
  sku = NA,
  regex = TRUE,
  ignore_case = TRUE,
  head = FALSE,
  ...
)

Arguments

retailer_id

A retailer ID.

product

Filter by product name (treated as a regular expression).

brand

Filter by product brand (treated as a regular expression).

sku

Filter by SKU.

regex

Should filter be treated as a Regular Expression?

ignore_case

Should case be ignore?

head

Return the data (FALSE) or the number of records (TRUE)?

...

Arguments passed through to paginate().

Value

Product details as a data.frame if head is FALSE, otherwise the number of products that would be returned.

Examples

# Get products for a specific retailer.
## Not run: 
retailer_products(1)
retailer_products(118, product = "coffee")
retailer_products(118, brand = "Illy")
retailer_products(118, product = "coffee", brand = "Illy", head = TRUE)
retailer_products(118, sku = "086079")

## End(Not run)

datawookie/trundler documentation built on Dec. 31, 2022, 6:20 p.m.