Home / MCQ Bank / Computer
Computer Control Structures In R Programming

hat will be the output of the following R code? > centre <- function(x, type) { + switch(type, + mean = mean(x), + median = median(x), + trimmed = mean(x, trim = .1)) + } > x <- rcauchy(10) > centre(x, "mean")

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option D • gives mean with values depending on rcauchy values

Related Computer Questions

What will be the output of the following C code? (Assuming size of char = 1, int = 4, double = 8) #include <stdio.h> union utemp { int a; double b; char c; }u; int main() { u.c = 'A'; u.a = 1; printf("%d", sizeof(u)); } A ______ is a software program used to view Web pages. Which format can create a transparent image? Which of these is the metadata log? What is the purpose of the list() constructor in Python?