From c3bdcda987c8cdc61054b2e36eb7251808873a1d Mon Sep 17 00:00:00 2001 From: avahoffman Date: Tue, 9 Jan 2024 10:22:30 -0500 Subject: [PATCH 1/2] Add another page because "the end" was cut off --- modules/Basic_R/Basic_R.Rmd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/Basic_R/Basic_R.Rmd b/modules/Basic_R/Basic_R.Rmd index e335b6bc4..6ae384d7b 100644 --- a/modules/Basic_R/Basic_R.Rmd +++ b/modules/Basic_R/Basic_R.Rmd @@ -411,11 +411,13 @@ y - The repeat `rep()` function helps you create vectors with the `each` and `times` arguments - `sample()` makes random vectors +## Summary + 🏠 [Class Website](https://jhudatascience.org/intro_to_r/) 💻 [Basic R Lab](https://jhudatascience.org/intro_to_r/modules/Basic_R/lab/Basic_R_Lab.Rmd) -```{r, fig.alt="The End", out.width = "50%", echo = FALSE, fig.align='center'} +```{r, fig.alt="The End", out.width = "30%", echo = FALSE, fig.align='center'} knitr::include_graphics(here::here("images/the-end-g23b994289_1280.jpg")) ``` From 26dfc124c20efbf5ecf2a0e695a19c68d31ad086 Mon Sep 17 00:00:00 2001 From: avahoffman Date: Tue, 9 Jan 2024 12:03:50 -0500 Subject: [PATCH 2/2] Change header and summary slightly! --- modules/Data_Input/Data_Input.Rmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/Data_Input/Data_Input.Rmd b/modules/Data_Input/Data_Input.Rmd index 4190e5066..d0a1bb968 100644 --- a/modules/Data_Input/Data_Input.Rmd +++ b/modules/Data_Input/Data_Input.Rmd @@ -433,7 +433,7 @@ read_dta(file = "mtcars.dta") ``` -## Data Input: base R +## `read.csv` is * base R * There are also data importing functions provided in base R (rather than the `readr` package), like `read.delim()` and `read.csv()`. @@ -515,7 +515,7 @@ R Projects are a good way to keep your files organized and reduce headaches Look at your data! -- `glimpse()` gets a quick look at the column structure +- `str()` / `glimpse()` gets a quick look at the column structure - `View()` gives you a preview of the data in a new tab - `head()` shows first few rows - `tail()` shows the last few rows