

   IInntteerrppoollaattee VVaalluueess ooff AArrrraayy

        interpolate(x, a, adims=lapply(dimnames(a), as.numeric),
                    method="linear")

   AArrgguummeennttss::

          x: Matrix of values at which interpolation shall take
             place.

          a: Array of arbitrary dimension.

      adims: List of the same structure as `dimnames(a)'.

     method: Interpolation method, one of `"linear"' or {"con-
             stant"}.

   DDeessccrriippttiioonn::

        For each row in matrix `x', the hypercube of `a' con-
        taining this point is searched. The corners of the
        hypercube are linearly interpolated. By default, `dim-
        names(a)' is taken to contain the coordinate values for
        each point in `a'. This can be overridden using
        `adims'. If `method=="constant"', the value of the
        ``lower left'' corner of the hypercube is returned.

   AAuutthhoorr((ss))::

        Friedrich Leisch

   SSeeee AAllssoo::

        `approx', `spline'

   EExxaammpplleess::

        x <- seq(0,3,0.2)
        z <- outer(x,x, function(x,y) sin(x*y))
        dimnames(z) <- list(x,x)
        sin(1.1*2.1)
        interpolate(c(1.1, 2.1),z)

