Re: [R] looking for a string

From: [Ricardo Rodriguez] Your XEN ICT Team <webmaster_at_xen.net>
Date: Tue, 15 Apr 2008 23:48:12 +0200

Thanks all,

markleeds_at_verizon.net wrote:
>> From: "[Ricardo Rodriguez] Your XEN ICT Team" <webmaster_at_xen.net>
>> Date: 2008/04/14 Mon PM 07:43:23 CDT
>> To: Henrique Dallazuanna <wwwhsd_at_gmail.com>, r-help_at_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_at_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.
Received on Tue 15 Apr 2008 - 21:50:28 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 15 Apr 2008 - 22:30:28 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive