How To Create A Function In Rstudio