Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Data Science by (18.4k points)

My dataset consists of 4 different treatments and I am working on one of the treatments which are the control group. I am trying to use the subset function on the data, control, and other treatments.

To achieve it I have written the code 

ControlQ2<-subset(Q2, Treatment == "No_Suite")

My doubt is how to select No_Suite treatment?

1 Answer

0 votes
by (36.8k points)

As per my knowledge you need to use the below code to achieve your results.

ExceptControlQ2<-subset(Q2, Treatment != "No_Suite")

If you want to know more about the Data Science then do check out the following Data Science which will help you in understanding Data Science from scratch 

Browse Categories

...