Re: [R] position of a string in a data frame

2014-04-30 Thread Jim Lemon
ssage- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of carol white Sent: 30. april 2014 13:42 To: r-h...@stat.math.ethz.ch Subject: [R] position of a string in a data frame Hi, It might be a primitive question but how to find the position of a string in a data f

Re: [R] position of a string in a data frame

2014-04-30 Thread Duncan Murdoch
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of carol white Sent: 30. april 2014 13:42 To: r-h...@stat.math.ethz.ch Subject: [R] position of a string in a data frame Hi, It might be a primitive question but how to find the position of a string in a data frame? Suppose

Re: [R] position of a string in a data frame

2014-04-30 Thread Frede Aakmann Tøgersen
Please refer to www.vestas.com/legal/notice If you have received this e-mail in error please contact the sender. > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of carol white > Sent: 30. april 2014 13:42 > To: r-

[R] position of a string in a data frame

2014-04-30 Thread carol white
Hi, It might be a primitive question but how to find the position of a string in a data frame? Suppose I search the word "sum" (case insensitive) in a data frame and it is in the 7th row, 3rd column, how to retrieve the indices 7, 3? I tried to use grep with tapply but it doesn't work. Many tha