[R] opposite function of strsplit() ?

Uwe Ligges ligges at statistik.uni-dortmund.de
Fri Nov 7 09:05:43 CET 2003


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




More information about the R-help mailing list