Re: [R] Deleting rows with NA from isolated column in matrix

2010-05-14 Thread Dennis Murphy
x[!is.na(x[, 3]), ] HTH, Dennis On Fri, May 14, 2010 at 12:16 PM, Ryan Utz wrote: > Hi all, > > I'm relatively new to R and have a data management problem. I am importing > a > data matrix with some columns that have missing values. I am trying to > figure out how to delete rows with NA for dat

Re: [R] Deleting rows with NA from isolated column in matrix

2010-05-14 Thread Jorge Ivan Velez
Hi Ryan, How about this? x[!is.na(x[,3]),] HTH, Jorge On Fri, May 14, 2010 at 3:16 PM, Ryan Utz <> wrote: > Hi all, > > I'm relatively new to R and have a data management problem. I am importing > a > data matrix with some columns that have missing values. I am trying to > figure out how to d

[R] Deleting rows with NA from isolated column in matrix

2010-05-14 Thread Ryan Utz
Hi all, I'm relatively new to R and have a data management problem. I am importing a data matrix with some columns that have missing values. I am trying to figure out how to delete rows with NA for data FOR JUST ONE SPECIFIED column. For instance, with the example matrix: x<-matrix(nrow=5,ncol=3)