Hi, I what to solve this problem:>alfab <- "ABCEDFG" #[1] "ABCEDFG" >chara <- strsplit(alfab, "") #[1] "A" "B" "C" "E" "D" >"F" "G"Then I do some changes before I want the character together again, say, remove two letters. Now, "chara" is "A" "B" "E" "D" "G". Is there any opposite function of strspilt()? May anybody help me? Thanks, *Ragnhild" _________________________________________________________________ MSN Foto http://www.msn.no/foto Fest dine digitale minner til papir
Ragnhild S?rum wrote:> Hi, > > I what to solve this problem: > >> alfab <- "ABCEDFG" #[1] "ABCEDFG" >> chara <- strsplit(alfab, "") #[1] "A" "B" "C" "E" >> "D" "F" "G" > > Then I do some changes before I want the character together again, say, > remove two letters. > Now, "chara" is "A" "B" "E" "D" "G". > Is there any opposite function of strspilt()? > > May anybody help me?Yes, the help ?strsplit does! It tells you: "See Also: 'paste' for the reverse". Uwe Ligges> Thanks, > *Ragnhild" > > _________________________________________________________________ > MSN Foto http://www.msn.no/foto Fest dine digitale minner til papir > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help
?paste On Fri, 7 Nov 2003, Ragnhild S?rum wrote:> I what to solve this problem: > > >alfab <- "ABCEDFG" #[1] "ABCEDFG" > >chara <- strsplit(alfab, "") #[1] "A" "B" "C" "E" "D" > >"F" "G" > Then I do some changes before I want the character together again, say, > remove two letters. > Now, "chara" is "A" "B" "E" "D" "G". > Is there any opposite function of strspilt()?-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595