अपने डॉक्यूमेंट को संरचना दें
अब से, आप पिछले अध्याय के अपने प्लॉट के साथ एक स्टेप-बाय-स्टेप RMarkdown रिपोर्ट बनाएँगे। पहला काम है सेक्शन हेडर के जरिए संरचना जोड़ना।
पी.एस.: ध्यान दें कि हेडर दर्शाने वाले चिन्ह/सिंबल और टेक्स्ट के बीच में एक स्पेस रखना अच्छी प्रैक्टिस है! इससे आपका Markdown सिंटैक्स साफ और पढ़ने में आसान रहता है।
यह अभ्यास पाठ्यक्रम का हिस्सा है
Tidyverse में डेटा के साथ संवाद
अभ्यास निर्देश
- इन पैराग्राफ़ों के सेक्शन टाइटल्स, जैसे "Summary", को उपयुक्त RMarkdown सिंटैक्स का उपयोग करके हेडर में बदलें।
- "Summary", "Preparations" और "Analysis" को second-level headers होना चाहिए, जबकि "Data", "Preprocessing" और "Results" को third-level headers होना चाहिए।
ऊपर बताए अनुसार अपने हेडर्स में स्पेस शामिल करके best practices का पालन करना न भूलें!
इंटरैक्टिव व्यावहारिक अभ्यास
इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।
{"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\nSummary\n\nThis is where you are going to quickly summarize what you did.\n\nPreparations\n\nThis is where you will load the necessary R packages.\n\nAnalysis\n\nData\n\nThis is where you will load the data. \n\nPreprocessing\n\nThis is where you will preprocess the data.\n\nResults\n\nThis is where you will plot the data.\n\n\n"}