0

How can I write the following in correct R syntax?

boxplot(myCsvData$time **WHERE/IF** condition == "baseline")

Im struggling with the if condition. Thanks a lot for any answers!

slamballais
  • 3,161
  • 3
  • 18
  • 29
  • 1
    Welcome. You need to explain what you are trying to do before anyone can help you. Please also include a reproducible example of your issue - take a moment to read [this post](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example). Thanks. – user438383 Jun 05 '21 at 15:50

1 Answers1

0

If I understand you right, what you want is:

boxplot(myCsvData$time[myCsvData$condition == "baseline"])
ktiu
  • 2,606
  • 6
  • 20