Transform Function and Transform Function Factory R Interface

This section describes information that is specific to the R API. See R SDK API Documentation for general information about implementing transform functions.

Transform Function API

The API provides the following framework for extension by R function:

FunctionName <- function(input.data.frame, parameters.data.frame) {
  # Computations

  # The function must return a data frame.
  return(output.data.frame)

}

Transform Function Factory API

The API provides the following framework for extension by R function:

FunctionNameFactory <- function() {
  list(name    = FunctionName,
       udxtype = c("transform"),
       intype  = c("int"),
       outtype = c("int"))
}