powered by
Check equality on key fields of neuron object
# S3 method for 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, ... )
R object.
other R object, to be compared with target.
target
numeric \(\ge\) 0. Differences smaller than tolerance are not reported. The default value is close to 1.5e-8.
tolerance
1.5e-8
logical indicating if the attributes of target and current (other than the names) should be compared.
attributes
current
Which fields in the neuron are always checked. The special value of NA indicates that all fields in the neurons will be compared.
NA
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
all.equal
x=Cell07PNs[[1]] y=x y$NeuronName='rhubarb' # NOT TRUE all.equal(x, y) # TRUE all.equal(x, y, fieldsToExclude='NeuronName')
Run the code above in your browser using DataLab