R/Label.R

Defines functions Label

Documented in Label

## function for accessing variable labels
#' @export
Label <- function(var, labels=rbind(Lahman::battingLabels, Lahman::pitchingLabels, Lahman::fieldingLabels)) {
	wanted <- which(labels[,1]==var)
	if (length(wanted)) labels[wanted[1],2] else var
}

Try the Lahman package in your browser

Any scripts or data that you put into this service are public.

Lahman documentation built on Sept. 27, 2024, 1:06 a.m.