Skip to contents

Function used to add aligned vectors of unequal length. Used to combine male and female cohorts when max_ages are not equal.

Usage

add_unequal_vectors(x, y)

Arguments

x

First vector

y

Second vector

Value

A vector of length one containing pre-spawn survival.

References

https://stackoverflow.com/questions/2307443/how-to-add-two-vectors-without-repeating-in-r