EditFunction: Edit Function
Description
A GUI for defining functions in the R language.Usage
EditFunction(cols, index = NULL, fun = NULL, value.length = NULL, value.class = NULL, win.title = "Edit Function", parent = NULL)
Arguments
index
integer; an element index number in cols.
fun
character; existing function, only used if index=NULL.
value.length
integer; the required length for the
  evaluated function. value.class
character; the required class for the
  evaluated function. win.title
character; a string to display as the title of the dialog box.
parent
tkwin; the GUI parent window. Value
Returns a list with two four components:
fun, the user defined function (when evaluated, this string must be parseable);
class, the object class for the evaluated function;
summary, the default summary for the evaluated function; and
sample, the first non-missing value for the evaluated function.
Details
This GUI is appropriate for deriving new variables in a
pre-existing data frame or query building.