3 ;;; Time-stamp: <2009-06-23 08:02:51 tony>
4 ;;; Creation: <2009-06-22 17:09:47 tony>
5 ;;; File: dataframe-xarray.lisp
6 ;;; Author: AJ Rossini <blindglobe@gmail.com>
7 ;;; Copyright: (c)2009--, AJ Rossini. BSD, LLGPL, or GPLv2, depending
9 ;;; Purpose: Integration of xarray tools with dataframe-like
12 ;;; What is this talk of 'release'? Klingons do not make software
13 ;;; 'releases'. Our software 'escapes', leaving a bloody trail of
14 ;;; designers and quality assurance people in its wake.
16 ;;; Tamas Papp's xarray package is his 2nd generation generic array
17 ;;; indexing package, coming after the ideas and thoughts behind his
18 ;;; affi package, which while novel, is somewhat obsolete.
21 (defmethod xref ((obj data-frame-like
) &rest indices
)
22 (apply #'dfref obj indices
))
24 (defmethod (setf xref
) (value (object array
) &rest subscripts
)
25 (setf (apply #'dfref object subscripts
) value
))
27 (defmethod xref ((obj matrix-like
) &rest indices
))
29 (defmethod xtype ((obj dataframe-like
)))
35 (defmethod xdim ((obj dataframe-like
) index
)
36 (dataframe-dimension index
))