year.default: year.default

Usage Arguments Examples

View source: R/year.r

Usage

1

Arguments

x
format
limit

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function(x,format=\"%d-%b-%Y\",limit=2030){
t1<-(strptime(as.character(x),format))
t1year<-t1$year + 1900
s1<-((t1year<=99) + (t1year < 30))
t1year<-t1year + c(0,1900,2000)[s1+1]
return(t1year)
  }

gvdovandzung/thongke documentation built on May 23, 2020, 12:35 a.m.