tojulian: Convert calendar dates to Julian dates.

Description Usage Arguments Value See Also Examples

Description

Accepts any character representation of a date and a description of the format. The submitted dates can be a vector or a matrix.

Usage

1
tojulian(x, dateform = "%m/%d/%Y")

Arguments

x

A character representation of a date.

dateform

Format for calendar date, see base::strptime() for format information.

Value

A julian date, the number of days since 1 Jan 1960; a julian is an integer and can be graphed or operated as such, though it displays as a date.

See Also

base::strptime(), base::julian().

Examples

1
2
3
4
## Not run: 
tojulian(c('23Oct2010','29Mar1956'),'%d%b%Y')

## End(Not run)

forestgeo/ctfs documentation built on May 3, 2019, 6:44 p.m.