Hi, This is my first post.
Problem: I have a matrix 5 by 5 and it has 3 NAs in them. Now, when i use length () for a particular column which has NA it returns 5. I know this is true, but how do i change my matrix such that the length becomes 5 minus the number of NAs i have. I know NA has a length of 1, but then how do i convert the NA into NULL whose length is 0. Thanks in advance. abid ______________________________________________ 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.