From maechler at stat.math.ethz.ch  Fri Mar  7 15:35:33 2003
From: maechler at stat.math.ethz.ch (Martin Maechler)
Date: Fri Mar  7 15:35:41 2003
Subject: [Rd] RFC: str(ordered(.))
Message-ID: <15976.44597.910279.820568@gargle.gargle.HOWL>

I'm about to commit the following new feature for R-devel aka "pre-R 1.7.0":

    o	str() now shows ordered factors differently than unordered ones.

The RFC (Request For Comment) is about which string should be
printed.
I was going to use the following

 > str(ordered(4:1))
  Ord.factor w/ 4 levels "1"<"2"<"3"<"4": 4 3 2 1

i.e., use "Ord.factor" where we currently have "Factor".
I found this better than "Ord.fac." or "Ordered"  which would be
closer in length than the current "Factor" {string length *is*
an issue for str()}.

Comments are welcome.

Martin Maechler <maechler@stat.math.ethz.ch>	http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum  LEO C16	Leonhardstr. 27
ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
phone: x-41-1-632-3408		fax: ...-1228			<><


[Rd] RFC: str(ordered(.))
Martin Maechler