ABI OMICSS Guide 2021
  • Welcome
  • Week 1
    • Molecular Biology
      • Introduction to Biology
      • Macromolecules
      • DNA & RNA
      • Cell Division
    • Command-Line
      • Connecting to the Server
      • The Linux Command-Line For Beginners
      • The Bash Terminal
    • R Programming
      • Getting Started
      • The Basics
      • Data Types
    • Week 1 Exam
  • Week 2
    • Molecular Biology
      • DNA Proofreading And Repair
      • Telomeres and Telomerase
      • Genes
      • The One Gene, One Enzyme Hypothesis
      • Transcription
      • Translation
    • R Programming
      • Data Types (continuation)
      • Reading Data
      • Subsetting
      • Control Structures
      • Functions
      • Scoping Rules
    • Week 2 Exam
  • Week 3
    • Molecular Biology
      • tRNA and Ribosomes
      • Stages of Translation & Protein Targeting
      • Heredity
      • Probabilities In Genetics
    • R Programming
      • Loop Functions
      • Base Graphics
    • Statistics and R
      • The Basics
    • Week 3 Exam
  • Week 4
    • Molecular Biology
      • Interesting Cases of Genes
      • The Chromosomal Basis of Inheritance
      • Variation in Species
      • Phenotype plasticity
    • R Programming
      • Practice 2
      • Practice 3
    • Statistics and R
      • Random Variables and Probability Distributions
      • Central Limit Theorem
    • Week 4 Exam
  • Week 5
    • Statistics and R
      • Confidence Interval
      • Introduction to Inference
      • t-distribution and Comparing Means
      • Linear Models
    • Experimental Techniques
      • Polymerase Chain Reaction (PCR)
      • Gel Electrophoresis
      • Sanger Sequencing
      • NGS Sequencing
    • Week 5 Exam
  • Week 6
    • Statistics and R
      • Power
      • ANOVA
      • Covariance and Correlation
    • NGS
      • Basic Unix Commands
      • Sequences and Genomic Features
      • FastQC
      • Practice Exercises
    • Week 6 Exam
  • Week 7
    • Statistics and R
      • Monte Carlo Simulation
      • Exploratory Data Analysis
      • Linear Regression
    • NGS
      • BEDtools
      • Alignment and Sequence Variation
      • Integrated Genomics Viewer
    • Week 7 Exam
  • Week 8
    • NGS
      • Variant Calling With GATK
      • Practice 1
    • Week 8 Exam
  • Module Syllabi
  • Additional Resources
  • Conclusion
Powered by GitBook
On this page
  • Control Structures in R
  • swirl Exercises
  • Congratulations!

Was this helpful?

  1. Week 2
  2. R Programming

Control Structures

This page takes an estimated 30 minutes to complete.

PreviousSubsettingNextFunctions

Last updated 3 years ago

Was this helpful?

Control structures in R allow you to control the flow of an R program and are very similar to the control structures that you might see in other types of programming languages.

Control Structures in R

To get a hang of control structures, watch the following videos:

swirl Exercises

As for swirl, complete swirl Lesson 8: Logic, and return here afterward.

Congratulations!

If you made it here, then congratulations! You have successfully completed this section. Move to the next portion of the guide with the arrow buttons below.

Control Structures - Introduction
Control Structures - If-else
Control Structures - For loops
Control Structures - While loops
Control Structures - Repeat, Next, Break