search for: emily2

Displaying 1 result from an estimated 1 matches for "emily2".

Did you mean: emily
2013 Jan 27
1
Removing values containing a specific character
...ote: > Hi, > Try this: > df[]<-lapply(df,as.character) > df2<-df > df[,1][grep("@",df$names)]<- "" > df > #names emails > #1 bob bobj@cup.com > #2 joe joesmith@gmail.com > #3 craig@gmail.com > #4 emily emily2@yahoo.com > #5 jane@yahoo.com > > #2nd part: > > df2[-grep("@",df2$names),] > names emails > #1 bob bobj@cup.com > #2 joe joesmith@gmail.com > #4 emily emily2@yahoo.com > A.K. > > ------------------------------ >...