Check equality on key fields of neuron object
# S3 method for equal.neuron
all(
target,
current,
tolerance = 1e-06,
check.attributes = FALSE,
fieldsToCheck = c("NumPoints", "StartPoint", "BranchPoints", "EndPoints", "NumSegs",
"SegList", "d"),
fieldsToCheckIfPresent = c("NeuronName", "nTrees", "SubTrees"),
fieldsToExclude = character(),
CheckSharedFieldsOnly = FALSE,
...
)
R object.
other R object, to be compared with target
.
numeric \(\ge\) 0. Differences smaller than
tolerance
are not reported. The default value is close to
1.5e-8
.
logical indicating if the
attributes
of target
and current
(other than the names) should be compared.
Which fields in the neuron are always checked. The
special value of NA
indicates that all fields in the neurons
will be compared.
These fields are only checked if they are present
Character vector of fields to exclude from check
Logical whether to check shared fields only (default: FALSE)
additional arguments passed to all.equal