In this video we introduce functions in R and how to write them. We begin with functions of a single argument, using a truncation function as an example. Then we proceed to illustrate how to return…
In this video we continue to discuss subscripts, this time concentrating on lists. Lists have elements that may be of different modes and classes. E.g., a list may contain three elements: a character…
We continue to discuss data structures in R, this time focusing on lists. Unlike vectors, matrices and arrays, the elements of a list may be of different modes. This makes them very flexible and…