title: “STAT310 Sample Rsd file” author: “Da’Shawn M. Morris” date: Week 1: Introduction
Install a package, said “mdsr”, type in R Console: install.packages(“mdsr”)
%>%: You can use the %>% pipeline operator with standard R functions - and even your own functions - too. The rules are simple: the object on the left hand side is passed as the first argument to the function on the right hand side. For example:
* my.data %>% my.function is the same as my.function(my.data)
* my.data %>% my.function(arg=value) is the same as my.function(my.data, arg=value)