Exercises

Debug the summary function my.summary in the last section so that the trimmed mean returns the correct result.

HINT: Notice what sort does to missing values.

sort(c(5, 1, NA, NA, 2))

results matching ""

    No results matching ""