Skip to main content\(\require{cancel}
\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 4.6 Key Takeaways
-
To create data frames in R, use the data.frame command.
-
To merge data in R, you can:
-
Use pivot_longer() to turn wide formatted data into long format
-
Use pivot_wider() to turn long formatted data into wide format
-
Just because the means/averages of two variables are different does not mean that they are statistically different.
-
To check to see if the difference between two means is statistically significant, perform a t.test using the
t.test() command