我试图用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)