So far we have only seen the command line interface (CLI) in R. Remember though R is a programming language, and R provides all the programming constructs we might know and love from other programming languages.
These help topics will provide a quick introduction to the programming constructs available to us.
?Syntax
?Paren
?Control
?function
We should note
-
R is case-sensitive
-
R uses
1as its starting index not0. So the first element will be[1].
Additional Resources
-
Chapter 4 of these lecture notes does a great job covering the basics of R programming.
-
The "Functions" section of Advanced R gives a very thorough understanding of using functions in R.
-
R Language for Programmers covers many of the idiosyncrasies of R programming.
Comments for Programming in R