nat icon indicating copy to clipboard operation
nat copied to clipboard

fix bug in matching by first column

Open jefferis opened this issue 1 year ago • 0 comments

This change in #467 introduced a subtle bug:

https://github.com/natverse/nat/blob/49d578d65c5290ad7b2e31c9bb5984c7c2126991/R/neuronlist.R#L301

If the first column of the incoming dataframe is numeric then intersect(nn, value[,1]) will be numeric as well, which will cause indexing to fail.

jefferis avatar Aug 16 '22 10:08 jefferis