interleave_estgen: Alternate estimated and generative parameter vectors

View source: R/field_plots.R

interleave_estgenR Documentation

Alternate estimated and generative parameter vectors

Description

Extracts the elements of gen with the names in est, then alternates them so that the first element of the returned list is the first from est, the second is the element of gen with the same name, etc. Also adds the "isgen" attribute (logical) indicating whether these are generative or estimated values.

Usage

interleave_estgen(est, gen = NULL, checklen = TRUE)

Arguments

est

Named list of estimated parameters

gen

named list of generative parameter vectors

checklen

Check corresponding lengths are equal?

Details

Not symmetric; only elements with names in est will be kept. All elements in est should be included in gen.

Value

A list with alternating elements of est and gen

Author(s)

John K Best


jkbest2/spatq documentation built on Sept. 22, 2022, 3:22 a.m.