Search for tag: "subscripts"

Vectorized Computations.mp4

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…

From  Daniel Hall 65 plays 0  

Sorting in R.mp4

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…

From  Daniel Hall 247 plays 0  

Subscripts - Part 3 (Lists).mp4

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…

From  Daniel Hall 68 plays 0  

Subscripts - Part 2 (Matrices & Arrays).mp4

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…

From  Daniel Hall 168 plays 0  

Subscripts - Part 1 (Vectors).mp4

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…

From  Daniel Hall 83 plays 0