Selecting multiple elements with [

Compare:

df[, "z"]
## [1] FALSE  TRUE
df["z"]
##       z
## 1 FALSE
## 2  TRUE

This is just list subsetting, so still a data frame!