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 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.