- Original Message -
From: R_Antony
To: r-help@r-project.org
Cc:
Sent: Thursday, June 13, 2013 3:08 AM
Subject: [R] Search for Matching word in a Dataframe
Hi
Here i have a dataframe called MyDat.
MyDat<- data.frame(NAME = c("ANTONY001", "ARUN002", "AKBAR003",
Hello,
?grep
> grep('ARUN', MyDat$NAME)
[1] 2
Regards,
Pascal
On 13/06/13 16:08, R_Antony wrote:
Hi
Here i have a dataframe called MyDat.
MyDat<- data.frame(NAME = c("ANTONY001", "ARUN002", "AKBAR003",
"JONATHAN004", "PETER005", "AVATAR006", "YULIJIE007", "RAM008",
"DESILVA009"),
COL_A =
Hi
Here i have a dataframe called MyDat.
MyDat<- data.frame(NAME = c("ANTONY001", "ARUN002", "AKBAR003",
"JONATHAN004", "PETER005", "AVATAR006", "YULIJIE007", "RAM008",
"DESILVA009"),
COL_A = c(0, 0, 0, 1, 0, 1, 2, 3, 1),
COL_B = c(0, 3, 0, 3, 3, 1, 0, 1, 2),
COL_C = c(1, 2, 3, 1, 2, 3, 1, 2
3 matches
Mail list logo