R/Function 3.R

#' corr
#'
#' This function allows you to access correlation relationships of numerical variables
#' in Seasons_Stats_NBA dataset for the year you enter as an argument
#'
#' @param year a numerical value ranging from 1950-2017
#' @return correlation plot
#' @examples
#' corr()
#' @export
corr <- function(dt, year) {
    dplyr::filter(dt, Year == year)
    purrr::keep(dt, is.numeric)
    corrplot::corrplot(cor(dt))
}
HelloZitong/Package documentation built on May 8, 2019, 8:06 a.m.