Last updated: 2020-06-14

Checks: 1 1

Knit directory: R-codes/

This reproducible R Markdown analysis was created with workflowr (version 1.6.2). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.


The R Markdown file has unstaged changes. To know which version of the R Markdown file created these results, you’ll want to first commit it to the Git repo. If you’re still working on the analysis, you can ignore this warning. When you’re finished, you can run wflow_publish to commit the R Markdown file and build the HTML.

Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.

The results in this page were generated with repository version 7dd5779. See the Past versions tab to see a history of the changes made to the R Markdown and HTML files.

Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish or wflow_git_commit). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:


Ignored files:
    Ignored:    .RData
    Ignored:    .Rhistory
    Ignored:    .Rproj.user/

Unstaged changes:
    Modified:   analysis/index.Rmd

Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.


These are the previous versions of the repository in which changes were made to the R Markdown (analysis/index.Rmd) and HTML (docs/index.html) files. If you’ve configured a remote Git repository (see ?wflow_git_remote), click on the hyperlinks in the table below to view the files as they were in that past version.

File Version Author Date Message
Rmd 7dd5779 KaranSShakya 2020-06-13 citation info add
html 7dd5779 KaranSShakya 2020-06-13 citation info add
Rmd 8ee3b5d KaranSShakya 2020-05-27 duke’s linear regression site
html 8ee3b5d KaranSShakya 2020-05-27 duke’s linear regression site
Rmd d65de39 KaranSShakya 2020-05-21 small text update Index.
html d65de39 KaranSShakya 2020-05-21 small text update Index.
Rmd e1a5784 KaranSShakya 2020-05-19 link on all pages
html e1a5784 KaranSShakya 2020-05-19 link on all pages
Rmd a286ee6 KaranSShakya 2020-05-18 normal dist
html a286ee6 KaranSShakya 2020-05-18 normal dist
Rmd 27ba057 KaranSShakya 2020-05-17 update ggplots + data for it
html 27ba057 KaranSShakya 2020-05-17 update ggplots + data for it
Rmd 3ec85bd KaranSShakya 2020-05-16 building html pages and links
html 3ec85bd KaranSShakya 2020-05-16 building html pages and links
Rmd d927485 KaranSShakya 2020-05-16 GIT to R-Studio commits
html d927485 KaranSShakya 2020-05-16 GIT to R-Studio commits
Rmd df00bb8 KaranSShakya 2020-05-15 first r-codes GIT commit
html df00bb8 KaranSShakya 2020-05-15 first r-codes GIT commit
Rmd 11de46c KaranSShakya 2020-05-15 Start workflowr project.

R - Codes: Table of Content

  1. Base R Statistics
  2. Data Manipulation
  3. Data Visualization
  4. Regression
  5. Machine Learning
  6. GIT

  1. Linear Regression

This is a cheatsheet for R, built using past projects and online courses.


Citing R

To cite R:

R Core Team (2013). R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. URL http://www.R-project.org/.

To cite R-Studio:

RStudio Team (2020). RStudio: Integrated Development for R. RStudio, PBC, Boston, MA URL http://www.rstudio.com/.