R/Function 1.R

#' player.by.year
#'
#' This function allows you to view a list of players in Seasons_Stats_NBA dataset
#' for the year you enter as an argument
#'
#' @param year a numerical value ranging from 1950-2017
#' @return players
#' @examples
#' player.by.year()
#' @export


players.by.year <- function(dt,year) {
    dplyr::filter(dt, Year == year)
    dplyr::dt[select(Player)]
}
HelloZitong/Package documentation built on May 8, 2019, 8:06 a.m.