Re: [R] wildcard symbol or character

From: john.polo <jpolo_at_mail.usf.edu>
Date: Wed, 04 Jun 2008 22:46:35 -0400

Jorge Ivan Velez wrote:
>
> Dear John,
>
> Assuming that your information is in the list x, does
>
> substr(x,1,2)
>
> work for you?
>
> HTH,
>
> Jorge
Jorge,
i tried

split(rtt, substr(rtt,1,3))

and that worked also. (i didn't think to nest it when you first suggested it.) i just have to clean up the levels thing. thanks!!

now, i look into regex some...

john



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 Thu 05 Jun 2008 - 03:20:15 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 Thu 05 Jun 2008 - 03:30:37 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