Calling Functions: Arguments

  • TAB to show possible completions of function & arguments.
    • Use ESC to abort the suggestions.
  • Can usually skip arg names, but can make code more readable.
  • Order of named args isn’t important
  • If you skip names remember the order of the defined function.
# All of these are equivalent
seq(from = 1,  to = 10)
seq(to = 10,  from = 1)
seq(1, 10)
#> [1]  1  2  3  4  5  6  7  8  9 10