Data Communication
Learn how to combine your code, results, and prose in one document
Be introduced to markdown
A simple and easy-to-use markup language you can use to format your document
## Markdown
*A simple and easy-to-use markup language you can use to format your document*
You will need to know some markdown!
Code chunks start with ```{r}
and ends with ```
:
You can control how these code chunks render and are displayed using code chunks:
You can set default chunk options in the YAML:
You will often want to reference numbers or results in your prose:
You include R code directly in your prose using the expression: `r`. For example:
Renders:
There are 234 observations in our data.
Reminder
In the final session, you will apply the skills you will learn over the next few days to a problem that interests you. To prepare for this, you need to find a data set that:
Is relevant to your research interests,
Contains continuous and discrete variables.
In case you are having some trouble:
Americanists can check out the American National Election Studies surveys.
Comparativists can check out Varieties of Democracy.
IR theorists can check out UCDP events data sets.