The parameters for the built-in julian() are a bit different. This
should be what you can use:
start <- julian(as.Date(sprintf("%d-%d-%d", nn, mt1, 1)),
origin=as.Date("1971-01-01"))
end <- julian(as.Date(sprintf("%d-%d-%d", nn, mt2, 1)),
origin=as.Date("1971-01-01"))
Try looking at the julian() function in base ...
?julian
Jean
On Wed, Jun 10, 2015 at 2:46 AM, roslinazairimah zakaria <
roslina...@gmail.com> wrote:
> Dear r-users,
>
> I have a code in SPlus which use julian function. What is the similar code
> used in R?
>
> define.date1<-function(dt1,mt1,m
2 matches
Mail list logo