Advertisement

Advanced R pp 43-60 | Cite as

Writing Functions

  • Matt Wiley
  • Joshua F. Wiley
Chapter

Abstract

Writing your own functions in R enables you to combine a set of R commands into a function that is easy to call and can be generalized. Functions are foundational to R. To become a more advanced user or developer of R, a good understanding of what functions are and how to write them is crucial. Broadly speaking, a function takes one or more inputs and processes them to produce and return output.

Keywords

Function Function Global Environment Function Call Error Message Search Path 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Matt Wiley and Joshua F. Wiley 2016

Authors and Affiliations

  • Matt Wiley
    • 1
  • Joshua F. Wiley
    • 1
  1. 1.Elkhart Group Ltd. & Victoria CollegeColumbia CityUSA

Personalised recommendations