| Line 1... |
Line 1... |
| 1 |
% File src/library/base/man/character.Rd
|
1 |
% File src/library/base/man/character.Rd
|
| 2 |
% Part of the R package, https://www.R-project.org
|
2 |
% Part of the R package, https://www.R-project.org
|
| 3 |
% Copyright 1995-2023 R Core Team
|
3 |
% Copyright 1995-2026 R Core Team
|
| 4 |
% Distributed under GPL 2 or later
|
4 |
% Distributed under GPL 2 or later
|
| 5 |
|
5 |
|
| 6 |
\name{character}
|
6 |
\name{character}
|
| 7 |
\alias{character}
|
7 |
\alias{character}
|
| 8 |
\alias{as.character}
|
8 |
\alias{as.character}
|
| Line 24... |
Line 24... |
| 24 |
supplying an argument of length other than one is an error.}
|
24 |
supplying an argument of length other than one is an error.}
|
| 25 |
\item{x}{object to be coerced or tested.}
|
25 |
\item{x}{object to be coerced or tested.}
|
| 26 |
\item{\dots}{further arguments passed to or from other methods.}
|
26 |
\item{\dots}{further arguments passed to or from other methods.}
|
| 27 |
}
|
27 |
}
|
| 28 |
\details{
|
28 |
\details{
|
| 29 |
\code{as.character} and \code{is.character} are generic: you can
|
29 |
\code{as.character} is generic: you can
|
| 30 |
write methods to handle specific classes of objects,
|
30 |
write methods to handle specific classes of objects,
|
| 31 |
see \link{InternalMethods}. Further, for \code{as.character} the
|
31 |
see \link{InternalMethods}. Its
|
| 32 |
default method calls \code{\link{as.vector}}, so, only
|
32 |
default method calls \code{\link{as.vector}}, so, only
|
| 33 |
\code{if(is.object(x))} is true, dispatch is first on
|
33 |
if \code{is.object(x)} is true, dispatch is first on
|
| 34 |
methods for \code{as.character} and then for methods for \code{as.vector}.
|
34 |
methods for \code{as.character} and then for methods for \code{as.vector}.
|
| 35 |
|
35 |
|
| 36 |
\code{as.character} represents real and complex numbers to 15 significant
|
36 |
\code{as.character} represents real and complex numbers to 15 significant
|
| 37 |
digits (technically the compiler's setting of the ISO C constant
|
37 |
digits (technically the compiler's setting of the ISO C constant
|
| 38 |
\code{DBL_DIG}, which will be 15 on machines supporting \abbr{IEC} 60559
|
38 |
\code{DBL_DIG}, which will be 15 on machines supporting \abbr{IEC} 60559
|