Thanks all, [EMAIL PROTECTED] wrote: >> From: "[Ricardo Rodriguez] Your XEN ICT Team" <[EMAIL PROTECTED]> >> Date: 2008/04/14 Mon PM 07:43:23 CDT >> To: Henrique Dallazuanna <[EMAIL PROTECTED]>, r-help@r-project.org >> Subject: Re: [R] looking for a string >> > > henrique means to use his command directly and > forget about subset. subset probably doesn't > let you do what you want to do. > > Mark, I've finally found an example that helps me to understand what Henrique said. Here it is:
## sometimes requiring a logical 'subset' argument is a nuisance nm <- rownames(state.x77) start_with_M <- nm %in% grep("^M", nm, value=TRUE) subset(state.x77, start_with_M, Illiteracy:Murder) Coming from http://wiki.r-project.org/rwiki/doku.php?id=rdoc:base:subset What I am not able to understand yet is Charles's proposal. Any insight will be welcome! Cheers, Ricardo -- Ricardo RodrÃguez Your XEN ICT Team ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.