Daily Code Notes
Nov 15, 2018 2018-11-15T00:00:00-06:00
Nov. 2018
Nov. 15
- Insert picture to markdown.
1
2
| ![name](/assets/img/file.jpg)
![name](/assets/img/file.jpg)
|
- Tasks in markdown.
1
2
| - [ ] task to do
- [x] task done
|
- Add two plots in one graph.
1
2
3
| plot()
par(new = TRUE)
plot()
|
Nov. 16
- Add MathJax in order to compile $\LaTeX$ in markdown. Add the following script to the _includes/head.html
1
2
3
4
5
6
7
8
9
| <script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'],
inlineMath: [['$','$']]
}
});
</script>
<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>
|
- Align two pictures in one row in markdown. Do remember to insert a blank line above and below the code.
1
| ![picture1](address) | ![picture2](address)
|
Nov. 17
- Merge two data frames in R
1
| merge(x, y, by = "ID", all.x = TRUE, all.y = TRUE)
|