Learn R Programming

marmap (version 1.0.10)

is.bathy: Test whether an object is of class bathy

Description

Test whether an object is of class bathy

Usage

is.bathy(xyz)

Value

The function returns TRUE or FALSE

Arguments

xyz

three-column data.frame with longitude (x), latitude (y) and depth (z) (no default)

Author

Eric Pante

See Also

as.bathy, summary.bathy, read.bathy

Examples

Run this code
# load NW Atlantic data
data(nw.atlantic)

# test class "bathy"
is.bathy(nw.atlantic)

# use as.bathy
atl <- as.bathy(nw.atlantic)

# class "bathy"
class(atl)
is.bathy(atl)

# summarize data of class "bathy"
summary(atl)

Run the code above in your browser using DataLab