searchEndpoints: Search for endpoints that can be passed to 'getGenericData'

Description Usage Arguments Value Examples

Description

This function lets you search for available endpoints. Use getEndpointParams to get the required parameters for a specified endpoint. Once you have an endpoint and a parameter list, a call can be made to getGenericData.

Usage

1

Arguments

pattern,

regex pattern to search for (see regex)

Value

A character vector containing all available and matching endpoints.

Examples

1
2
3
4
5
all.endpoints <- searchEndpoints()
head(all.endpoints)
######
player.endpoints <- searchEndpoints("player")
head(player.endpoints)

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