Rev 3120 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
* Put the unpaste part of chron_strs.c in a separate file, and rewritefor R internal object handling. Code for unpaste() from strings.inUXis no longer needed.* Copy ALL.FUNCTIONS -> chron.R.* In chron.R, replace all occurrences of!length(something)by!as.logical(length(something))In Emacs, you can do(query-replace-regexp"!length(\\([a-z\.]*\\))" "!as.logical(length(\\1))" nil)* The same problem (`!' only defined for logical arguments) occurs incut.dates():if(!(i <- pmatch(breaks[1], valid, 0)))seq.dates():if(!(i <- pmatch(by, valid, 0)))=> add `as.logical' after the `!'.* In Ops.dates,if(any(o1 != o2))does not work in R if one of the origins is NULL. Change toif(any(o1 - o2))* Change .Machine$single.eps to .Machine$double.eps* Change .Options to options()* In julian(), replaceif(missing(origin.))byif(missing(origin.) || is.null(origin.))* Change occurences ofUseMethod(generic, object, ...)toUseMethod(generic)* Make the following functions generic in the R distribution:cut diff hist mean quantile seq truncComment the corresponding definitions for the generic funs and theirdefault methods.* In cut.dates(), it seems that R's cut.default() which uses intervalsclosed on the right by default produces results which are one off.Adding `right = FALSE' to the call to cut.default() seems to fix this.* character(n=0) in R is character(length=0) in S; fix chron.Raccordingly* In c.dates() and c.times(), add `recursive = FALSE' argument.* In leap.year(), fix typo.* In format<-(), format<-.times() and origin<-(), replace `val' by`value'.* Y2K update: comment convert.dates(), format.dates(), parse.format(),and replace by updated functions by David James.* DOCUMENTATION FIXES (after conversion via Sd2Rd):chron.Rd:Add alias.cut.dates.Rd:Add alias.dates.Rd:Fix \name.Add aliases (dates, times).Delete 1st \seealso.day.of.week.Rd:Add aliases (day.of.week, julian, leap.year, month.day.year).REMOVE julian.Rd, leap.year.Rd, month.day.year.Rd.days.Rd:Fix \name.Add aliases (days, months, quarters, weekdays, years).Merge in all \seealso{}'s (dates chron is.holiday is.weekend cut.datesseq.dates).REMOVE months.Rd quarters.Rd weekdays.Rd years.Rd.hours.Rd:Fix \name.Add aliases (hours minutes seconds).is.holiday.Rd:Add aliases (is.holiday is.weekend).REMOVE is.weekend.Rd.seq.dates.Rd:Add alias.Fix examples everywhere!