My grep command for
s<-("C","C++","java") grep("C",s)
gives output as [1] [2] while I only require [1] How to do that? ( I have used c\++ to identify c++ separately but matching with C gives [1] and [2] both as the output)
Aucun commentaire:
Enregistrer un commentaire