[R] opposite function of strsplit() ?
Prof Brian Ripley
ripley at stats.ox.ac.uk
Fri Nov 7 09:10:07 CET 2003
?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
More information about the R-help
mailing list