expandData: Expands data to include all years and observations.

Description Usage Arguments Value

View source: R/helperFunctions.R

Description

Expands data to include all years and observations.

Usage

1
expandData(data, index, N)

Arguments

data

the data you would like to fill.

index

the index indicating which of the total values were observed.

N

the total number of length of the vector to be created.

Value

a vector NAs of length N, with values at indices, index, replaced with data.


MartinLiermann/coastalCohoSS documentation built on April 12, 2021, 2:11 a.m.