Dear R Group
Here is what i am trying to do.. but couldnt figure out how..

string<-"ABC DEFG HIJKLM NOPQ RSTUV WXY"
string1<-substr(string,1,4)


I want to create an R object string 2 ( following the logic shown).. R does
not allow string subtraction.. any suggestions how to achieve this?


string2<-string-string1 (it should now hold "DEFG HIJKLM NOPQ RSTUV WXY"

I want to loop this till i reach the end of the original string..

stringn<-"WXY"

Any help would be appreciated.



Regards
Vijayan Padmanabhan

        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to