powered by
Handle missing values in rrpp.data.frame objects
# S3 method for rrpp.data.frame na.omit(object, ...)
object (from rrpp.data.frame)
rrpp.data.frame
further arguments (currently not used)
Michael Collyer
y <- matrix(rnorm(15), 5, 3) x <- rnorm(5) rdf <- rrpp.data.frame(x = x, y = y, d = dist(y)) rdf$x[1] <- NA # create missing data rdf ndf <- na.omit(rdf) ndf
Run the code above in your browser using DataLab