Skip to content

Instantly share code, notes, and snippets.

View tpemartin's full-sized avatar

Martin (Mau-Ting) Lin tpemartin

View GitHub Profile
library(glue)
a="你好嗎?"
b="我很好。"
glue(a)+b 
library(glue)
a="你好嗎?"
b="我很好。"
glue(a)+b 
library(glue)
a="你好嗎?"
b="我很好。"
glue(a)+b 
x <- letters
(numbers <- runif(8))
## [1] 0.5311923 0.2495347 0.5706632 0.4733050 0.1199680 0.2994991 0.9016199
## [8] 0.2551610
```{r ref.label="code1"}
```
x <- letters
(numbers <- runif(8))
## [1] 0.5595675 0.2635422 0.2650163 0.4265003 0.9763240 0.5208946 0.4382886
## [8] 0.1088837
title date output
R套件介紹:glue
4/8/2019
html_document

@tpemartin
tpemartin / example-r-markdown.rmd
Created March 28, 2017 22:59 — forked from jeromyanglim/example-r-markdown.rmd
Example of using R Markdown
This post examines the features of [R Markdown](http://www.rstudio.org/docs/authoring/using_markdown)
using [knitr](http://yihui.name/knitr/) in Rstudio 0.96.
This combination of tools provides an exciting improvement in usability for
[reproducible analysis](http://stats.stackexchange.com/a/15006/183).
Specifically, this post
(1) discusses getting started with R Markdown and `knitr` in Rstudio 0.96;
(2) provides a basic example of producing console output and plots using R Markdown;
(3) highlights several code chunk options such as caching and controlling how input and output is displayed;
(4) demonstrates use of standard Markdown notation as well as the extended features of formulas and tables; and
(5) discusses the implications of R Markdown.