Which function is used to select variables and observations from a given dataset?
(a) Subset()
(b) Sample()
(c) While()
(d) Signal()
This question was posed to me during an online exam.
My doubt is from Functions in division Control Structures, Functions, Scoping Rules, Loop Functions and Debugging of R Programming