보고서에 섹션 추가하기
이전에 보고서를 만들 때 사용할 Markdown 파일에, 보고서 작성을 위해 사용할 데이터셋 이름을 추가했어요. 이제 문서를 읽을 대상에게 데이터셋에 대한 추가 정보를 제공할 수 있도록, 헤더와 텍스트를 문서에 더해 보겠습니다.
이 연습은 강의의 일부입니다
R Markdown으로 보고서 만들기
연습 안내
- 보고서의
14번 줄에 두 개의 해시를 사용해 Datasets라는 헤더를 추가하세요. - 보고서의
16번 줄과23번 줄에 세 개의 해시를 사용해 각 데이터셋 이름인 Investment Annual Summary와 Investment Services Projects를 헤더로 지정하세요. - 보고서의
18번 줄과25번 줄 문장에 데이터셋 이름을 추가하고, 인라인 코드로 서식 지정하세요.
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
{"investment_report.Rmd":"---\ntitle: \"Investment Report\"\noutput: html_document\n---\n\n```{r data, include = FALSE}\nlibrary(readr)\n\ninvestment_annual_summary <- read_csv(\"https://assets.datacamp.com/production/repositories/5756/datasets/d0251f26117bbcf0ea96ac276555b9003f4f7372/investment_annual_summary.csv\")\ninvestment_services_projects <- read_csv(\"https://assets.datacamp.com/production/repositories/5756/datasets/78b002735b6f620df7f2767e63b76aaca317bf8d/investment_services_projects.csv\")\n```\n\n\n\n\n\n\nThe ___ dataset provides a summary of the dollars in millions provided to each region for each fiscal year, from 2012 to 2018.\n```{r}\ninvestment_annual_summary\n```\n\n\n\nThe ___ dataset provides information about each investment project from the 2012 to 2018 fiscal years. Information listed includes the project name, company name, sector, project status, and investment amounts.\n```{r}\ninvestment_services_projects \n```\n\n\n"}