Get Mooring/Element Height

height(m)

Arguments

m

either a mooring object, created by mooring(), or a mooring-element object, created with anchor(), chain(), connector(), instrument(), misc(), release(), or wire().

Value

height returns a numeric vector of mooring element height(s), in metres. This will be a single value if m is a single element (as in the first Example) or a vector, for a typical mooring, which has multiple elements (as in the second Example). Note that, in the latter case, the heights are listed with the top element first, i.e. in the reverse order to that used in constructing the mooring with mooring().

Author

Dan Kelley

Examples

library(mooring)
# Example 1. height of an individual element
height(float("HMB 20"))
#> [1] 0.508

# Example 2. height of individual mooring elements, starting
# with the float.
m <- mooring(anchor(), wire(length = 100), float("HMB 20"), waterDepth = 120)
height(m)
#> [1]   0.508 100.000   0.150