變更文字片段的格式
如同影片中剛示範的,RMarkdown 還有 粗體 與 斜體 等格式選項。現在就把它們用在你 RMarkdown 報告的第一段吧。
本練習屬於課程
在 Tidyverse 中以資料溝通
練習說明
- 將第一句中的
"International Labour Organization"設為 粗體,但要注意不要把「The」也一起加粗。 - 把第一句中的「data sets」變成連結,連到
http://www.ilo.org/global/statistics-and-databases/lang--en/index.htm - 在摘要中,將
"the reduction in weekly working hours"以 斜體 強調。
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
{"my_document.Rmd":"---\ntitle: \"The reduction in weekly working hours in Europe\" \nsubtitle: \"Looking at the development between 1996 and 2006\"\nauthor: \"Insert your name here\"\noutput: html_document\n---\n\n## Summary \n\nThe International Labour Organization (ILO) has many data sets on working conditions. For example, one can look at how weekly working hours have been decreasing in many countries of the world, while monetary compensation has risen. In this report, the reduction in weekly working hours in European countries is analysed, and a comparison between 1996 and 2006 is made. All analysed countries have seen a decrease in weekly working hours since 1996 – some more than others.\n\n## Preparations \n\nThis is where you will load the necessary R packages.\n\n## Analysis\n\n### Data\n\nThis is where you will load the data. \n\n### Preprocessing\n\nThis is where you will preprocess the data.\n\n### Results\n\nThis is where you will plot the data.\n\n\n"}