='op'>)</span> <span class='kw'>if</span> <span class='op'>(</span><span class='va'>method</span> <span class='op'>==</span> <span class='st'>"mean"</span><span class='op'>)</span> <span class='fu'><a href='https://rdrr.io/r/base/mean.html'>mean</a></span><span class='op'>(</span><span class='va'>instance</span><span class='op'>)</span> <span class='kw'>else</span> <span class='fu'><a href='https://rdrr.io/r/stats/median.html'>median</a></span><span class='op'>(</span><span class='va'>instance</span><span c