[R] wildcard symbol or character
jpolo at mail.usf.edu
Tue Jun 3 19:17:01 CEST 2008
Michael Dewey wrote:
>> split() where the f variable =
>> but * doesn't work as a wildcard as i had hoped. can someone tell me
>> the appropriate wildcard character/symbol to use, please
> Did you really use split()?
yes, i did. the output looked like this:
 CW-W739 CW-W729 CW-W719 CW-W709 CW-W699 CW-W689B CW-W679
 CW-W738 CW-W728 CW-W718 CW-W708 CW-W698 CW-W688 CW-W678 CW-W668
> I suspect that
> might help you and you can follow the link to regular expressions or do
> for enlightenment on the wonders of regular expressions.
> As another poster has mentioned you can of course use substr() in this
> case but regular expressions enable you to do far more.
i haven't tried any of other solution suggested in other posts yet.
thanks for your reply.
More information about the R-help