Skip to content
Prev 319639 / 398503 Next

missing values in an array

On 15-03-2013, at 17:08, Ray Cheung <ray1728 at gmail.com> wrote:

            
It is not clear what the dimension of your array is.

If your array/matrix is two dimensional, then then

any(is.na(A))  # A is the name of the array/matrix

will return TRUE is at least one element of A is NA. And then you can delete A.

If you array has three dimensions then you'll have to look at arun's solution.

Berend