Formulation class for OSP snapshot formulations
Formulation.Rd
An 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
data
The raw data of the formulation (read-only)
name
The name of the formulation
formulation_type
The formulation type identifier
parameters
The list of parameter objects
Methods
Method print()
Print a summary of the formulation including its properties and parameters.
Method 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)