Chapter 7

Working in More Dimensions

In This Chapter

arrow Creating matrices

arrow Getting values in and out of a matrix

arrow Using row and column names in a matrix

arrow Performing matrix calculations

arrow Working with multidimensional arrays

arrow Putting your data in a data frame

arrow Getting data in and out of a data frame

arrow Working with lists

In the previous chapters, you worked with one-dimensional vectors. The data could be represented by a single row or column in a Microsoft Excel spreadsheet. But often you need more than one dimension. Many calculations in statistics are based on matrices, so you need to be able to represent them and perform matrix calculations. Many datasets contain values of different types for multiple ...

Get R For Dummies, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.