From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>

Date: Wed 29 Jun 2005 - 16:46:27 EST

Date: Wed 29 Jun 2005 - 16:46:27 EST

On Wed, 29 Jun 2005, David Duffy wrote:

> I couldn't resist adding a more literal answer

For example, \s is mapped to s, and there is no difference between \s and s in the parsed input.

*>
*

> unback <- function(x) {

*> chars <- unlist(strsplit(deparse(x),""))
**> chars <- chars[-c(1,length(chars))]
**> paste(gsub("\\\\","/",chars),collapse="")
**> }
**>
**> unback("\n")
*

*> unback("\s")
*

[1] "s"

We can do that in R too. Here are two variants I have not seen in the thread

R --slave --vanilla < test1.R

D:\spencerg\dataPOWER\stats\Tukey\Boxplot_missing_Tukey2.txt

(This one does not allow quoted strings.)

R --slave --vanilla < test2.R

D:\spencerg\dataPOWER\stats\Tukey\Boxplot_missing_Tukey2.txt

(This one allows surrounding quotes or not.)

-- Brian D. Ripley, ripley@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 ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.htmlReceived on Wed Jun 29 17:51:17 2005

*
This archive was generated by hypermail 2.1.8
: Fri 03 Mar 2006 - 03:33:06 EST
*