Skip to main content
Contents Index
Dark Mode Prev Up Next Scratch ActiveCode Profile
\(\newcommand{\N}{\mathbb N} \newcommand{\Z}{\mathbb Z} \newcommand{\Q}{\mathbb Q} \newcommand{\R}{\mathbb R}
\newcommand{\lt}{<}
\newcommand{\gt}{>}
\newcommand{\amp}{&}
\definecolor{fillinmathshade}{gray}{0.9}
\newcommand{\fillinmath}[1]{\mathchoice{\colorbox{fillinmathshade}{$\displaystyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\textstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptscriptstyle\phantom{\,#1\,}$}}}
\)
Section 5.8 Test Yourself
Checkpoint 5.8.1 .
Checkpoint 5.8.2 .
According to the text, what is a "Factor" in R?
The result of using the `c()` function to combine numbers.
No, that creates a numeric vector.
A special labeling system with "levels" used to organize groups of cases.
Right! The text explains that a Factor is used for labels like "Male" and "Female" and has "levels" representing the different groups.
Another name for a variable or an attribute.
No, a Factor is a specific *type* of variable, not just another name for one.
A data frame that contains only character data.
No, a Factor is a type of vector (column) within a data frame, not the data frame itself.
Create another variable containing information about family members (for example, each family memberβs estimated IQ; you can make up the data). Take that new variable and put it in the existing myFam dataframe. Rerun the
summary()
function on myFam to get descriptive information on your new variable.
You have attempted
of
activities on this page.