Coder Social home page Coder Social logo

r-resources's Introduction

R Resources

A place to share useful resources on all things R ๐Ÿ“š

Contents:

  • Intro to R
  • R Style Guide
  • R Guidance for PHI
  • SPC Run Charts
  • SPC XmR Charts
  • Using SMRA with R
  • Setup to create PDF documents with RMarkdown
  • A list of recommended packages

Using R in PHI: R Style Guide

As part of the Transforming Publishing Programme work we have put together an R style guide for analysts in order to ensure that our R code is readable, shareable and reusable. We consider this to be an evolving guide to how R code should be written within PHI. It is designed to allow enough flexibility for analysts working on different projects, while maintaining consistency across the organisation and ensuring that code can be easily shared.

R Guidance for PHI

You can view the R Guidance for PHI document as an html at https://Public-Health-Scotland.github.io/R-Resources/R_Guidance_for_PHI.html

The R markdown code is also available on this repository under R_Guidance_for_PHI.Rmd. This guidance is intended to be a live document and anyone is able to update it with new features that will be useful for analysts in PHI. If you want to update this document, please create your own branch from master and raise a pull request. If this document is updated then you will need to upload a new html file. Once the new file has been uploaded the url above will automatically update.

To upload the new html file, you need to perform the following steps:

  • Knit the .Rmd file to html output
  • Upload the new R_Guidance_for_PHI.html and R_Guidance_for_PHI.Rmd files to your branch - uploading these files will overwrite the current files listed in the branch
  • Once these files have been merged into the master branch the url above will automatically update with any changes

r-resources's People

Contributors

jvillacampa avatar calumpurdie avatar alan-y avatar ekm87 avatar annahprice avatar jackhannah95 avatar davidc92 avatar rmccreath avatar tina815 avatar roisinf avatar moohan avatar terrymclaughlin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.