Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Organizing Experimental Data | Getting Started with R for Biology
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
R for Biologists and Bioinformatics
SectionΒ 1. ChapterΒ 4
single

single

bookChallenge: Organizing Experimental Data

Swipe to show menu

Task

Swipe to start coding

Create a function to organize and filter data from a biological experiment using a data frame.

  • Create a data frame with columns "SampleID", "Treatment", and "Outcome", and add at least five rows of sample data.
  • Filter the data frame to include only samples with the "DrugA" treatment.
  • Filter the data frame to include only samples where the "Outcome" is "Alive".
  • Assign the original data frame and both filtered data frames to variables named df1, df2, and df3, respectively.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 4
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

some-alt