Learn R Programming

Biograph (version 2.0.6)

Date_as_year: Converts a vector of dates (class 'Date') to decimal year (calendar year and fraction of year).

Description

Converts a vector of dates (class 'Date') to calendar years and fractions of year.

Usage

Date_as_year (x,format.in)

Arguments

x
Date as variable of class 'Date'
format.in
Format of the date.

Value

Calendar year and fraction of year

Examples

Run this code
	Date_as_year (x="1946-03-01")

Run the code above in your browser using DataLab