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

Was this helpful?

  1. Week 2
  2. R Programming

Subsetting

This page takes an estimated 35 minutes to complete.

PreviousReading DataNextControl Structures

Last updated 3 years ago

Was this helpful?

Subsetting in R is a useful indexing feature for accessing object elements. It can be used to select and filter variables and observations.

Subsetting in R

To start learning about subsetting, watch the following videos from the Coursera page:

swirl Exercises

Now, complete swirl Lesson 6: Subsetting Vectors, 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.

Subsetting - Basics
Subsetting - Lists
Subsetting - Matrices
Subsetting - Partial Matching
Subsetting - Removing Missing Values
Vectorized Operations