[R] Searching from Dataframe.

Rantony antony.akkara at ge.com
Tue Sep 11 09:11:28 CEST 2012


Hi,
i have a dataframe containing some values.
for eg:-

MyDataFrame<-
Name   Age   Place
-------    ------    -----------
Aby          12        USA
Raj            25        UK
Romi        32        ENG
Amy         31        IND

My requirement what is, i have a search key word[it should search from all
the columns], that i need to find out from this dataframe. If search keyword
found , it should return that particular row and column number.

For eg:- My search keyword is "ENG".
After searching, it should return particular row & column number. Here it is
" MyDataFrame[3,3] "

Can anyone help me please ?

- Antony.



--
View this message in context: http://r.789695.n4.nabble.com/Searching-from-Dataframe-tp4642722.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list