memGetGenericData: Memoised version of getGenericData

Description Usage Arguments Value

Description

This function behaves exactly the same as getGenericData except that it is memoised. This prevents the code from making the same HTTP request multiple times. If you are careful about not making the same call twice in your code, there is no reason to use this function.

Usage

1
memGetGenericData(endpoint, params = list())

Arguments

endpoint,

endpoint to retrieve as a character vector

params,

list of parameters

Value

A data frame or a list of data frames (if the endpoint returns multiple datasets) containing the requested data.


llefebure/nba-stats documentation built on May 21, 2019, 7:34 a.m.