Revision: 1174
http://r-gregmisc.svn.sourceforge.net/r-gregmisc/?rev=1174&view=rev
Author: warnes
Date: 2007-09-12 15:24:11 -0700 (Wed, 12 Sep 2007)
Log Message:
-----------
Remove units from manual page
Modified Paths:
--------------
trunk/SASxport/man/units.Rd
Modified: trunk/SASxport/man/units.Rd
===================================================================
--- trunk/SASxport/man/units.Rd 2007-09-11 23:08:12 UTC (rev 1173)
+++ trunk/SASxport/man/units.Rd 2007-09-12 22:24:11 UTC (rev 1174)
@@ -1,10 +1,5 @@
-\name{units}
+\name{label}
-\alias{units}
-\alias{units.default}
-\alias{units<-}
-\alias{units<-.default}
-
\alias{label}
\alias{label.default}
\alias{label<-}
@@ -22,19 +17,16 @@
\title{
-Set or Retreive the 'label', 'format', 'iformat', or 'units' Attribute of a Vector
+Set or Retreive the 'label', 'format', or 'iformat' Attribute of a Vector
}
\description{
- Sets or retrieves the \code{"label"}, \code{"format"},
- \code{"iformat"}, or \code{"units"} attribute of an object.
+ Sets or retrieves the \code{"label"}, \code{"format"}, or
+ \code{"iformat"} attribute of an object.
- More comprehensive support for object labels, formats, and units are
+ More comprehensive support for object labels, and formats, are
available in Frank Harrell's \code{Hmisc} package.
}
\usage{
-units(x, default)
-units(x) <- value
-
label(x, default)
label(x) <- value
@@ -47,15 +39,15 @@
}
\arguments{
\item{x}{any object}
-\item{value}{new value for the \code{"label"}, \code{"format"},
- \code{"iformat"}, or \code{"units"} attribute of an object.}
+\item{value}{new value for the \code{"label"}, \code{"format"}, or
+ \code{"iformat"} attribute of an object.}
\item{default}{value to return when no appropriate attribute is
found. The usual return value is NULL.}
}
\value{
- the contents of the \code{"label"}, \code{"format"}, \code{"iformat"}, or
- \code{"units"} attribute of x, if any; otherwise, the value provided by
- \code{default}.
+ the contents of the \code{"label"}, \code{"format"}, or
+ \code{"iformat"} attribute of x, if any; otherwise, the value provided
+ by \code{default}.
}
\author{Gregory R. Warnes \email{gr...@ra...} based
on code from the \code{Hmisc} library by Frank E. Harrell, Jr.}
@@ -66,13 +58,11 @@
fail.time <- c(10,20)
# set attributes
-units(fail.time) <- 'Day'
label(fail.time) <- 'Failure Time'
formats(fail.time) <- 'Numeric2'
iformat(fail.time) <- 'Numeric2'
# display individual attributes
-units(fail.time)
label(fail.time)
formats(fail.time)
iformat(fail.time)
@@ -91,7 +81,7 @@
describe(fail.time)
f <- cph(Surv(fail.time, event) ~ xx)
-plot(xx,xx2,xlab=paste(label(xx),", ",units(xx),"s",sep=""))
+plot(xx,xx2,xlab=label(xx),"s",sep=""))
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|