eliminateNA | R Documentation |
Generates two matrices: One with complete observations and one with all observations containing at least one missing value.
eliminateNA(dat)
dat |
Dataframe with observations in rows. |
complete |
Dataframe containing complete observations. |
incomplete |
Dataframe containing observations with at least one |
Kaspar Rufibach (maintainer), kaspar.rufibach@gmail.com,
http://www.kasparrufibach.ch
complete.cases
pat <- 1:10; var1 <- rnorm(10); var2 <- factor(round(rgamma(10, 2, 1)))
dat <- data.frame(cbind(pat, var1, var2))
dat[c(2, 8), 3] <- NA
eliminateNA(dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.