join.echogram: Merge echograms

View source: R/join.echogram.R

join.echogramR Documentation

Merge echograms

Description

This function allows to join two echograms.

Usage

join.echogram(echogram1, echogram2)

Arguments

echogram1

an object of class “echogram” as returned by read.echogram.

echogram2

an object of class “echogram”, preferentially contiguous in space and time with echogram1 above.

Details

This function is designed to join echograms of the same acoustic frequency, giving an error if frequencies differ. Desirably, echograms should be contiguous in space and time, but as this is not verified, it is possible to join non-contiguous echograms.

Value

An object of class “echogram” resulting from the merging operation.

Author(s)

Héctor Villalobos

Examples

# import 38 kHz data from two consecutive HAC files
hacfile1 <- system.file("extdata", "D20150510-T202221.hac", package = "echogram")
echo1.038 <- read.echogram(hacfile1, channel = 1)

hacfile2 <- system.file("extdata", "D20150510-T202500.hac", package = "echogram")
echo2.038 <- read.echogram(hacfile2, channel = 1)

# join into one echogram
echo.038 <- join.echogram(echo1.038, echo2.038)
str(echo.038)
echogram(echo.038)

hvillalo/echogram documentation built on Oct. 2, 2023, 7:28 a.m.