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 matrices and perform matrix calculations. Many datasets contain values of different types for ...
Get R For Dummies, 2nd Edition 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.