Skip to content

Commit

Permalink
moved main zoo package to new zoo directory
Browse files Browse the repository at this point in the history
git-svn-id: svn://r-forge.r-project.org/svnroot/zoo/pkg/zoo@609 edb9625f-4e0d-4859-8d74-9fd3b1da38cb
  • Loading branch information
azeileis committed Sep 29, 2009
1 parent ad3bded commit 3d9e124
Show file tree
Hide file tree
Showing 78 changed files with 9,673 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
R/fBasics.R
R/misc.zoo.R
man/defaultfrequency.Rd
inst/doc/.*\.log
inst/doc/.*\.dvi
340 changes: 340 additions & 0 deletions COPYING

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions COPYRIGHTS
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
COPYRIGHT STATUS
----------------

This bulk of this code is

Copyright (C) 2004-2008 Achim Zeileis, Gabor Grothendieck

and R/na.approx.R which is

Copyright (C) 2004 Achim Zeileis, Gabor Grothendieck, Sundar Dorai-Raj

All code is subject to the GNU General Public License, Version 2. See
the file COPYING for the exact conditions under which you may
redistribute it.
19 changes: 19 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Package: zoo
Version: 1.6-0
Date: 2008-09-14
Title: Z's ordered observations
Author: Achim Zeileis, Gabor Grothendieck
Maintainer: Achim Zeileis <[email protected]>
Description: An S3 class with methods for totally ordered indexed
observations. It is particularly aimed at irregular time series
of numeric vectors/matrices and factors. zoo's key design goals
are independence of a particular index/date/time class and
consistency with ts and base R by providing methods to extend
standard generics.
Depends: R (>= 2.4.1), stats
Suggests: coda, chron, DAAG, fame, fCalendar, fSeries, fts, its, lattice, strucchange,
timeDate, timeSeries, tseries, xts
Imports: stats, utils, graphics, grDevices, lattice
LazyLoad: yes
License: GPL-2
URL: http://R-Forge.R-project.org/projects/zoo/
317 changes: 317 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1,317 @@
## name spaces needed for S3 methods
import("stats", "utils", "graphics", "lattice", "grDevices")

export(
## zoo core functionality
"zoo",
"zooreg",
"as.zoo",
"as.zoo.default",
"as.zooreg",
"as.zooreg.default",
"cbind.zoo",
"rbind.zoo",
"is.zoo",
"merge.zoo",
"read.zoo",
"rev.zoo",
"write.zoo",
"xtfrm.zoo",

## plotting
"plot.zoo",
"make.par.list",
"panel.plot.default",
"panel.plot.custom",

## new time series functionality
"coredata",
"coredata.default",
"coredata<-",
"frequency<-",
"index",
"index2char",
"index<-",
"is.regular",
"time<-",

## rolling operations
"rollapply",
"rollmax",
"rollmax.default",
"rollmean",
"rollmean.default",
"rollmedian",
"rollmedian.default",

## NA operations
"na.approx",
"na.approx.default",
"na.locf",
"na.locf.default",
"na.spline",
"na.spline.default",
"na.trim",
"na.trim.default",

## make.unique operations
"make.unique.approx",
"make.unique.approx.default",

## new index classes
"yearmon",
"as.yearmon",
"as.yearmon.default",
"Sys.yearmon",
"yearqtr",
"as.yearqtr",
"as.yearqtr.yearqtr",
"as.yearqtr.default",
"format.yearqtr",
"Sys.yearqtr",
"multitime",
"as.multitime",
"as.multitime.default",
"xtfrm.multitime",

# *** temporary -- change these to S3Method when lattice creates generics
"panel.lines.ts",
"panel.lines.its",
"panel.lines.tis",
"panel.lines.zoo",
"panel.points.ts",
"panel.points.its",
"panel.points.tis",
"panel.points.zoo",
"panel.segments.ts",
"panel.segments.its",
"panel.segments.tis",
"panel.segments.zoo",
"panel.text.ts",
"panel.text.its",
"panel.text.tis",
"panel.text.zoo",
"panel.rect.ts",
"panel.rect.its",
"panel.rect.tis",
"panel.rect.zoo",
"panel.arrows.ts",
"panel.arrows.its",
"panel.arrows.tis",
"panel.arrows.zoo",
"panel.polygon.ts",
"panel.polygon.its",
"panel.polygon.tis",
"panel.polygon.zoo",

## auxiliary generics/methods
"MATCH",
"MATCH.default",
"ORDER",
"ORDER.default")

## methods for class zoo
S3method("Ops", "zoo")
S3method("[", "zoo")
S3method("$", "zoo")
S3method("$<-", "zoo")
S3method("aggregate", "zoo")
S3method("as.data.frame", "zoo")
S3method("as.list", "zoo")
S3method("as.matrix", "zoo")
S3method("as.ts", "zoo")
S3method("as.vector", "zoo")
S3method("barplot", "zoo")
S3method("c", "zoo")
S3method("coredata", "zoo")
S3method("coredata<-", "zoo")
S3method("cummax", "zoo")
S3method("cummin", "zoo")
S3method("cumprod", "zoo")
S3method("cumsum", "zoo")
S3method("cycle", "zoo")
S3method("deltat", "zoo")
S3method("diff", "zoo")
S3method("end", "zoo")
S3method("frequency", "zoo")
S3method("frequency<-", "zoo")
S3method("head", "zoo")
S3method("index", "zoo")
S3method("index<-", "zoo")
S3method("is.regular", "zoo")
S3method("lag", "zoo")
S3method("lines", "zoo")
S3method("na.contiguous", "zoo")
S3method("names", "zoo")
S3method("names<-", "zoo")
S3method("plot", "zoo")
S3method("points", "zoo")
S3method("print", "zoo")
S3method("range", "zoo")
S3method("rollapply", "zoo")
S3method("rollmax", "zoo")
S3method("rollmean", "zoo")
S3method("rollmedian", "zoo")
S3method("scale", "zoo")
S3method("split", "zoo")
S3method("subset", "zoo")
S3method("start", "zoo")
S3method("str", "zoo")
S3method("summary", "zoo")
S3method("t", "zoo")
S3method("tail", "zoo")
S3method("time", "zoo")
S3method("time<-", "zoo")
S3method("window", "zoo")
S3method("window<-", "zoo")
S3method("with", "zoo")
S3method("xyplot", "zoo")

## methods for class zooreg
S3method("as.ts", "zooreg")
S3method("deltat", "zooreg")
S3method("frequency", "zooreg")
S3method("frequency<-", "zooreg")
S3method("lag", "zooreg")
S3method("time<-", "zooreg")
S3method("index<-", "zooreg")
S3method("is.regular", "zooreg")

## methods for class ts
S3method("coredata", "ts")
S3method("coredata<-", "ts")
S3method("index", "ts")
S3method("is.regular", "ts")
S3method("rollapply", "ts")
S3method("rollmax", "ts")
S3method("rollmean", "ts")
S3method("rollmedian", "ts")
S3method("xyplot", "ts")

## methods for class irts
S3method("coredata", "irts")
S3method("coredata<-", "irts")

## methods for class its
S3method("coredata", "its")
S3method("coredata<-", "its")
S3method("xyplot", "its")

## methods for class tis
S3method("xyplot", "tis")

## methods for class multitime
S3method("coredata", "multitime")
S3method("index", "multitime")
S3method("as.character", "multitime")
S3method("MATCH", "multitime")
S3method("ORDER", "multitime")
S3method("Ops", "multitime")
S3method("[", "multitime")
S3method("c", "multitime")
S3method("as.numeric", "multitime")
S3method("as.Date", "multitime")
S3method("as.yearmon", "multitime")
S3method("as.yearqtr", "multitime")
S3method("make.unique", "multitime")

## methods for class yearmon
S3method("-", "yearmon")
S3method("Axis", "yearmon")
S3method("MATCH", "yearmon")
S3method("Ops", "yearmon")
S3method("Summary", "yearmon")
S3method("[", "yearmon")
S3method("as.Date", "yearmon")
S3method("as.POSIXct", "yearmon")
S3method("as.POSIXlt", "yearmon")
S3method("as.character", "yearmon")
S3method("as.numeric", "yearmon")
S3method("as.data.frame", "yearmon")
S3method("axis", "yearmon")
S3method("c", "yearmon")
S3method("cycle", "yearmon")
S3method("format", "yearmon")
S3method("is.numeric", "yearmon")
S3method("mean", "yearmon")
S3method("print", "yearmon")
S3method("range", "yearmon")
S3method("summary", "yearmon")
S3method("unique", "yearmon")

## methods for class yearqtr
S3method("-", "yearqtr")
S3method("Axis", "yearqtr")
S3method("MATCH", "yearqtr")
S3method("Ops", "yearqtr")
S3method("Summary", "yearqtr")
S3method("[", "yearqtr")
S3method("as.Date", "yearqtr")
S3method("as.POSIXct", "yearqtr")
S3method("as.POSIXlt", "yearqtr")
S3method("as.character", "yearqtr")
S3method("as.numeric", "yearqtr")
S3method("as.data.frame", "yearqtr")
S3method("axis", "yearqtr")
S3method("c", "yearqtr")
S3method("cycle", "yearqtr")
S3method("format", "yearqtr")
S3method("is.numeric", "yearqtr")
S3method("mean", "yearqtr")
S3method("print", "yearqtr")
S3method("range", "yearqtr")
S3method("summary", "yearqtr")
S3method("unique", "yearqtr")

## methods for class timeDate/timeSeries
S3method("MATCH", "timeDate")
S3method("ORDER", "timeDate")
S3method("as.zoo", "timeSeries")

## methods for misc classes
S3method("index", "default")
S3method("index2char", "default")
S3method("is.regular", "default")
S3method("index2char", "numeric")
S3method("na.contiguous", "data.frame")
S3method("na.contiguous", "list")
S3method("ORDER", "chron")
S3method("ORDER", "dates")
S3method("ORDER", "times")

## coercion to classes Date, list, multitime, yearmon, yearqtr, zoo, zooreg
S3method("as.Date", "ts")
S3method("as.list", "ts")
S3method("as.yearmon", "date")
S3method("as.yearmon", "Date")
S3method("as.yearmon", "timeDate")
S3method("as.yearmon", "jul")
S3method("as.yearmon", "POSIXt")
S3method("as.yearmon", "character")
S3method("as.yearmon", "dates")
S3method("as.yearmon", "integer")
S3method("as.yearmon", "numeric")
S3method("as.yearmon", "factor")
S3method("as.yearqtr", "date")
S3method("as.yearqtr", "Date")
S3method("as.yearqtr", "timeDate")
S3method("as.yearqtr", "jul")
S3method("as.yearqtr", "POSIXt")
S3method("as.yearqtr", "character")
S3method("as.yearqtr", "dates")
S3method("as.yearqtr", "integer")
S3method("as.yearqtr", "numeric")
S3method("as.yearqtr", "factor")
S3method("as.zoo", "factor")
S3method("as.zoo", "fts")
S3method("as.zoo", "irts")
S3method("as.zoo", "its")
S3method("as.zoo", "mcmc")
S3method("as.zoo", "ts")
S3method("as.zoo", "xts")
S3method("as.zoo", "zoo")
S3method("as.zoo", "zooreg")
S3method("as.zooreg", "tis")
S3method("as.zooreg", "ts")
S3method("as.zooreg", "xts")
S3method("as.zooreg", "zoo")
Loading

0 comments on commit 3d9e124

Please sign in to comment.