A programmer builds a _________ to avoid repeating the same task or reduce complexity.
(a) Function
(b) Package
(c) Code
(d) Console
The question was posed to me during an internship interview.
The doubt is from Functions topic in division Control Structures, Functions, Scoping Rules, Loop Functions and Debugging of R Programming