Anyone else use R for data analysis?

Many of my notes deal with R code, statistical methods, and the subjects that I’m analyzing (environmental science). Theory, application, tips, and examples are interlinked, so Zettelkasten seems like a good approach for thinking through it. R also support a similar flavor of Markdown, complete with LaTeX math and folding, so Obsidian seems like a good fit for maintaining my knowledge base!

Going from Obsidian to R Studio, the only issues I’ve run into are

  • There needs be a blank line before headers, block quotes, bullet points, and lists, or they won’t render
  • Embedded images are supported ![caption](image.jpg), but you need to copy the images to the R project folder, and may need to edit the relative path if you’ve put them in a subfolder ![caption](images/image.jpg)
  • Double bracket links and hashtags can’t be used for navigation, but don’t break anything. Just need to do a search and replace to clean them up.
  • Transclusion won’t work
  • Footnotes are not supported

Going from R Studio to Obsidian

  • embedded images need to be copied to the attachments folder, and relative path corrected
  • Code blocks are a little harder to read without syntax highlighting
  • yaml header displays as a level 1 heading

For writing a report or academic paper, a possible workflow is to assemble an outline in Obsidian with relevant background info, citations, and some generic code snippets I think might come in handy. The results section would get fleshed out in R Studio, as I work with the data.

7 Likes

To answer your question, I use R quite a bit. But I’m still evaluating Obsidian.

One other point, I footnotes are allowed in Rmarkdown.^[See Sec. 2.5.1 in R Markdown: The Definitive Guide].

1 Like

hi comandra,

i’m also working in environmental science and also depend heavily on R for data analysis. i dug into the whole obsidian/zettelkasten universe earlier this year only.

i was wondering when reading your question about the file-links - are you separating your rstudio projects and your obsidian vault?

at the moment i’m doing so, but as the vault also contains information related to the project that the RStudio-Analysis is based in, I’m noticing more and more that the division of information of those two is not helpful for keeping the overview. my compromise at the moment looks like this: (semi-automatically) synchronizing my Rstudio-“Results/Plot”-folder to the Obisidian vault to make it possible to embed plots in notes with the proper file path.

1 Like