Hi,

I have a object 'zoo':

dim(zz)
[1]  720 5551

where some columns only have NA's values (representing land data in a 
sea surface temperature dataset) I find straightforward the use of 
'na.approx' for individual columns from the zz matrix, but when applied 
to the whole matrix:

zz.approx<-na.approx(zz)
Erro en approx(along[!na], y[!na], along[na], ...) :
        need at least two non-NA values to interpolate

The message is clear, but how do I could skip those 'full-NA's' columns 
from the interpolation in order to perform the analysis over the columns 
which represent actual data with some NA's values

Best regards,

Antonio

-- 
=====
Por favor, si me mandas correos con copia a varias personas, 
pon mi dirección de correo en copia oculta (CCO), para evitar 
que acabe en montones de sitios, eliminando mi privacidad, 
favoreciendo la propagación de virus y la proliferación del SPAM. Gracias.
-----
If you send me e-mail which has also been sent to several other people,
kindly mark my address as blind-carbon-copy (or BCC), to avoid its
distribution, which affects my privacy, increases the likelihood of
spreading viruses, and leads to more SPAM. Thanks.
=====
Antes de imprimir este e-mail piense bien si es necesario hacerlo: El 
medioambiente es cosa de todos.
Before printing this email, assess if it is really needed.

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to