The R Project SVN R

Rev

Rev 59039 | Rev 68948 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 59039 Rev 61173
Line 40... Line 40...
40
  examples), and the class attribute (see \code{\link{oldClass}}) of the
40
  examples), and the class attribute (see \code{\link{oldClass}}) of the
41
  result is taken from \code{test} and may be inappropriate for the
41
  result is taken from \code{test} and may be inappropriate for the
42
  values selected from \code{yes} and \code{no}.
42
  values selected from \code{yes} and \code{no}.
43
 
43
 
44
  Sometimes it is better to use a construction such as
44
  Sometimes it is better to use a construction such as
45
  \code{(tmp <- yes; tmp[!test] <- no[!test]; tmp)}, possibly extended
45
\preformatted{  (tmp <- yes; tmp[!test] <- no[!test]; tmp)
46
  to handle missing values in \code{test}.
46
}, possibly extended to handle missing values in \code{test}.
47
}
47
}
48
\references{
48
\references{
49
  Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988)
49
  Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988)
50
  \emph{The New S Language}.
50
  \emph{The New S Language}.
51
  Wadsworth & Brooks/Cole.
51
  Wadsworth & Brooks/Cole.