Skip to content
Prev 307066 / 398506 Next

Calculating the mean in one column with empty cells

Hi

see inline
mean(dataSet2$ac_60d_4d_after_ann, na.rm=TRUE)

shall suffice.

 But the output was different to the calculation I died in Microsoft
Hm. I am also sometimes dying from Excel performance.

There could be 2 options:
Excel is wrong
You did not have transferred values from Excel to R correctly, they are screwed somehow.

Which one is true is difficult to decide based on information you revealed.

Regards
Petr