From 2ff5d75b4b7c4ee0d927722c080a009b09530973 Mon Sep 17 00:00:00 2001 From: Christina Wei <45274683+christina-wei@users.noreply.github.com> Date: Mon, 20 Mar 2023 15:48:41 -0400 Subject: [PATCH] correcting small typo (#1379) --- base-R.qmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base-R.qmd b/base-R.qmd index 276fde8..d7ec69d 100644 --- a/base-R.qmd +++ b/base-R.qmd @@ -336,7 +336,7 @@ l <- list( ``` The difference between `[` and `[[` is particularly important for lists because `[[` drills down into the list while `[` returns a new, smaller list. -To help you remember the difference, take a look at the an unusual pepper shaker shown in @fig-pepper. +To help you remember the difference, take a look at the unusual pepper shaker shown in @fig-pepper. If this pepper shaker is your list `pepper`, then, `pepper[1]` is a pepper shaker containing a single pepper packet. If we suppose this pepper shaker is a list called `pepper`, then `pepper[1]` is a pepper shaker containing a single pepper packet. `pepper[2]` would look the same, but would contain the second packet.