# 1 Introduction

This book provides an introduction to R and also serves as a first course in the study of experimental design and applied statistical analysis. We only assume a basic understanding of statistics, but no prior knowledge of R.

The first few sections of this book will guide you through the installation of R and RMarkdown, and introduce you to the syntax of R and RMarkdown, functions, data types, and basic data visualization. We will then review statistical concepts needed and discuss experiment design, data collection, how to import and export data, and data cleaning. Finally, we introduce a range of commonly used tests and analyses and learn how to perform them using R.

Statistics are used to answer questions that a non-expert might bring to us. We therefor place great emphasis on producing professional looking reports, interpreting any results correctly, and communicating our conclusions clearly without using technical jargon.

You cannot learn how to “do statistics” by just reading this book, statistics need practice. You should replicate any code and examples, work the exercises, and access and study the data sets and sample code.

Any files I reference in the book are available online, organized by chapter.

## 1.1 How to get help

There are many ways you can get help with anything R related:

- Use the
`Help`

buttons in windows (1) and (4), - Use the reference sheets for R, plotting, and RMarkdown that are included in Chapter 19
- Google it. It works quite well, if you type in your questions and then use one of the many forums available to you, such as https://community.rstudio.com/t/welcome-to-the-rstudio-community/8 or https://stackoverflow.com/search?q= .

If you need help with statistics, I recommend

- Mathematical Statistics with Resampling and R by Laura Chihara and Tim Hesterberg (Wiley)
- Modern Mathematical Statistics by Edward Dudewicz and Satyan Mishra (Wiley)

Of course, you could always ask me :)