|
In R, loops are often not the most efficient way to do repetitive calculations. Rather than doing the calculations for each value of a variable it is much more efficient to organize the values of…
Copyright
I created all of this content
|
|
The sort() function will sort a vector in R in either ascending or descending order. But a more powerful and flexible technique is to sort data by using the order() function to generate subscripts…
Copyright
I created all of this content
|
|
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…
Copyright
I created all of this content
|
|
In this video we continue to discuss subscripts, this time concentrating on matrices and arrays. Each dimension of these structures may be subscripted to return a sub-matrix or sub-array of the…
Copyright
I created all of this content
|
|
R has a very powerful subscripting system and it is important to learn how to use it effectively. In this video we show several different ways in which vectors may be subscripted to achieve various…
Copyright
I created all of this content
|