There are two ways to use custom R scripts and functions in the Aster Database.
- Use the Aster R MapReduce Runner functions to apply existing open-source or custom R functions to tables in the Aster Database.
This method is similar to the open-source R apply() functions, and is often applied during data exploration phases.
- Install custom R scripts on the Aster Database, and run the scripts using the Teradata Aster SQL-MapReduce® Stream functionality.
This method is often used for production applications, when more than one user may need to use the same script.
These two methods produce equivalent results, and the choice is primarily a matter of preference and applications.