Introduction
You will learn how to use indices to access data in R objects.
Before you start: vectors, tables, matrices and lists.
Setup: No data files are needed. Run each object definition before its indexing examples.
Your check: Choose an index by position, name or condition. Practise in the unit summary.
In the previous unit, you got an idea of how to address some elements of an object. Let’s take a closer look now. At the end of this unit you should know how to
- find
- address and
- change
specific data in vectors, lists, matrices and data.frames.
Comments?
You can leave comments below if you have questions or remarks about any of the text or code in this unit. Please copy the corresponding line into your comment to make it easier to answer your question.