The R Project SVN R

Rev

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

Rev 61322 Rev 61920
Line 58... Line 58...
58
 
58
 
59
  \code{print.factor} allows some customization and is used for printing
59
  \code{print.factor} allows some customization and is used for printing
60
  \code{\link{ordered}} factors as well.
60
  \code{\link{ordered}} factors as well.
61
 
61
 
62
  \code{print.table} for printing \code{\link{table}}s allows other
62
  \code{print.table} for printing \code{\link{table}}s allows other
63
  customization.
63
  customization. As of R 3.0.0, it only prints a description in case of a table 
-
 
64
  with 0-extents (this can happen if a classifier has no valid data).
64
 
65
 
65
  See \code{\link{noquote}} as an example of a class whose main
66
  See \code{\link{noquote}} as an example of a class whose main
66
  purpose is a specific \code{print} method.
67
  purpose is a specific \code{print} method.
67
}
68
}
68
\references{
69
\references{
Line 96... Line 97...
96
set.seed(521)
97
set.seed(521)
97
t1 <- round(abs(rt(200, df = 1.8)))
98
t1 <- round(abs(rt(200, df = 1.8)))
98
t2 <- round(abs(rt(200, df = 1.4)))
99
t2 <- round(abs(rt(200, df = 1.4)))
99
table(t1, t2) # simple
100
table(t1, t2) # simple
100
print(table(t1, t2), zero.print = ".") # nicer to read
101
print(table(t1, t2), zero.print = ".") # nicer to read
-
 
102
 
-
 
103
## Corner cases with empty extents:
-
 
104
table(1, NA) # < table of extent 1 x 0 >
101
}
105
}
102
\keyword{print}
106
\keyword{print}