diffdate {RJalaliDate} | R Documentation |
calculate distance of two JalaliDate, that is, subtracts values of two JalaliDate and return
diffdate(x, y)
x |
JalaliDate object |
y |
JalaliDate object |
double
x <- JalaliDate(c(1, 2))
y <- JalaliDate(c(10, 12, 13, 20, 50))
diffdate(x,y)
# [1] -9 -10 NA NA NA
# Warning message:
# In diff.JalaliDate(x, y) : The length of two vectors aren't equal!