Hello, I have files from an equipment with column names including dots.I would like to simplify these names but all my attempts with sub and regular expressions are unsuccessful. I havec( "colone..xx.","coltwo.ft..rr.","colthree.gh..az.","colfour.DG..lm.")and I would like to have c( "colone","coltwo.ft","colthree.gh","colfour.DG")
that means to delete everything after the two dots but to keep strings after intermediate dot like in colfour.DG Thanks in advance for your help (a working solution would be good, explainations with the working solution would be ideal).Nice day,Ptit Bleu. [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.