Hello and welcome to the R for healthcare website. This site contains an ever growing set of training materials relevant for the use of the R language by people working in and around healthcare.
This set of resources is something that healthcare analysts will find particularly useful as it will provide you with the skills required to undertake and automate those analytics tasks you would normally do in spreadsheet programmes such as Excel.
If you have any suggestions for training topics or feedback on the site content please use the contact form which can be found here
Introductory presentation
Download the presentation here
The introductory presentation contains information about:
- What is R?
- Uses of R
- Downloading and installing R
- Downloading and installing R Studio
- Familiarisation with the R Studio environment
- Packages and their uses
- R programming conventions
Training contents
- Basic functionality
- Data types and coercion
- Data structures and conversion
- Sequence generation and replication
- Vector arithmetic
- Unique values
- Array sizes
- String concatenation and splitting
- IF statements with relational and logical operators
- Reading from and writing to files
- Subscripting and subsetting
- Merging and appending data
- Sorting data
- Working with dates and times
- Tabulation
- For and while loops
- The apply family
- User defined functions
- User defined functions – advanced example
- Exercise 1
- Exercise 1 solution
- Plotting
- Statistics
- Descriptive statistics (psych package)
- T-tests
- Correlations and linear regression
- Statistical process control
- Principal component analyses
- Exercise 2
- Exercise 2 solution
- Using git for code sharing