correcting small typo (#1379)
This commit is contained in:
parent
044e8a6295
commit
2ff5d75b4b
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue