powered by
clean.na
clean.na(x,margin,drop=FALSE)
drop
x <- matrix(c(1,NA,2,5),2,2) clean.na(x,1) # [,1] [,2] #[1,] 1 2 clean.na(x,2,TRUE) # [1] 2 5
Run the code above in your browser using DataLab