drewlee 比如 <br /> x=c("aabbcc")<br /> y=c("bb")<br /> <br /> #想要让match以后返回值为TRUE,如何办呢?下面两个语句不行。<br /> charmath(y,x)<br /> match(y,x)<br />
drewlee [quote]引用第1楼sociology于2006-12-14 10:22发表的“”: > x=c("aabbcc") > y=c("bb") > grep(y,x)==1 [1] TRUE >[/quote] Thanks so much!