> 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/analysis/signal-processing-r-notebooks/adding-the-same-r-notebook-multiple-times-to-an-analysis.md).

# Adding the same R-notebook multiple times to an Analysis

Add the same R notebook more than once to an analysis, for example for several devices or parameter sets, by giving each active flow a unique name.

*This article describes how you can add the same R-notebook multiple times to one analysis by giving each active flow a unique name.*

You can add the same notebook multiple times to the same analysis because

(1) you have multiple devices of the same kind (for example multiple Shimmer GSR devices)

(2) you want to directly compare different parameters on the same notebook (for example different cut-off frequencies for the [Signal Quality R-notebook](https://help.imotions.com/lab/analysis/eda-gsr/gsr-r-notebooks-gsr-signal-quality.md)).

In order to do so, you have to name **each active flow with a unique name otherwise the R-notebook will be added to the Active Flow but not executed.**

So when you choose the R-notebook a second (or consecutive) time, the flow name will have a red check box around it and advise you to change the name to a unique name (different from the already added flow names).

![Active\_Flow.jpg](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-95290e5ddc585bc0cb8e3001984c1250152d4ef8%2Fdbeffb9cf2_active_flow-1-.webp?alt=media)

Once the name is unique, the Notebook is successfully added and will be executed.

![Active\_Flow2.jpg](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-0afaec822d785ecd59c87a0e6cd4efe90e627256%2Fc31519c195_active_flow2.webp?alt=media)

You can then see all the executed R-notebooks and calculated metrics in the Replay and export them accordingly.


---

# 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/analysis/signal-processing-r-notebooks/adding-the-same-r-notebook-multiple-times-to-an-analysis.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.
