[R] splitstr problem
Prof Brian D Ripley
ripley at stats.ox.ac.uk
Fri Feb 18 23:17:00 CET 2000
On 18 Feb 2000, Peter Dalgaard BSA wrote:
> Matthew Wiener <mcw at ln.nimh.nih.gov> writes:
>
>
> > unlist(strsplit("a.b.c", "\."))
> > ## [1] "a" "b" "c"
> <doesn't work>
>
> > Is there some way to do what's intended?
>
> More backslashes ("\." is the same as "."):
>
> unlist(strsplit("a.b.c", "\\."))
>
> (and to get that in formatted docs, the source needs to say
>
> unlist(strsplit("a.b.c", "\\\\."))
>
> which it didn't)
(And even if it had it would have come out wrong in latex, at least).
> It's fixed in the snapshots already.
As is the formatting.
--
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 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list