decode_ids {gsisdecoder}R Documentation

Decode NFL GSIS player IDs

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

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


# 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"
))


[Package gsisdecoder version 0.0.1 Index]