-
Book Overview & Buying
-
Table Of Contents
Machine Learning For Dummies
By :
Data frames are tabular structures. In other words, they’re akin to a matrix or a two-dimensional array in that they have rows and columns. However, data frames work more like a database. Each column represents a variable and each row a record. For example, when describing a person, you might include name and height. The names and heights represent two columns — two variables used to describe a person. A combination of an individual name and height is a row — a single record within the data frame. The following sections discuss data frames in more detail.
Understanding factors
A factor is a special structure that enable you to categorize data. You can create them using either numbers (with or without a decimal point) or strings. What makes factors special is that you see unique values only after creating a factor. Each of these values is a level. To create a factor, you use the factor() function. For example, calling MyFactor <- factor(c...
Change the font size
Change margin width
Change background colour