Two vectors M and N are defined as M <- c(3, 2, 4) and N <- c(1, 2). What will be the output of vector Z that is defined as Z <- M*N.
(a) Z <- (3, 2, 4)
(b) Z <- (3, 6, 4)
(c) Z <- (3, 4, 5)
(d) Z <- (3, 4, 4)
I had been asked this question in quiz.
Question is from Functions in section Control Structures, Functions, Scoping Rules, Loop Functions and Debugging of R Programming