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
  • Loop Functions in R
  • swirl Exercises
  • Congratulations!

Was this helpful?

  1. Week 3
  2. R Programming

Loop Functions

This page takes an estimated 1 hour to complete.

PreviousR ProgrammingNextBase Graphics

Last updated 3 years ago

Was this helpful?

Loop Functions in R

Loop functions are some of the most powerful functions in R. They are very easy to use, especially in an interactive setting, and make it possible do to a lot of work while writing less code.

To start learning about loop functions, watch the following videos from Coursera, and return here afterward:

These are the last videos from Coursera in this guide. However, you are encouraged to continue the course and finish it if you so choose.

swirl Exercises

To practice everything you just learned about loop functions, complete the following swirl lessons:

  1. swirl Lesson 10: lapply and sapply

  2. swirl Lesson 11: vapply and tapply

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.

Loop functions - lapply
Loop functions - apply
Loop functions - mapply
Loop functions - tapply