join: Joins objects along a dimensions where dimnames differ

joinR Documentation

Joins objects along a dimensions where dimnames differ

Description

FLQuant objects are joined along a single dimension, on which dimnames are different. This is the reverse operation to divide.

Usage

join(x, y, ...)

## S4 method for signature 'FLQuant,FLQuant'
join(x, y)

## S4 method for signature 'FLQuants,missing'
join(x, y)

Arguments

x

An object to join

y

An object to join

Value

A single object

Author(s)

Iago Mosqueira (WMR)

Examples

data(ple4)
# JOIN over age dimension
x <- catch.n(ple4)[1,]
y <- catch.n(ple4)[2,]
join(x, y)
# JOIN over year dimension
x <- catch.n(ple4)[,10:20]
y <- catch.n(ple4)[,21:25]
join(x, y)
div <- divide(catch.n(ple4), dim=1)
is(div)
length(div)
join(div)
all.equal(join(divide(catch.n(ple4), dim=1)), catch.n(ple4))

flr/FLCore documentation built on May 4, 2024, midnight