Data functions and the f(x) flyout
In addition to the possibility to add your own calculated columns or custom expressions to an analysis, an analysis author might also have access to data functions that have been created, either by Spotfire (built-in data functions, available if you have the Spotfire Data Science license), or by a script author who can use the installed Spotfire client to create and save data functions in the library. These data functions can be used to add more advanced calculations and use scripts based on different programming languages in the analysis.
For more information about using data functions, see the following sections:
- What are data functions?
- Running data functions from the library
- Configuring data functions
- Data functions in the Data canvas
- Interactive tuning of data functions
- The f(x) flyout
For more information about authoring or editing data functions (using the installed client), see the following sections:
For information about calculated columns and custom expressions, see Making your own calculations.
- What are data functions?
Data functions are the Spotfire way of letting advanced analysts, statisticians or mathematicians enhance Spotfire by creating scripts that can perform pretty much any type of calculation and returning the results to a Spotfire analysis. They can be created using the installed Spotfire client. If the data function is saved in the library, users with the Execute data functions license feature can use the data function when creating a new analysis. End-users can benefit from the results of the calculations when interacting with the finished analysis. - Running data functions from the library
Data functions that perform different types of calculations can be created using the installed Spotfire client. If the data function is saved in the library, anyone with authoring licenses plus the Execute data functions license feature can use the data function when creating an analysis. Other people can benefit from the results of the calculations when interacting with the finished analysis. - Data functions in the Data canvas
If you have added any data functions to your analysis, you can find all currently used data function instances in the Data canvas. - Interactive tuning of data functions
When a data function instance has been added to an analysis and the output is a calculated column, or a part of a data table (a new data table, added rows or added columns), and this output is used in a visualization, an analysis author can tune the input values directly from the visualization. This functionality is only available in Editing mode (not for consumer users). - The f(x) flyout
The f(x) flyout is a handy way for Spotfire authors to easily reach their favorite analytic tools by providing the possibility to pin data functions from the library (or built-in data functions) to the top of the flyout. It is available to analysis authors with the f(x) flyout license feature. Click on a pinned data function in the list to run it in your analysis (when applicable; for example, some data functions cannot run unless you have data in the analysis). - Authoring data functions
Data functions are calculations done by another engine than the internal Spotfire data engine. As a script author, you can create data functions that other authors in your organization can reuse in their own analyses, by saving your data function definition to the library. You can help others, and make sharing more efficient, by writing thorough descriptions, and by using well-defined parameter names or display names when you create your data function.