Chapter 7
Working in More Dimensions
In This Chapter
Creating matrices
Getting values in and out of a matrix
Using row and column names in a matrix
Performing matrix calculations
Working with multidimensional arrays
Putting your data in a data frame
Getting data in and out of a data frame
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.