Skip to contents

[Experimental]

Usage

compareParams(params1, params2)

Arguments

params1

First MizerParams object

params2

Second MizerParams object

Value

String describing the differences

Examples

params1 <- NS_params
params2 <- params1
species_params(params2)$w_mat[1] <- 10
#> Warning: For the species Sprat the value for `w_mat25` is not smaller than that of `w_mat`. I have corrected that by setting it to NA.
compareParams(params1, params2)
#> [1] "The following species parameters differ: Component “w_mat”: Mean absolute difference: 3, Component “w_mat25”: Mean absolute difference: 2.687875"
#> [2] "The time_modified slots do not agree: Mean absolute difference: 22371544"                                                                        
#> [3] "The maturity slots do not agree: Mean absolute difference: 0.04497162"                                                                           
#> [4] "The psi slots do not agree: Mean absolute difference: 0.06138336"