It's hard to overstate the importance of functions in the R language. Pretty much everything you do in R involves calling a function. From creating objects, to doing calculations, to creating plots and fitting statistical models, everything is done by calling a function. In fact, the first R command you probably ever ran: