decode_ids: Decode NFL GSIS player IDs

Description Usage Arguments Value Examples

View source: R/decode_ids.R

Description

This function is a wrapper around the high efficient c++ function for fast decoding of NFL GSIS player ids intended to be used within the R package nflfastR.

Usage

1
decode_ids(player_ids)

Arguments

player_ids

A character vector of encoded (or decoded) GSIS player IDs in NFL play-by-play data sets loaded with fast_scraper or nflfastR::build_nflfastR_pbp.

Value

Decoded GSIS player IDs

Examples

1
2
3
4
5
6
7
8
9
# Decode IDs including already decoded ids and NA

decode_ids(c(
  "32013030-2d30-3033-3338-3733fa30c4fa",
  NA_character_,
  "00-0033873",
  NA_character_,
  "32013030-2d30-3032-3739-3434d4d3846d"
))

gsisdecoder documentation built on Oct. 23, 2020, 5:51 p.m.