Module # 12 R Markdown

 

Instructions:

  1. Create a new Markdown file using R programming.
  2. Focus specifically on the main functions you are developing for your final project.
  3. Describe each function in detail within the Markdown file. Explain the purpose, inputs, outputs, and any additional relevant information.
  4. Utilize Markdown formatting to present your content in a clear and organized manner.
  5. Include code snippets or examples within the Markdown file to illustrate how the functions work.

GitHub and Documentation:

  1. Post your Markdown file on GitHub.
  2. Use the Markdown file as a means to document and showcase your functions for the final project.
  3. Consider including any insights, challenges, or improvements you encountered during the development process in the Markdown file.

Submission:

  1. Submit the link to your GitHub repository containing the Markdown file.

Please note that this assignment will not only help you solidify your understanding of R programming but also improve your skills in documenting code using Markdown. If you have any further questions or concerns, please don't hesitate to reach out.

Last note: please add a blog post to this assignment. The blog should explain what R Markdown helps you accomplish and describe what you have created in this file.






The first thing I performed was create a R Markdown file. This was relatively easy as all I had to do instead of clicking " R Script" was "R Markdown". 



I added a few chunks such as "Load Packages", "Import and load Dataset", and "Inspect and Clean Data". I believe this is a good start to my project. The Load Packages section allows me to store any library packages I find useful to my project. The import and load dataset section is where I will load in the dataset. From the screenshot above, you can see that I already began that step. Since this is the preliminary stage of the project, I still have to consider what variables will be useful to the overall project. The next section, Inspect and Clean Data, is where more coding will be utilized. This is where I really have to consider the goals of this assignment and what I really need to focus on. 


Below are some example functions that I used in the "Inspect and Clean Data" chunk. The str() function provides information such as class, length, and content of each column. The summary function provides a summary for each variable. The head() and tail() function provide the first six and last six rows of the dataset. I also used one more function, anyNA(), which informed me that there are no missing values in the dataset. This lets me know I do not have to worry as much about cleaning and removing missing data. 
















Overall, I think R Markdown is the best format file in R. I have used it before in other classes and I believe it is much better than a regular R script. When you finish an assignment and "Knit" the file, it is much more concise and easier to read than a R script. I am excited to utilize this file format for my final project as it will provide structure, simplicity, and clarity for my work. 


My github

or 

https://github.com/AlenjaksAbraham/LIS4370.git


To see code look at Module 12.Rmd


Comments

Popular posts from this blog

Module # 7 R Object: S3 vs. S4 assignment

Module # 10 Building your own R package

Module # 9 Visualization in R