retailer_products: Products for a specific retailer

Description Usage Arguments Value Examples

View source: R/retailer.R

Description

Products for a specific retailer

Usage

1
2
3
4
5
6
7
8
9
retailer_products(
  retailer_id,
  product = NA,
  brand = 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).

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

1
2
3
4
5
6
7
# Get products for a specific retailer.
## Not run: 
retailer_products(1)
retailer_products(9, product = "Nescafe")
retailer_products(9, product = "Nescafe", head = TRUE)

## End(Not run)

trundler documentation built on July 29, 2020, 1:06 a.m.