[R] strange (to me) ncolumns default value in 'write'

From: Antonio, Fabio Di Narzo <antonio.fabio_at_gmail.com>
Date: Mon 05 Jun 2006 - 02:42:35 EST

Hi all.
In 'write' documentation, one can read:

write(x, file = "data",

      ncolumns = if(is.character(x)) 1 else 5,
      append = FALSE, sep = " ")

Now my question is: why the default value of 1column for character vectors and the special value '5' for non character vectors?

Nice sunday to all,
Antonio, Fabio Di Narzo.

Note: this is just curiosity. Don't read as: "WHY? WHY!?!?", but just as "why?"

        [[alternative HTML version deleted]]

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.html Received on Mon Jun 05 02:47:08 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 05 Jun 2006 - 22:10:28 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.