Formulation class for OSP snapshot formulations
Formulation.RdAn R6 class that represents a formulation in an OSP snapshot. This class provides methods to access different properties of a formulation and display a summary of its information.
Active bindings
dataThe raw data of the formulation (read-only)
nameThe name of the formulation
formulation_typeThe formulation type identifier
parametersThe list of parameter objects. Writable: must be a list, or
NULLto clear.
Methods
Formulation$to_df()
Convert formulation data to tibbles
Returns
A list of tibbles containing the requested data:
formulations: Basic formulation information (ID, name, type)
formulations_parameters: All parameters including table parameter points
The formulations_parameters tibble includes the following columns:
formulation_id: ID of the formulation
name: Name of the parameter
value: Value of the parameter (NA for table points)
unit: Unit of the parameter (NA for table points)
is_table_point: TRUE for table parameter points, FALSE for regular parameters
x_value: X-axis value for table points (NA for regular parameters)
y_value: Y-axis value for table points (NA for regular parameters)
table_name: Name of the table (usually "Time" for release profiles)
source: Source of the parameter (NA if not available)
description: Description of the parameter (NA if not available)
source_id: ID of the source (NA if not available)