如何将na.rm = TRUE传递给circ.mean {CircStats}?

时间:2015-08-07 04:31:22

标签: r

我试图用CircStats包绘制风向的平均值(以度为单位)。我的数据集中有几个缺失值NA。这就是我面临的问题。

# Let us convert degrees into radians    
windRad <- rad(x$V1) # x is the dataset and direction is in the first column V1 
circ.mean(windRad)
[1] NA
circ.mean(windRad, na.rm=TRUE)
  Error in circ.mean(windRad, na.rm = TRUE) : 
  unused argument (na.rm = TRUE)

0 个答案:

没有答案