CPDSE CPDSE CPDSE
  • Home
  • Topics covered
    • Getting Started

    • Data Handling
    • Descriptive Statistics
    • Visualization
  • Functions
    • All Functions

    • Import & Create
    • read_csv( )
    • tibble( )

    • Transform
    • mutate( )

    • Report
    • cat( )
    • round( )
    • signif( )
  • Glossary
  • Coding Conventions

Basic R for Pharmacy

R for pharmaceutical sciences practicals. Written for learners in plain language, tidyverse style, and with pharmacy examples.

Get Started Browse Functions

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.

🔬

Hypothesis Testing

t-tests, chi-square, and Mann–Whitney tests for clinical data.

📐

Regression

Understand dose–response relationships with linear and logistic regression.


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.

Center for Pharmaceutical Data Science Education

Built with Quarto and webR

© CPDSE 2026