Skip to content
Prev 53286 / 63424 Next

"table(droplevels(aq)$Month)" in manual page of droplevels

Hello,

Inline.

Em 12-04-2017 16:40, Henric Winell escreveu:
But note that droplevels(aq)["Month"] and droplevels(aq)$Month are _not_ 
the same. The first returns a data.frame (with just one vector), the 
latter returns a vector. To return just a vector you could also use

droplevels(aq)[["Month"]]

which is preferable for programming, by the way. The '$' operator should 
be reserved for interactive use only.

Hope this helps,

Rui Barradas