| Line 6... |
Line 6... |
| 6 |
\name{xtfrm}
|
6 |
\name{xtfrm}
|
| 7 |
\alias{xtfrm}
|
7 |
\alias{xtfrm}
|
| 8 |
\alias{xtfrm.default}
|
8 |
\alias{xtfrm.default}
|
| 9 |
\alias{xtfrm.factor}
|
9 |
\alias{xtfrm.factor}
|
| 10 |
\alias{xtfrm.AsIs}
|
10 |
\alias{xtfrm.AsIs}
|
| - |
|
11 |
%% Moved to package survival.
|
| 11 |
\alias{xtfrm.Surv}
|
12 |
%% \alias{xtfrm.Surv}
|
| 12 |
\alias{xtfrm.Date}
|
13 |
\alias{xtfrm.Date}
|
| 13 |
\alias{xtfrm.POSIXct}
|
14 |
\alias{xtfrm.POSIXct}
|
| 14 |
\alias{xtfrm.POSIXlt}
|
15 |
\alias{xtfrm.POSIXlt}
|
| 15 |
\alias{xtfrm.difftime}
|
16 |
\alias{xtfrm.difftime}
|
| 16 |
\title{Auxiliary Function for Sorting and Ranking}
|
17 |
\title{Auxiliary Function for Sorting and Ranking}
|
| Line 29... |
Line 30... |
| 29 |
\code{\link{rank}} is more suitable to be made generic. The default
|
30 |
\code{\link{rank}} is more suitable to be made generic. The default
|
| 30 |
method is similar to \code{rank(x, ties.method = "min",
|
31 |
method is similar to \code{rank(x, ties.method = "min",
|
| 31 |
na.last = "keep")}, so \code{NA} values are given rank \code{NA} and all
|
32 |
na.last = "keep")}, so \code{NA} values are given rank \code{NA} and all
|
| 32 |
tied values are given equal integer rank.
|
33 |
tied values are given equal integer rank.
|
| 33 |
|
34 |
|
| 34 |
The \code{\link{factor}} method extracts the codes. The
|
35 |
The \code{\link{factor}} method extracts the codes.
|
| 35 |
\code{\link[survival]{Surv}} method sorts first on times and then on
|
36 |
%% The \code{\link[survival]{Surv}} method sorts first on times and
|
| 36 |
status code(s), finally on \code{timme2} if present. Note that with
|
37 |
%% then on status code(s), finally on \code{timme2} if present. Note
|
| 37 |
the conventional status codes this sorts individuals still alive before
|
38 |
%% that with the conventional status codes this sorts individuals
|
| 38 |
deaths.
|
39 |
%% still alive before deaths.
|
| 39 |
|
40 |
|
| 40 |
The default method will unclass the object if
|
41 |
The default method will unclass the object if
|
| 41 |
\code{\link{is.numeric}(x)} is true but otherwise make use of
|
42 |
\code{\link{is.numeric}(x)} is true but otherwise make use of
|
| 42 |
\code{==} and \code{>} methods for the class of \code{x[i]} (for
|
43 |
\code{==} and \code{>} methods for the class of \code{x[i]} (for
|
| 43 |
integers \code{i}), and the \code{is.na} method for the class of
|
44 |
integers \code{i}), and the \code{is.na} method for the class of
|