• R Course
  • Preface
    • Notation within this book
  • 1 Installing R and Rstudio
    • 1.1 Windows installation R
    • 1.2 Installing RStudio
  • 2 Possibilities within the RStudio environment
    • 2.1 First steps with R
    • 2.2 R as a calculator
    • 2.3 The assignment operator
    • 2.4 Brief introduction to functions
    • 2.5 Advantages of RStudio
      • 2.5.1 The Environment screen
      • 2.5.2 The Files screen
      • 2.5.3 The Tab button
      • 2.5.4 Syntax highlighting
  • 3 Files and projects
    • 3.1 Files
    • 3.2 Projects
      • 3.2.1 Making a new project
      • 3.2.2 Creating an R project within an existing folder
  • 4 Installing and using packages (libraries)
    • 4.1 Option 1
    • 4.2 Option 2
    • 4.3 Updating packages/ libraries
    • 4.4 Using packages
    • 4.5 Tidyverse
  • 5 Data types and structures
    • 5.1 Objects
      • 5.1.1 Numeric
      • 5.1.2 Characters
      • 5.1.3 Logical
      • 5.1.4 Factor
    • 5.2 Structures
      • 5.2.1 Vector
      • 5.2.2 List
      • 5.2.3 Matrix
      • 5.2.4 Data frame
  • 6 Loading and saving data
    • 6.1 Loading data
    • 6.2 Saving data
  • 7 Indexing and data frames
    • 7.1 Indexing
      • 7.1.1 Vectors
      • 7.1.2 Matrices
      • 7.1.3 Lists
    • 7.2 Data frames and indexing data frames
      • 7.2.1 Indexing data frames
  • 8 Descriptive statistics
    • 8.1 Measures of central tendency
      • 8.1.1 Mean
      • 8.1.2 Median
    • 8.2 Measures of variability
      • 8.2.1 Standard deviation
      • 8.2.2 Variance
      • 8.2.3 Interquartile range
    • 8.3 Summary
    • 8.4 Functions and the apply functions
  • 9 T-Test
    • 9.1 Independent samples t-test
    • 9.2 One sample T-test
    • 9.3 Paired T-test
  • 10 Glm function for regression
    • 10.1 Linear regression
    • 10.2 Logistic regression
    • 10.3 Other types of regression
    • 10.4 Predict function
  • 11 Data visualization
    • 11.1 Graphics library
      • 11.1.1 Scatterplot
      • 11.1.2 Boxplot
      • 11.1.3 Histogram
      • 11.1.4 Bar chart
    • 11.2 Ggplot2
      • 11.2.1 Scatterplot
      • 11.2.2 Boxplot
      • 11.2.3 Histogram
      • 11.2.4 Bar chart
      • 11.2.5 Themes
  • Published with bookdown

Introduction

Introduction