Basic R for Pharmacy
R for pharmaceutical sciences practicals. Written for learners in plain language, tidyverse style, and with pharmacy examples.
Topics covered
Getting Started
Set up R and RStudio, and run your very first lines of code.
Data Handling
Import spreadsheets, tidy messy data, and select the rows and columns you need.
Visualization
Create plots with ggplot2.
Descriptive Statistics
Summarise your data: means, medians, standard deviations, and more.
How to read a function page
| Section | What you’ll find |
|---|---|
| Required Library | What library is needed to use the function |
| Syntax | How to use the function |
| Argument Overview | Relevant arguments explained |
| Examples | Examples for how to use the function with different arguments |
TipRun Code Online
Many code blocks on this site are interactive. Click Run Code to execute them right here in your browser — no R or RStudio installation needed.