Skip to content
Prev 278 / 885 Next

pros/cons of teaching attach()

This thread is interesting. For those who use the
subset command, when you extract a variable from a
data frame, do you give it the same name as in the data set?

For instance,

my.data with variables trout, whale

trout <- subset(my.data, select=trout, drop=T)

I guess if you never attach, then you don't have to
worry about masking in the future.

Thanks

-Laura
On 9/21/2010 11:34 PM, Joshua Wiley wrote: