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

Was this helpful?

  1. Week 2
  2. R Programming

Functions

This section takes an estimated 45 minutes to complete.

PreviousControl StructuresNextScoping Rules

Last updated 3 years ago

Was this helpful?

Functions play a critical role in any R program and you tend to write a lot of them while programming. This section focuses on functions in R.

Functions in R

To start, watch the following videos outlining the concept of functions in R:

swirl Exercises

Complete swirl Lesson 9: Functions, to solidify what you just learned, 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.

Your First R Function
Functions (part 1)
Functions (part 2)