Thank you very much. Arun's reply is exactly what I need. Thank you once
again!~
ray
On Sat, Mar 16, 2013 at 12:31 AM, Berend Hasselman wrote:
>
> On 15-03-2013, at 17:08, Ray Cheung wrote:
>
> > Dear All,
> >
> > I've an array with some missing values (NA) in between. I want to remove
> > tha
On 15-03-2013, at 17:08, Ray Cheung wrote:
> Dear All,
>
> I've an array with some missing values (NA) in between. I want to remove
> that particular matrix if a missing value is detected. How can I do so?
> Thank you very much.
It is not clear what the dimension of your array is.
If your ar
HI,
Try this:
set.seed(25)
arr1<- array(sample(c(1:40,NA),60,replace=TRUE),dim=c(5,4,3))
arr1[,,sapply(seq(dim(arr1)[3]),function(i) all(!is.na(arr1[,,i])))]
# [,1] [,2] [,3] [,4]
#[1,] 2 13 34 17
#[2,] 19 3 15 39
#[3,] 4 25 10 16
#[4,] 7 22 5 7
#[5,] 12
3 matches
Mail list logo