grep("Ball",words.array)

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alexandra R. M. de
Almeida
Sent: Thursday, April 27, 2006 4:27 PM
To: R-Group
Subject: [R] Find a word

Dear R users,
 
 I have the following problem: I have an array with pasted words and I woul
like to know the position of the vector that have another especific  word.
 Let make an example:
 This tis the array:
 words.array<-c("RedBall","PinkBall","YellowTable","BlueBall")
 And I would like to know the positions its (words.array) that have the word
"Ball".
 Someone knows how I cand do this!?
 
 Thanks
 Alexandra Almeida
 


  Alexandra R. Mendes de Almeida

                                                 


                
---------------------------------

 Imposto de Renda 2006: o prazo esta acabando. Faga ja a sua declaragco no
site da Receita Federal.
        [[alternative HTML version deleted]]

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to