Fix drop example

This commit is contained in:
Hadley Wickham 2022-11-04 11:43:44 -05:00
parent 331586da6f
commit 5e080711ba
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ df2[, "x"]
One way to avoid this ambiguity with `data.frame`s is to explicitly specify `drop = FALSE`:
```{r}
df1["x", , drop = FALSE]
df1[, "x", drop = FALSE]
```
### dplyr equivalents