From 40170339c216b7cc34041b5b8cdf18bc5f738c97 Mon Sep 17 00:00:00 2001 From: junos Date: Mon, 3 Jul 2023 14:28:28 +0200 Subject: [PATCH] Add R project and sample Markdown notebook. --- .gitignore | 1 + statistical_analysis/scale_reliability.rmd | 22 ++++++++++++++++++++++ straw2analysis.Rproj | 16 ++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 statistical_analysis/scale_reliability.rmd create mode 100644 straw2analysis.Rproj diff --git a/.gitignore b/.gitignore index c9aa8a0..1c6594d 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,4 @@ __pycache__/ /presentation/*.nb.html presentation/event_stressful_detection_half_loso.csv presentation/event_stressful_detection_loso.csv +/statistical_analysis/scale_reliability.nb.html diff --git a/statistical_analysis/scale_reliability.rmd b/statistical_analysis/scale_reliability.rmd new file mode 100644 index 0000000..6084838 --- /dev/null +++ b/statistical_analysis/scale_reliability.rmd @@ -0,0 +1,22 @@ +--- +title: "R Notebook" +output: html_notebook +--- + +The [R plugin](https://www.jetbrains.com/help/pycharm/r-plugin-support.html) for IntelliJ-based IDEs provides +handy capabilities to work with the [R Markdown](https://www.jetbrains.com/help/pycharm/r-markdown.html) files. +To [add](https://www.jetbrains.com/help/pycharm/r-markdown.html#add-code-chunk) a new R chunk, +position the caret at any line or the code chunk, then click "+". + +The code chunk appears: +```{r} +``` + +Type any R code in the chunk, for example: +```{r} +mycars <- within(mtcars, { cyl <- ordered(cyl) }) +mycars +``` + +Now, click the **Run** button on the chunk toolbar to [execute](https://www.jetbrains.com/help/pycharm/r-markdown.html#run-r-code) the chunk code. The result should be placed under the chunk. +Click the **Knit and Open Document** to build and preview an output. diff --git a/straw2analysis.Rproj b/straw2analysis.Rproj new file mode 100644 index 0000000..bf7fccb --- /dev/null +++ b/straw2analysis.Rproj @@ -0,0 +1,16 @@ +Version: 1.0 + +RestoreWorkspace: Default +SaveWorkspace: Default +AlwaysSaveHistory: Default + +EnableCodeIndexing: Yes +UseSpacesForTab: No +NumSpacesForTab: 4 +Encoding: UTF-8 + +RnwWeave: Sweave +LaTeX: XeLaTeX + +AutoAppendNewline: Yes +StripTrailingWhitespace: Yes