Fix drop example
This commit is contained in:
parent
331586da6f
commit
5e080711ba
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue