What Will Be The Output Of The Following R Codep Pre Langrsplus #460
What will be the output of the following R code?</p> <pre><code class="language-rsplus"> > printmessage <- function(x) { + if(x > 0) + print("x is greater than zero") + else + print("x is less than or equal to zero") + invisible(x) + } > printmessage(NA) </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs110 R Language. It can also be found in gs gs110 Control Structures, Functions, Scoping Rules, Loop Functions and Debugging - Dates and Times - Quiz No.1.