I have: A matrix y and it has two columns (the number of rows is different and depends on the input parameters). All the elements in the first
An example with some made up data:
m <- matrix(c(1:3,c(1,NA,4)),ncol=2) m[!is.na(m[,2]),]