Hi, ignore my e-mail, a just use tolower function.
thanks and sorry Ronaldo Em 11-02-2011 11:24, Ronaldo Reis Junior escreveu: > Hi, > > I have two tables and I need to merge both. I use the merge command, > but in this way the name must be exactly. How I can make to compare > independently of upper or lower-case? > > Look: > > data1<-data.frame(journal=c("Ecology","Environmental > Entomology","Neotropical Biology And Conservation")) > > data2<-data.frame(journal=c("Ecology","Environmental > Entomology","Neotropical Biology and > Conservation","Sociobiology"),qualis=c("A1","A2","B1","B5")) > > merge(data1,data2) > > > merge(data1,data2) > journal qualis > 1 Ecology A1 > 2 Environmental Entomology A2 > > the expected result is: > > journal qualis > 1 Ecology A1 > 2 Environmental Entomology A2 > 3 Neotropical Biology And Conservation B1 > > Look that result is wrong because the "And" and "and" in the name > "Neotropical Biology And Conservation" > > how to fix it automatically? Has any function to make all names > lowercase or any other mean to make this to work. > > Thanks > Ronaldo > -- > 16ª lei - Lembre-se, é a sua dissertação. Você (!) é quem precisa fazê-la. > > --Herman, I. P. 2007. Following the law. NATURE, Vol 445, p. 228. > > > Prof. Ronaldo Reis Júnior > | .''`. UNIMONTES/DBG/Lab. Ecologia Comportamental e Computacional > | : :' : Campus Universitário Prof. Darcy Ribeiro, Vila Mauricéia > | `. `'` CP: 126, CEP: 39401-089, Montes Claros - MG - Brasil > | `- Fone: (38) 3229-8192 |ronaldo.r...@unimontes.br > |http://www.ppgcb.unimontes.br/lecc | LinuxUser#: 205366 > -- 1ª lei - Suas férias começam após a defesa e entrega de sua dissertação. --Herman, I. P. 2007. Following the law. NATURE, Vol 445, p. 228. > Prof. Ronaldo Reis Júnior | .''`. UNIMONTES/DBG/Lab. Ecologia Comportamental e Computacional | : :' : Campus Universitário Prof. Darcy Ribeiro, Vila Mauricéia | `. `'` CP: 126, CEP: 39401-089, Montes Claros - MG - Brasil | `- Fone: (38) 3229-8192 | ronaldo.r...@unimontes.br | http://www.ppgcb.unimontes.br/lecc | LinuxUser#: 205366 [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.