Otra alternativa seria crear un pequeño script y hacer correrlo con tu serie.
x<-c(1,2,35,-99.9,4,9,6,-99.9,5,-99.9)
m<-length(x)
for (i in 1:m)
if (x[i]==-99.9)
x<-x[-i]
mean(x)
Espero haberte ayudo.
Saludos
Foro de debate
duda -99.9 para medias
This forum has a limit to the number of forum postings you can make in a given time period - this is currently set at 5 posting(s) in 1 day