1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Introduction to Writing Functions in R

Connected

अभ्यास

Passing arguments with ...

Rather than explicitly giving calc_harmonic_mean() and na.rm argument, you can use ... to simply "pass other arguments" to mean().

The dplyr package is loaded.

निर्देश 1/2

undefined XP
    1
    2
  • Replace the na.rm argument with ... in the signature and body of calc_harmonic_mean().