The R Project SVN R

Rev

Rev 28166 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 28166 Rev 28169
Line 4... Line 4...
4
\alias{as.Date}
4
\alias{as.Date}
5
\alias{as.Date.character}
5
\alias{as.Date.character}
6
\alias{as.Date.default}
6
\alias{as.Date.default}
7
\alias{as.Date.factor}
7
\alias{as.Date.factor}
8
\alias{as.Date.POSIXct}
8
\alias{as.Date.POSIXct}
-
 
9
\alias{as.Date.date}
-
 
10
\alias{as.Date.dates}
9
 
11
 
10
\title{Date Conversion Functions to and from Character}
12
\title{Date Conversion Functions to and from Character}
11
\description{
13
\description{
12
  Functions to convert between character representations and objects of
14
  Functions to convert between character representations and objects of
13
  classes \code{"Date"} representing calendar dates and times.
15
  classes \code{"Date"} representing calendar dates and times.
Line 38... Line 40...
38
  and months.
40
  and months.
39
 
41
 
40
  The \code{as.Date} methods accept character strings, factors, logical
42
  The \code{as.Date} methods accept character strings, factors, logical
41
  \code{NA} and objects of class \code{"\link{POSIXct}"}, which are
43
  \code{NA} and objects of class \code{"\link{POSIXct}"}, which are
42
  converted to days by ignoring the time to be midnight in the
44
  converted to days by ignoring the time to be midnight in the
43
  representation of the time in UTC.
45
  representation of the time in UTC.  Also objects of class
-
 
46
  \code{"date"} (from package \pkg{\link[date:as.date]{date}} or
-
 
47
  \pkg{\link[survival:as.date]{survival}}) and
-
 
48
  \code{"dates"} (from package \pkg{\link[chron]{chron}}).
44
 
49
 
45
  The \code{format} and \code{as.character} methods ignore any
50
  The \code{format} and \code{as.character} methods ignore any
46
  fractional part of the date.
51
  fractional part of the date.
47
}
52
}
48
\value{
53
\value{