safetyGraphics / ISG open source · A · C · E
Our own ancestor, and the only surveyed tool that gives an end user a real column-mapping surface and hands the result back out as code.
- Getting in
- safetyGraphicsInit() opens a setup screen: choose charts first, and the app derives which datasets it now needs. Load buttons import files through datamods, in any format rio reads — text, Excel, SAS, SPSS. The Run App button activates once every required domain has a file. The alternative is to pass a named list straight in: safetyGraphicsApp(domainData = sdtm).
- Mapping
- A Mapping tab tells charts which column and which field to use for each chart component. It is filled in automatically for recognised standards and by hand otherwise, with a checkbox at the top to preview the loaded data.
- Detection
- detectStandard() compares the columns present against the required columns of each known standard and returns the best match, whether it is full or partial, the proportion matched, and which columns mapped — reported to the user as text of the form Partial SDTM (4/9 cols/fields matched). ADaM and SDTM ship; further standards are added by editing the package’s meta table.
- Writing back
- Fill the mapping once, then export code that restarts the app with those settings pre-populated. The exported YAML carries the mapping.
- Values
- Nothing documented. The mapping identifies columns; it does not recode what is inside them.