Skip to content
Prev 300422 / 398503 Next

subsetting without losing the attributes

Hello,

Another quote from the help pages that could be usefull is, from ?subset,

Warning

This is a convenience function intended for use interactively. For 
programming it is better to use the standard subsetting functions like 
[, and in particular the non-standard evaluation of argument subset can 
have unanticipated consequences.


So if the op wants a behavior that can be seen with `[`, use the 
recommended extractor function.

Hope this helps,

Rui Barradas

Em 18-07-2012 01:03, Peter Ehlers escreveu: