Displaying 1 result from an estimated 1 matches for "1jan1961".
Did you mean:
1jan1960
2003 Nov 06
2
Number of Days
Hi everyone,
I have been trying to compute numbers of days between two dates as follows:
> x <- c("1jan1960", "2jan1960", "31mar1960", "30jul1960")
> z <- format(x, "%d%b%Y")
> ex <- c("1jan1961", "15jan1960", "21mar1975", "10jul1981")
> ez <- format(ex, "%d%b%Y")
> ez-z
Error in ez - z : non-numeric argument to binary operator
As you may see, I am getting an error. Can anyone tell me how I can convert z
and ez to numeric vectors, so...