<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>R | Alex Hildebrandt</title><link>https://alexhildebrandt.de/tag/r/</link><atom:link href="https://alexhildebrandt.de/tag/r/index.xml" rel="self" type="application/rss+xml"/><description>R</description><generator>Source Themes Academic (https://sourcethemes.com/academic/)</generator><language>en-us</language><lastBuildDate>Wed, 19 Aug 2020 00:00:00 +0000</lastBuildDate><image><url>https://alexhildebrandt.de/images/icon_hu4c6883ab8262edd297260ea54e77bd73_39834_512x512_fill_lanczos_center_2.png</url><title>R</title><link>https://alexhildebrandt.de/tag/r/</link></image><item><title>R blogdown</title><link>https://alexhildebrandt.de/howto_posts/r_4_blogdown/</link><pubDate>Wed, 19 Aug 2020 00:00:00 +0000</pubDate><guid>https://alexhildebrandt.de/howto_posts/r_4_blogdown/</guid><description>&lt;h3 id="r-blogdown-package">R blogdown package:&lt;/h3>
&lt;p>With R blodown you can create websites using R Markdown documetns and static HUGO templates.
&lt;a href="https://bookdown.org/yihui/blogdown/" target="_blank" rel="noopener">&lt;strong>This&lt;/strong>&lt;/a> book is a good starting point to get a feeling for the folder structure of a R blogdown project and the configuration of the important files. One chapter is about deployment with &lt;em>Netlify&lt;/em> and &lt;em>GitHub&lt;/em>. So there is all information you need to generate a online available website.&lt;/p>
&lt;p>This site is also build with the R blogdown package. I used the Academic Theme.
&lt;a href="https://wowchemy.com/docs/" target="_blank" rel="noopener">&lt;strong>Here&lt;/strong>&lt;/a> you will find the Documentation.&lt;/p>
&lt;h3 id="academic-theme">Academic theme&lt;/h3>
&lt;p>The Academic theme includes a website builder which is called &lt;em>Wowchemy&lt;/em> and is open source. This website builder has several preconfigured widgets that you can use to decorate and personalize your site.&lt;/p>
&lt;ul>
&lt;li>You can create
&lt;a href="https://wowchemy.com/docs/content/blog-posts/" target="_blank" rel="noopener">&lt;strong>blog posts&lt;/strong>&lt;/a>&lt;/li>
&lt;li>Use the
&lt;a href="https://wowchemy.com/docs/content/authors/" target="_blank" rel="noopener">&lt;strong>contact&lt;/strong>&lt;/a> widget to indruduce yourself&lt;/li>
&lt;li>Use all kinds of
&lt;a href="https://wowchemy.com/docs/content/writing-markdown-latex/" target="_blank" rel="noopener">&lt;strong>page elements&lt;/strong>&lt;/a> to create content on a site&lt;/li>
&lt;/ul></description></item><item><title>R How to start and where to look</title><link>https://alexhildebrandt.de/howto_posts/r_1_start/</link><pubDate>Wed, 19 Aug 2020 00:00:00 +0000</pubDate><guid>https://alexhildebrandt.de/howto_posts/r_1_start/</guid><description>&lt;p>&lt;strong>R how to start and where to look:&lt;/strong>&lt;/p>
&lt;p>R is a programming language for statistical computing. Read the
&lt;a href="https://en.wikipedia.org/wiki/R_%28programming_language%29" target="_blank" rel="noopener">&lt;strong>wiki&lt;/strong>&lt;/a> entry for detailed information about the history of origin and the possibilies you have with it.&lt;/p>
&lt;p>Power of R is given by user-created packages. Some of them are here explained. These enable you, among other things, to calculate all possible statistical methods. Present results in graphs. Build interactive applications that can be used online or locally, or even create websites.&lt;/p>
&lt;p>First you need to install R. It runs on UNIX platforms, Windows and MacOS.
&lt;a href="https://www.r-project.org/" target="_blank" rel="noopener">&lt;strong>Here&lt;/strong>&lt;/a> you will find the official site were you can choose the appropriate download file for your system. There are also references to documentation and useful links.&lt;/p>
&lt;p>After installation you can use R on your command prompt but at the beginning I recommend to use
&lt;a href="https://rstudio.com/products/rstudio/download/" target="_blank" rel="noopener">&lt;strong>RStudio&lt;/strong>&lt;/a>. It is possible to purchase different licenses, but the free version is sufficient to start with. RStudio is an IDE (&lt;strong>integrated development environment&lt;/strong>) and available as a desktop and a server application. With RStudio you can manage files, install packages and a &lt;em>Help&lt;/em> tab gives you information to all commands and packages which are listed in the R documentation. You can plot graphs and see them in the viewer directly. It is also possible to manage projects in github.&lt;/p>
&lt;p>There are some
&lt;a href="https://rstudio.com/resources/books/" target="_blank" rel="noopener">&lt;strong>books&lt;/strong>&lt;/a> that make R available for different use cases. If you plan to use r to analyze data in a scientific context, I recommend this
&lt;a href="https://r4ds.had.co.nz/" target="_blank" rel="noopener">&lt;strong>book&lt;/strong>&lt;/a>.&lt;/p></description></item><item><title>R Markdown</title><link>https://alexhildebrandt.de/howto_posts/r_3_markdown/</link><pubDate>Wed, 19 Aug 2020 00:00:00 +0000</pubDate><guid>https://alexhildebrandt.de/howto_posts/r_3_markdown/</guid><description>&lt;h3 id="r-markdown">R Markdown:&lt;/h3>
&lt;p>R Markdown can be used to produce good looking documents, reports, presentations and dashboards. Thereby you can use muliple languages like R, Python adn SQL.
&lt;a href="https://rmarkdown.rstudio.com/" target="_blank" rel="noopener">&lt;strong>Here&lt;/strong>&lt;/a> is the official site.&lt;/p>
&lt;h3 id="cheat-sheet">Cheat Sheet&lt;/h3>
&lt;p>
&lt;a href="https://raw.githubusercontent.com/rstudio/cheatsheets/master/rmarkdown-2.0.pdf" target="_blank" rel="noopener">&lt;strong>Click here&lt;/strong>&lt;/a> to be forwarded to the R Markdown cheat sheet&lt;/p>
&lt;h3 id="producing-a-html-document-with-tabs">Producing a .html document with tabs&lt;/h3>
&lt;p>If you want to present your report as a .html file you can use tabs to structure the content.
&lt;img src="https://alexhildebrandt.de/R_pictures/rmarkdown_html_tabs.PNG" alt="Fig. 1. Content of HTML document structured with tabs.">&lt;/p>
&lt;p>This is the code for the rmarkdown file:&lt;/p>
&lt;pre>&lt;code>---
title: &amp;quot;structure your content with tabs&amp;quot;
subtitle: &amp;quot;&amp;quot;
author: &amp;quot;Author&amp;quot;
date: &amp;quot;`r format(Sys.time(), '%d %B, %Y')`&amp;quot;
output: html_document
---
### First Title of the report
## {.tabset}
### First Tab
**Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.**
***
### Second Tab
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
### Third tab
**Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.**
##{-}
### Second title of the report
## {.tabset}
### First tab
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
### Second tab
__Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.__
##{-}
&lt;/code>&lt;/pre></description></item><item><title>R Shiny</title><link>https://alexhildebrandt.de/howto_posts/r_2_shiny/</link><pubDate>Wed, 19 Aug 2020 00:00:00 +0000</pubDate><guid>https://alexhildebrandt.de/howto_posts/r_2_shiny/</guid><description>&lt;h3 id="shiny-r-package">Shiny R-package:&lt;/h3>
&lt;p>Shiny is a R package you can built with interactive apps. You can use them local or make them available online with the rshiny-server.
&lt;a href="https://shiny.rstudio.com/" target="_blank" rel="noopener">&lt;strong>Click here&lt;/strong>&lt;/a> to be forwarded to the official site. There you will find examples of shiny applications. Articles, Tutorials and references will help you to get started.&lt;/p>
&lt;h3 id="how-to-set-up-a-shiny-server">How to set up a shiny server:&lt;/h3>
&lt;p>
&lt;a href="https://www.linode.com/docs/guides/how-to-deploy-rshiny-server-on-ubuntu-and-debian/" target="_blank" rel="noopener">&lt;strong>Here&lt;/strong>&lt;/a> you will find the information is needed to install a rshiny-server on a ubuntu and debian system and how to make your shiny application available online. You can run them from you local ubuntu system or from a remote ubuntu system.&lt;/p>
&lt;h3 id="selmade-shiny-apps">Selmade shiny apps:&lt;/h3>
&lt;ul>
&lt;li>
&lt;a href="http://207.180.239.84:3838/shiny_app1/" target="_blank" rel="noopener">&lt;strong>Compare vectors with veccompare package&lt;/strong>&lt;/a>&lt;/li>
&lt;/ul>
&lt;h3 id="helpful-links">Helpful links:&lt;/h3></description></item></channel></rss>