The R Project SVN R

Rev

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

Rev 62794 Rev 62806
Line 28... Line 28...
28
 
28
 
29
as.table(x, \dots)
29
as.table(x, \dots)
30
is.table(x)
30
is.table(x)
31
 
31
 
32
\method{as.data.frame}{table}(x, row.names = NULL, \dots,
32
\method{as.data.frame}{table}(x, row.names = NULL, \dots,
33
              responseName = "Freq", stringsAsFactors = TRUE)
33
              responseName = "Freq", stringsAsFactors = TRUE,
-
 
34
              sep = "", base = list(LETTERS))
34
}
35
}
35
\arguments{
36
\arguments{
36
  \item{\dots}{one or more objects which can be interpreted as factors
37
  \item{\dots}{one or more objects which can be interpreted as factors
37
    (including character strings), or a list (or data frame) whose
38
    (including character strings), or a list (or data frame) whose
38
    components can be so interpreted.  (For \code{as.table}, arguments
39
    components can be so interpreted.  (For \code{as.table}, arguments
39
    passed to specific methods; for \code{as.data.frame}, arguments
40
    passed to specific methods; for \code{as.data.frame}, unused.)}
40
    passed to \code{\link{provideDimnames}}.)}
-
 
41
  \item{exclude}{levels to remove for all factors in \code{\dots}.
41
  \item{exclude}{levels to remove for all factors in \code{\dots}.
42
    If set to \code{NULL}, it implies \code{useNA = "always"}.  See
42
    If set to \code{NULL}, it implies \code{useNA = "always"}.  See
43
    \sQuote{Details} for its interpretation for non-factor arguments.}
43
    \sQuote{Details} for its interpretation for non-factor arguments.}
44
  \item{useNA}{whether to include \code{NA} values in the table.
44
  \item{useNA}{whether to include \code{NA} values in the table.
45
    See \sQuote{Details}.}
45
    See \sQuote{Details}.}
46
  \item{dnn}{the names to be given to the dimensions in the result (the
46
  \item{dnn}{the names to be given to the dimensions in the result (the
47
    \emph{dimnames names}).}
47
    \emph{dimnames names}).}
48
  \item{deparse.level}{controls how the default \code{dnn} is
48
  \item{deparse.level}{controls how the default \code{dnn} is
49
    constructed.  See \sQuote{Details}.}
49
    constructed.  See \sQuote{Details}.}
50
  \item{x}{an arbitrary \R object, or an object inheriting from class
50
  \item{x}{an arbitrary \R object, or an object inheriting from class
51
    \code{"table"} for the \code{as.data.frame} method.}
51
    \code{"table"} for the \code{as.data.frame} method. Note that
-
 
52
    \code{as.data.frame.table(x, *)} may be called explicitly for
-
 
53
    non-table \code{x} for \dQuote{reshaping} \code{\link{array}}s.}
52
  \item{row.names}{a character vector giving the row names for the data
54
  \item{row.names}{a character vector giving the row names for the data
53
    frame.}
55
    frame.}
54
  \item{responseName}{The name to be used for the column of table
56
  \item{responseName}{The name to be used for the column of table
55
    entries, usually counts.}
57
    entries, usually counts.}
56
  \item{stringsAsFactors}{logical: should the classifying factors be
58
  \item{stringsAsFactors}{logical: should the classifying factors be
57
    returned as factors (the default) or character vectors?}
59
    returned as factors (the default) or character vectors?}
-
 
60
  \item{sep, base}{passed to \code{\link{provideDimnames}}.}
58
}
61
}
59
\details{
62
\details{
60
  If the argument \code{dnn} is not supplied, the internal function
63
  If the argument \code{dnn} is not supplied, the internal function
61
  \code{list.names} is called to compute the \sQuote{dimname names}.  If the
64
  \code{list.names} is called to compute the \sQuote{dimname names}.  If the
62
  arguments in \code{\dots} are named, those names are used.  For the
65
  arguments in \code{\dots} are named, those names are used.  For the