Skip to main content\(\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 7.5 R Commands Used in This Chapter
-
length() The number of elements in a vector
-
mean() The arithmetic mean or average of a set of values
-
quantile() Calculates cut points based on percents/proportions
-
sample() Chooses elements at random from a vector
-
sd() Calculates standard deviation
-
replicate() Runs an expression/calculation many times
-
sqrt() Calculates square root
-
summary() Summarizes contents of a vector
You have attempted
of
activities on this page.