year_as_Date: Converts a vector of dates in decimal years (calendar years...

Description Usage Arguments Value Author(s) Examples

View source: R/year_as_Date.R

Description

Converts vector of calendar years and fractions of year to object of class 'Date'.

Usage

1
year_as_Date (x,format.out)

Arguments

x

Calendar year and fraction of year, e.g. 2012.448

format.out

Format of date

Value

date as object of class Date: days since 1-1-1970 and printed as date in Gregorian calendar, e.g. "1946-03-01"

Author(s)

Frans Willekens

Examples

1
2
3
	# d=1946.167, which is March 1,1946 
	year_as_Date (x=1946.167,format.out='%d-%m-%Y')
     

Biograph documentation built on May 1, 2019, 8:48 p.m.