From Kurt.Hornik@ci.tuwien.ac.at  Wed May 28 12:35:41 1997
From: Kurt.Hornik@ci.tuwien.ac.at (Kurt Hornik)
Date: Wed, 28 May 1997 13:35:41 +0200
Subject: R-alpha: cat
In-Reply-To: <199705252055.IAA28592@stat13.stat.auckland.ac.nz>
References: <199705252055.IAA28592@stat13.stat.auckland.ac.nz>
Message-ID: <199705281135.NAA18116@aragorn.ci.tuwien.ac.at>

>>>>> Robert Gentleman writes:

> Kurt,
>   here's what S does (I recall going to some effort to duplicate the,
> at times, seemingly unusual behaviour of cat)
> S-PLUS : Copyright (c) 1988, 1996 MathSoft, Inc.
> S : Copyright AT&T.
> Version 3.4 Release 1 for Sun SPARC, SunOS 4.1.3_U1 : 1996 
> Working data will be in /users/rdev/rgentlem/.Data 
>> x <- factor(c(1:3, NA), exclude=numeric(0))
>> x
> [1] 1  2  3  NA
>> levels(x)
> [1] "1"  "2"  "3"  "NA"
>> cat(x, sep = "&")
> 1&2&3&4> cat(x, sep = "&\n")
> 1&
> 2&
> 3&
> 4
>> 

> so, the behaviour of cat is the same (whether it's correct or not
> .....)

Yes, I noticed that too.  Perhaps R could add an argument which toggles
this behavior?  (Or is there an easy other way to get what I want?)

Thanks,
-k
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel 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-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


R-alpha: cat
Kurt Hornik