grep("Ball",words.array)
-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] 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]]