Find the error
Bu egzersiz
Intermediate R
kursunun bir parçasıdırEgzersiz talimatları
Fix the error by including code on the last line. Remember: you want to call mean() only once!
Uygulamalı interaktif egzersiz
Bu örnek kodu tamamlayarak bu egzersizi bitirin.
# Don't edit these two lines
vec1 <- c(1.5, 2.5, 8.4, 3.7, 6.3)
vec2 <- rev(vec1)
# Fix the error
mean(abs(vec1), abs(vec2))