> For the complete documentation index, see [llms.txt](https://help.imotions.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.imotions.com/lab/exports/r-processed-exports/export-r-processed-gsr-files.md).

# Export: R Processed GSR Files

Understand the GSR Peak Metrics, Moment To Moment Statistics and GSR Peak Table exports from the GSR peak detection R-Notebook, column by column.

*There are 3 different files you can look to for R-Processed GSR data. The 3 different files fall under the GSR Summary Exports category. Please refer to here (Section: Outputs - Exported files) for how to access the GSR R-processed file from iMotions desktop.*

1. GSR Peak Metrics
2. Moment To Moment Statistics
3. GSR Peak Table

## 1. GSR Peak Metrics

This file has one row for each respondent and each **stimulus / scene / scene fragment / annotation / annotation instance** within the study. Each row contains information about how many peaks were experienced by this respondent during that stimulus / scene / scene fragment / annotation / annotation instance.

*First, what is **scene fragment** and **annotation instance**?*

For some stimulus type (E.g., WebSite, Screen Recording), it is possible to create a scene with multiple fragments. For all stimulus types, you can create an annotation with multiple instances. A detailed instruction on how to create scene and annotation is [*here (scene creation)*](https://help.imotions.com/lab/analysis/signal-processing-r-notebooks/my-library/scene-editor.md) and *here (annotation creation)*.

Example: Scene with 3 **scene fragments**:

![Scene\_with\_3\_fragments.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-1683a8a566a82e7bd67b553bebfb509f58c6c398%2Fee3cf1eee8_1xpribeqk6lwvlqjtlkq.webp?alt=media)

Example: Annotation with 3 **annotation instances**:

![annotation\_with\_3\_instances.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-c4778e9b5e25bcea45056482068147f09e466000%2Fc59e61bb13_dyhmhhfonukzrnbz0hrsha.webp?alt=media)

Descriptions on the exported file:

You can find information on the data such as unit, descriptions, which device it was from, information on the algorithms from the METADATA part on the top of the file.

| **Header**                            | **Explanation**                                                                                                                            |
| ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| Study Name                            | The name of the study                                                                                                                      |
| Respondent Name                       | The respondent who experienced these peaks                                                                                                 |
| Gender                                | The gender of the respondent who experienced these peaks                                                                                   |
| Age                                   | The age of the respondent who experienced these peaks                                                                                      |
| Group                                 | The group variables of the respondent you specified when creating the study                                                                |
| Type                                  | Type of the stimulus during which these GSR peaks were experienced: Stimulus, Scene, Scene (Fragment), Annotation, Annotation (Instance)   |
| Label                                 | The given name of the stimulus, scene and annotation                                                                                       |
| Start (ms)                            | The start time (in ms) of the certain stimulus type relative to the start of the study                                                     |
| Duration (ms)                         | The duration (in ms) of the certain stimulus type                                                                                          |
| Signal Duration (ms)                  | The duration (in ms) of the actual recorded signal without gaps (if there are gaps longer than 4 seconds)                                  |
| Parent Stimulus                       | The name of the stimulus where the scene was created from; the name of the stimulus/scene where the annotation was created from            |
| Has Peaks                             | Whether or not the respondent had any peaks (1) or none at all (0) during this certain stimulus type                                       |
| Peak Count                            | How many peaks the respondent had during this certain stimulus type                                                                        |
| Peaks Per Minute                      | The number of peaks the respondent had total during this certain stimulus type divided by the Signal Duration (ms), expressed as peaks/min |
| Average Peak Amplitude (microSiemens) | The average amplitude of detected peaks the respondent had during this certain stimulus type                                               |

## 2. Moment To Moment Statistics

The file shows the number of peaks moment by moment during a given stimulus or scene for each respondent. A separate file is created for each stimulus / scene. The information in here is most similar to the graph data shown in the aggregated peak data within iMotions.

***Note*****:** The number of peaks moment by moment has been counted by breaking the data **into bins with a certain length and overlap. Please refer to&#x20;*****here*****&#x20;for more description on the algorithm. However, the overlap of bins is not shown in the export file.**

| <p><strong>Header</strong><br></p> | **Explanation**                                                                                            |
| ---------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| Respondent                         | Respondent name                                                                                            |
| Device                             | <p>Name of the sensor used to collect the GSR data<br></p>                                                 |
| Flow Name                          | <p>User-defined name of the algorithm used to compute the GSR peak<br></p>                                 |
| First Bin (eg 1\[0-5s])            | Whether or not a peak occurred for this respondent in this bin (1 for yes, 0 for no)                       |
| Next Bin ...                       | The remaining bins will also be listed with whether or not a peak occurred for this respondent in this bin |

## 3. GSR Peak Table

This file lists every peak that was detected in the entire study, across both stimulus / scenes and respondents. Each row has the information about a single peak. This is useful for aggregation of peak information across groups, stimuli, etc.

You can find information on the data such as unit, descriptions from the METADATA part on the top of the file.

| **Header**                         | <p><strong>Explanation</strong><br></p>                                                                                                                                     |
| ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Study Name                         | The name of the study                                                                                                                                                       |
| Respondent Name                    | The respondent who experienced this peak                                                                                                                                    |
| Respondent Gender                  | The gender of the respondent who experienced this peak                                                                                                                      |
| Respondent Age                     | The age of the respondent who experienced this peak                                                                                                                         |
| Respondent Group                   | The group variables of the respondent you specified when creating the study                                                                                                 |
| Stimulus Label                     | Name of the stimulus during which this peak was experienced                                                                                                                 |
| <p>Stimulus Start<br></p>          | <p>The start time (in ms) of the certain stimulus type relative to the start of the study<br></p>                                                                           |
| <p>Stimulus Duration<br></p>       | <p>The duration (in ms) of the certain stimulus type<br></p>                                                                                                                |
| Peak Index                         | <p>Peak index, counting from the start of the study<br></p>                                                                                                                 |
| <p>Peak Index by Stimulus<br></p>  | <p>Peak index, counting from the start of the stimulus<br></p>                                                                                                              |
| <p>Peak Onset Time<br></p>         | <p>Onset time of the peak, i.e. the time where the 'Phasic Signal' went above the selected onset threshold (relative to the start of the study)<br></p>                     |
| <p>Peak Time<br></p>               | <p>Time of the peak, i.e. the time where the maximum value of the 'GSR Interpolated' signal was reached (relative to the start of the study)<br></p>                        |
| <p>Peak Offset Time<br></p>        | <p>Offset time of the peak, i.e. the time where the 'Phasic Signal' went below the selected offset threshold (relative to the start of the study)<br></p>                   |
| <p>Peak Amplitude<br></p>          | <p>Amplitude of the peak, i.e. the difference between the maximum value of the 'GSR Interpolated' signal during the peak and its value at the onset.<br></p>                |
| <p>Device<br></p>                  | <p>Name of the sensor used to collect the GSR data<br></p>                                                                                                                  |
| <p>Flow Name<br></p>               | <p>User-defined name of the algorithm used to compute the GSR peak<br></p>                                                                                                  |
| <p>M2M Bin<br></p>                 | <p>Time bin into which each peak fell (relative to stimulus start). Note that, based on the selected length and overlap of bins, a peak may belong to multiple bins<br></p> |
| Scene Names (defined by user)      | If enabled, indicates when Scene 'Scene Name' was active on its parent stimulus (indicated as number "1")                                                                   |
| Annotation Names (defined by user) | If enabled, indicates when Annotation 'Annotation Name' was active (indicated as number "1")                                                                                |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.imotions.com/lab/exports/r-processed-exports/export-r-processed-gsr-files.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
