R/function_1.R

Defines functions function_1

Documented in function_1

#' function_1
#'
#' Your input for this function should be an individual year. Your output should be a data point of interest in the dataset for some player.
#' @param df This is the data frame you want to use.
#' @param year Choose a year you are interested in.
#' @param player Choose a player you are interested in.
#' @export

function_1 = function(df, year, player){
  # choose data point according to input year and player
  df_out = subset(df, Year == year & Player == player)
  return(df_out)
}
hp2500/MDSHW5 documentation built on May 25, 2019, 11:31 p.m.