

   CCoonnvveerrtt OObbjjeecctt ttoo FFuunnccttiioonn

        as.function(x, ...)

        as.function.default(l, envir = sys.frame(sys.parent()))

   AArrgguummeennttss::

          x: object to convert

        ...: additional arguments, depending on object

          l: a list

      envir: environment in which the function should be
             defined

   DDeessccrriippttiioonn::

        `as.function' is a generic function which is used to
        convert objects to functions.

        `as.function.default' works on a list `x', which should
        contain the concatenation of a formal argument list and
        an expression or an object of mode `"call"' which will
        become the function body.  The function will be defined
        in a specified environment, by default that of the
        caller.

   VVaalluuee::

        The desired function.

   AAuutthhoorr((ss))::

        Peter Dalgaard

   SSeeee AAllssoo::

        `function'; `alist(.)' which is handy for the construc-
        tion of argument lists, etc.

   EExxaammpplleess::

        as.function(alist(a=,b=2,a+b))
        as.function(alist(a=,b=2,a+b))(3)

