Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Miscellaneous R functions, R report templates, and complete example R analysis scripts in Quarto and RMarkdown

NotificationsYou must be signed in to change notification settings

harrelfe/rscripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

R Scripts: Templates, Examples of Analyses usingknitr withRmarkdown orLaTeX, InteractiveRStudio Demonstrations |Contents Directory

This is for use with the R functiongetRs in the RHmisc package for listing available scripts, downloading a selected script, and opening it in the RStudio script editor window.

The special filecontents.md lists all the available files and short descriptions for them. It should not be edited, as it is auto-generated bycreateContents.r.contents.md is used whengetRs is called with no arguments, to give the user a list of available scripts and their descriptions.

TheRmarkdown 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 theHmisc package'sknitrSet function. When running Rmarkdown, callknitrSet(lang='markdown').knitrSet gets rid of ## at the start of R output lines, and makes it easy to specify things like figure sizes inknitr chunk headers. It also causes annoying messages such as those generated from attaching R packages to be put in a separate filemessages.txt rather than in the report.

contents.md is generated from titles, major and minor categories, and types (R, R Markdown) that are at the top of each script. R Markdown scripts must have suffixRmd and have the following information between lines containing--- and after theoutput: section:major, andminor (optional). Scripts that fall under multiple categories have those category descriptions separated by semicolons. Seedescriptives.Rmd for an example. Regular R scripts must have suffixr and have the following in the top lines of the script (again,minor is optional):

# title: Title of Script with Purpose, etc.# major: major category 1; major category 2 ...# minor: minor category 1; minor category 2 ...

Seeintroda.r for an example.

Some possible values for major categories are listed below.

Major CategoryComments
curve fitting
descriptive statistics
graphics
statistical pitfalls
introductionIntroduction to R
regression modeling
statistical tests
ABDProblems fromAnalysis of Biological Data, 2nd edition, by Whitlock and Schluter

Some possible values for minor categories are listed below.

Minor CategoryComments
ordinary least squaresLinear Model
unadjusted comparisons
categorization

To request the addition of new categories open an issue for this GitHub project.

About

Miscellaneous R functions, R report templates, and complete example R analysis scripts in Quarto and RMarkdown

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp