switch_names: Change Names for Presentation

Description Usage Arguments Value Examples

Description

Changes the names of certain statistics to make them look nicer for presentation

Usage

1
2
switch_names(dat, names_to_switch = c("X1B", "X2B", "X3B", "ML.Org",
  "DL.Days", "PA.G", "IP.G", "K.perc", "BB.perc", "K.9", "BB.9", "HR.9"))

Arguments

dat

data.frame

names_to_switch

Value

data.frame with names changed for display

Examples

1
2
x <- read.csv("N:/Apps/simScoresApp/data/6-for-apps/batters/bat-raw.csv", header = T, stringsAsFactors = F) %>% tbl_df()
x1 <- switch_names(x)

guytuori/simScores documentation built on May 17, 2019, 9:29 a.m.