User Tools

Site Tools


01_user_documentation:05_object:04_data:01_dataset

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
01_user_documentation:05_object:04_data:01_dataset [2025/07/04 16:39] gaetan01_user_documentation:05_object:04_data:01_dataset [2025/09/05 17:20] (current) – ↷ Links adapted because of a move operation gaetan
Line 6: Line 6:
  
  
-Datasets are accessible in both the GUI (via the ''Datasets'' Explorer) and in RGG code using the DatasetRef class. Titles for columns can be set, and data can be visualized using the ''chart()'' function with plot types like ''XY_PLOT''.+Datasets are accessible in both the GUI (via the [[01_user_documentation:03_interacting_with_groimp:02_panels:02_explorers:03_datasets|Datasets Explorer]]) and in RGG code using the DatasetRef class. 
 + 
 +Titles for columns can be set, and data can be [[01_user_documentation:03_interacting_with_groimp:15_visualization:04_plotting|plotted]]. 
 + 
 +Datasets are persistent across simulation runs unless explicitly cleared. 
 + 
 +===== Export ===== 
 + 
 +Using the [[01_user_documentation:03_interacting_with_groimp:02_panels:02_explorers:03_datasets| explorer]] datasets can be exported to: 
 + 
 +  * txt 
 +  * csv 
 +  * html 
 +  * xls 
 +  * pdf 
 + 
 +Using rgg code datasets can be exported to csv with the [[ 01_user_documentation:05_object:06_references:03_datasets#exporting | export function]].
  
-Datasets can be exported to external files and are persistent across simulation runs unless explicitly cleared. 
  
 For code examples see the [[02_user_tutorials:data_plots|datasets tutorial]]. For code examples see the [[02_user_tutorials:data_plots|datasets tutorial]].
 +
 +===== Cleaning =====
 +
 +Since datasets are persistent across simulation runs old data is kept inside. A dataset can be clean using the  datasetRef function [[01_user_documentation:05_object:06_references:03_datasets#cleaning|''clear()'']] or by simply deleting the object form the dataset explorer. 
 +
 +
 +===== Adding data =====
 +
 +The only way to add values to a dataset is through RGG code executed either in the model or in the xl console, using the [[01_user_documentation:05_object:06_references:03_datasets#adding_data | datasetRef functions]]. 
 + 
 +
 +==== adding multipe values for one cell ====
 +
 +In order to use the [[01_user_documentation:03_interacting_with_groimp:15_visualization:04_plotting:07_xy_plot]] or the [[01_user_documentation:03_interacting_with_groimp:15_visualization:04_plotting:06_scatter_plot]] more than one value per cell is needed. Therefore the datasetRef has [[01_user_documentation:05_object:06_references:03_datasets#add_several_values_to_one_cell |additional functions]] for that and in the table view this is displayed with white spaces.
 + 
01_user_documentation/05_object/04_data/01_dataset.1751639986.txt.gz · Last modified: 2025/07/04 16:39 by gaetan