all.equal.neuron | R Documentation |
Check equality on key fields of neuron object
## S3 method for class 'neuron'
all.equal(
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,
...
)
target |
R object. |
current |
other R object, to be compared with |
tolerance |
numeric |
check.attributes |
logical indicating if the
|
fieldsToCheck |
Which fields in the neuron are always checked. The
special value of |
fieldsToCheckIfPresent |
These fields are only checked if they are present |
fieldsToExclude |
Character vector of fields to exclude from check |
CheckSharedFieldsOnly |
Logical whether to check shared fields only (default: FALSE) |
... |
additional arguments passed to |
all.equal
x=Cell07PNs[[1]]
y=x
y$NeuronName='rhubarb'
# NOT TRUE
all.equal(x, y)
# TRUE
all.equal(x, y, fieldsToExclude='NeuronName')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.