R/is.R
is.instrument.Rd
Determine which Mooring Elements are Instruments
is.instrument(m)
a mooring object, created by mooring().
mooring()
a logical vector of the same length as m, indicating whether each element is of the instruent sub-class.
m
instruent
Dan Kelley
library(mooring) m <- mooring( anchor(), wire(length = 100), instrument("RD ADCP"), wire(length = 100), float("HMB 20"), waterDepth = 120 ) is.instrument(m) #> [1] FALSE FALSE TRUE FALSE FALSE