R/readplayers.R

Defines functions readplayers

Documented in readplayers

#' Turn text file into list
#'
#' @param path Path to text file
#' @return List of player names
#' @export
#' @examples
#' team1 <- readplayers("./team.txt")

readplayers <- function(path) {

  playerlist <- read.table(path)
  playerlist <- as.list(levels(playerlist$V1))

  return(playerlist)

}
cr0-git/SCteamstats documentation built on Dec. 19, 2021, 6:08 p.m.