Learn R Programming

geomorph (version 4.0.8)

na.omit.geomorph.data.frame: Handle missing values in rrpp.data.frame objects

Description

Handle missing values in rrpp.data.frame objects

Usage

# S3 method for geomorph.data.frame
na.omit(object, ...)

Arguments

object

object (from geomorph.data.frame)

...

further arguments (currently not used)

Author

Michael Collyer

Examples

Run this code
data(plethspecies)
Y.gpa <- gpagen(plethspecies$land, verbose = TRUE)
gdf <- geomorph.data.frame(Y.gpa)
gdf$d <- Y.gpa$procD
gdf$group <- c(rep(1, 4), rep(2, 4), NA) # one unknown group designation
gdf
ndf <- na.omit(gdf)
ndf

Run the code above in your browser using DataLab