# Basic Data Analysis with R (Scripts, Markdown & Dashboard)

**URL:** <https://forum.getodk.org/t/basic-data-analysis-with-r-scripts-markdown-dashboard/33544>\
**Category:** Showcase\
**Created:** [May 13, 2021, 11:05am UTC](https://forum.getodk.org/t/basic-data-analysis-with-r-scripts-markdown-dashboard/33544 "2021-05-13T11:05:00Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Florian\_May](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/florian_may/32/7758_2.png) [@Florian\_May](https://forum.getodk.org/u/Florian_May)\
**Post date:** [May 15, 2021, 7:49am UTC](https://forum.getodk.org/t/basic-data-analysis-with-r-scripts-markdown-dashboard/33544/3 "2021-05-15T07:49:52Z")

</div>

Great resources, thanks for posting these!

To get data directly from ODK Central into R, you can use the R package [ruODK](https://docs.ropensci.org/ruODK/).

Installing R, RStudio (or any other IDE), ruODK and its dependencies can be a hassle on corpo-bricked Windows machines. [urODK](https://github.com/dbca-wa/urODK), the companion package to [ruODK](https://docs.ropensci.org/ruODK/), provides a pre-built RStudio Server at [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/dbca-wa/urODK/master?urlpath=rstudio).

ruODK provides a template RMarkdown workbook with the basic "download and parse my data" workflow:

```auto
rmarkdown::draft("my_example.Rmd", "odata", package="ruODK")

```

The workbook contains instructions to configure ODK Central credentials, to download and parse your own data, and some initial insight and visualisations as a starting point for your own analysis.

In addition to the resources posted by @chrissyhroberts, [R for applied epidemiology and public health](https://epirhandbook.com/) looks useful.

Spatial data needs some special (spatial?) steps to visualise. Follow the worked examples of the [ruODK vignette "Spatial data"](https://docs.ropensci.org/ruODK/articles/spatial.html) to go from the three ODK types (geopoint, geotrace, geoshape) to native spatial objects in R.

If you write a paper or publication using ruODK, you can find the citation for ruODK [here](https://docs.ropensci.org/ruODK/authors.html) and for ODK [in this thread](https://forum.getodk.org/t/how-to-reference-odk/3893).

---

_[View the full topic](https://forum.getodk.org/t/basic-data-analysis-with-r-scripts-markdown-dashboard/33544)._
