Learn R Programming

impectR (version 2.5.3)

getStartingPositions: Return a dataframe that contains all starting positions for a set of given match IDs

Description

Return a dataframe that contains all starting positions for a set of given match IDs

Usage

getStartingPositions(matches, token, host = "https://api.impect.com")

Value

a dataframe containing all starting positions for a set of given match IDs

Arguments

matches

'IMPECT' match ID or a list of match IDs

token

bearer token

host

host environment

Examples

Run this code
# Toy example: this will error quickly (no API token)
try(starting_pos <- getStartingPositions(
  matches = c(0, 1),
  token = "invalid"
))

# Real usage: requires valid Bearer Token from `getAccessToken()`
if (FALSE) {
starting_pos <- getStartingPositions(
  matches = c(84248, 158150),
  token = "yourToken"
)
}

Run the code above in your browser using DataLab