Hi, I'm Roslina, PhD student of University of South Australia, Australia from school Maths and Stats. I use S-Plus before and now has started using R-package. I used
to analyse rainfall data using julian date. Is there any similar function that you can suggest to me to be used in R-package? Thank you so much for your attention and help. Here are some of my codes: # dt1-data # mt1-begin month, mt2- end month, nn=year, n= no of years # da - days in the following month # yr1 - year begin define.date1<-function(dt1,mt1,mt2,nn,da) { mt2<-mt2+1 start<-julian(mt1, 1, nn, origin=c(month=1, day=1, year=1971))+1 end<-julian(mt2, 1, nn, origin=c(month=1, day=1, year=1971))+da a<-dt1[start:end,] #am<-as.matrix(a[,5]) } seq.date1<-function(dt1,mt1,mt2,n,yr1,da) { yr1<-yr1-1 for (i in 1:n) { kp1<-define.date1(dt1,mt1,mt2,yr1+i,da) if (i==1) kp2<-kp1 else kp2<-rbind(kp2,kp1) } kp2 [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.