The R Project SVN R

Rev

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

Rev 20401 Rev 25118
Line 9... Line 9...
9
}
9
}
10
\arguments{
10
\arguments{
11
  \item{x}{an \R object.}
11
  \item{x}{an \R object.}
12
}
12
}
13
\value{
13
\value{
14
  character string giving the ``class'' of \code{x}.
14
  character string giving the \dQuote{class} of \code{x}.
15
 
15
 
16
  The ``class'' is the (first element) of the \code{\link[base]{class}}
16
  The \dQuote{class} is the (first element) of the
17
  attribute if this is non-\code{NULL}, or inferred from the object's
17
  \code{\link[base]{class}} attribute if this is non-\code{NULL}, or
-
 
18
  inferred from the object's \code{dim} attribute if this is
18
  \code{dim} attribute if this is non-\code{NULL}, or \code{mode(x)}.
19
  non-\code{NULL}, or \code{mode(x)}.
19
 
20
 
20
  Simply speaking, \code{data.class(x)} returns what is typically useful
21
  Simply speaking, \code{data.class(x)} returns what is typically useful
21
  for method dispatching.  (Or, what the basic creator functions already
22
  for method dispatching.  (Or, what the basic creator functions already
22
  and maybe eventually all will attach as a class attribute.)
23
  and maybe eventually all will attach as a class attribute.)
23
}
24
}