8000 GitHub - swatirane/rscripts: R scripts with templates and examples of analyses using knitr with Rmarkdown or LaTeX
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

swatirane/rscripts

 
 

Repository files navigation

rscripts

R Scripts: Templates, Examples of Analyses using knitr with Rmarkdown or LaTeX, Interactive RStudio Demonstrations

This is for use with the R function getRs (included in the .Rprofile file mentioned below) for auto-populating an RStudio script editor window with a script stored here. Windows users must install wget in order to access github because it uses https instead of http. Installation instructions as well as an attachment containing .Rprofile are here.

The special file contents.md lists all the available files and short descriptions for them. It should be edited whenever new scripts are added. contents.md is used when getRs is called with no arguments, to give the user a list of available scripts and their descriptions.

The Rmarkdown and LaTeX scripts included here use a template that makes the result part of a reproducible research process by documenting the versions of R and attached packages at the end of the report. They make use of the knitrSet function also defined in the .Rprofile. When running Rmarkdown, call knitrSet(lang='markdown'). knitrSet gets rid of ## at the start of R output lines, and makes it easy to specify things like figure sizes in knitr chunk headers. It also causes annoying messages such as those generated from attaching R packages to be put in a separate file messages.txt rather than in the report.

html output for some of the scripts may be viewed by clicking below.

|Script|

| descriptives | | lead-ols |

About

R scripts with templates and examples of analyses using knitr with Rmarkdown or LaTeX

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 99.7%
  • R 0.3%
0