diffFlags | R Documentation |
Show differences in flag settings between two model runs.
diffFlags(par1, par2, all = TRUE, flaglist = NULL)
flagDiff(...)
par1 |
MFCL flags from model run 1. |
par2 |
MFCL flags from model run 2. |
all |
whether to include flags that are only specified in one of the model runs. |
flaglist |
optional filename to use instead of the built-in ‘flaglist.csv’ lookup table. |
... |
passed to |
The par1
and par2
objects can be any of the following:
folder containing a par
file
filename of a par
file
MFCLPar
object
MFCLFlags
object
data.frame
containing flag settings
A data frame showing flag settings where par1 and par2 are different, along with a column showing the meaning of each flag.
flagDiff
is an older name of this function. To support legacy scripts,
a call to the old function is simply forwarded to diffFlags
.
This function calls flagMeaning
to add the column showing the
meaning of each flag.
diffFlagsStepwise
shows differences in flag settings between
stepwise model runs.
read.MFCLFlags
reads flag settings from a par
file.
data(par)
par1 <- par2 <- par
# Different flag value
flags(par2)[20,"value"] <- 12
diffFlags(par1, par2)
# When flag is specified in par1 but not in par2
flags(par1) <- rbind(flags(par1), c(-10269, 1, 1))
diffFlags(par1, par2) # default is to show par2 as NA
diffFlags(par1, par2, all=FALSE) # all=FALSE omits such comparisons
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.