We wrote this book to help new R users who have limited programming and statistical background. The main audience for this book will be medical epidemiologists, public health researchers and analysts, and post-graduate students in public health and epidemiology.

The book aims to help R users quickly make plots, explore and summarize data, and to perform regression analyses using the R programming language within the RStudio.

We used Rmarkdown to write this book using the bookdown package and for that we are truly grateful to the people who have developed this platform at RStudio and outside RStudio.

All in all, we hope you enjoy this book!


Kamarul Imran Musa


Wan Nor Arifin Wan Mansor


Tengku Muhammad Hanis Tengku Mokhtar


School of Medical Sciences,

Universiti Sains Malaysia