Skip to content

Commit

Permalink
Merge pull request #471 from jhudsl/most-negligible-of-updates
Browse files Browse the repository at this point in the history
Tiny updates to Basic R / Input
  • Loading branch information
avahoffman authored Jan 9, 2024
2 parents 7c69221 + 26dfc12 commit 2572a09
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion modules/Basic_R/Basic_R.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
```

Expand Down
4 changes: 2 additions & 2 deletions modules/Data_Input/Data_Input.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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()`.

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2572a09

Please sign in to comment.