Skip to content

Commit

Permalink
Merged origin/main into main
Browse files Browse the repository at this point in the history
  • Loading branch information
lwjohnst86 committed Jan 24, 2024
2 parents 1fbd856 + c6b98ff commit ab55247
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion _variables.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
keybind:
palette: '{{< kbd linux=Ctrl-Shift-P mac=Cmd-Shift-P win=Ctrl-Shift-P >}}'
git: '{{< kbd linux=Ctrl-Alt-M mac=Cmd-Option-M win=Ctrl-Alt-M >}} or with the Palette ({{< var keybind.palette >}}, then type "commit")'
git: '{{< kbd linux=Ctrl-Alt-M mac=Ctrl-Option-M win=Ctrl-Alt-M >}} or with the Palette ({{< var keybind.palette >}}, then type "commit")'
chunk: '{{< kbd linux=Ctrl-Alt-I mac=Cmd-Option-I win=Ctrl-Alt-I >}} or with the Palette ({{< var keybind.palette >}}, then type "new chunk")'
restart-r: '{{< kbd linux=Ctrl-Shift-F10 mac=Cmd-Shift-F10 win=Ctrl-Shift-F10 >}} or with the Palette ({{< var keybind.palette >}}, then type "restart")'
source: '{{< kbd linux=Ctrl-Shift-S mac=Cmd-Shift-S win=Ctrl-Shift-S >}} or with the Palette ({{< var keybind.palette >}}, then type "source")'
Expand Down
12 changes: 6 additions & 6 deletions sessions/data-management.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,9 @@ that is included in a package, in this case `{NHANES}`. We will cover
how to load a dataset from a file at the end of this session.

Then, below the `library()`, let's take a `glimpse()` at the NHANES
dataset. Run this function by hitting `Alt-Enter` while the cursor is on
the code to send it from the script to the R Console.
dataset. Run this function by hitting {{< var keybind.run-code >}}
while the cursor is on the code to send it from the script to the R
Console.

```{r glimpse-nhanes}
#| filename: "R/learning.R"
Expand Down Expand Up @@ -248,9 +249,7 @@ select(NHANES, -HeadCirc)

If some of your columns have similar patterns for naming at the
beginning, middle, or end of the name, you can use some helper functions
to choose these columns. Use `?select_helpers` (choose the "Select
helpers" option in the menu that pops up) to read more about these
functions and to get help on them. Some commonly used helpers are:
to choose these columns. Some commonly used helpers are:

- `starts_with()`: Select columns that begin with a pattern.
- `ends_with()`: Select columns that end with a pattern.
Expand All @@ -269,7 +268,8 @@ select(NHANES, contains("Age"))
```

For more information on using the pattern functions such as
`starts_with()`, check out `?select_helpers`.
`starts_with()`, check out `?select_helpers` (choose the "Select
helpers" option in the menu that pops up).

You'll notice that running these functions doesn't actually change the
data itself. When you run a function without assigning it using `<-`,
Expand Down

0 comments on commit ab55247

Please sign in to comment.