Dear Gabor,
In order to perform your suggestion I needed to split my 'big' 720*5551
matrix into small ones of the type: 720*400 due to memory constraints.
But after performing the task I get less rows in the new matrix. For
example:
zz1-zz[,1:400]
dim(zz1)
[1] 720 400
zz1[,1]
1985-01-05
Without a small reproducible example there is not much to say.
Try cutting the columns down to half successively until you have
an object with 4 columns that exhibits the same behavior and then
do the same with rows until you get a 4x6 example.
Here is another, slightly shorter, solution:
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:
na.approx uses approx and has the same behavior as it. Try this:
library(zoo)
# test data
z - zoo(matrix(1:24, 6))
z[,2:3] - NA
z[1, 2] - 3
z[2, 1] - NA
z
1 1 3 NA 19
2 NA NA NA 20
3 3 NA NA 21
4 4 NA NA 22
5 5 NA NA 23
6 6 NA NA 24
# TRUE for each column that has more than 1