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")
> centre <- function(x, type) {+ switch(type,+ mean = mean(x),+ median = median(x),+ trimmed = mean(x, trim = .1))+ }> x <- rcauchy(10)> centre(x, "mean")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") Correct Answer gives mean with values depending on rcauchy values
মোঃ আরিফুল ইসলাম
Feb 20, 2025