需要在一个方程里满足以下要求:
Return the mean of the pollutant across all monitors list(题目已给有332个monitor)
in the 'id' vector (ignoring NA values)(ignore NA 我知道用na.rm=TRUE,但是这两个要求连起来我就不知道怎么写方程了)
非常感谢!
我写了mean(pollutant,na.rm=TRUE)之后R提示mean函数的argument既不是数值型,又不是逻辑型,怎么破?