natverse / nat

NeuroAnatomy Toolbox: An R package for the (3D) visualisation and analysis of biological image data, especially tracings of single neurons.

Home Page:https://natverse.org/nat/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fix bug in matching by first column

jefferis opened this issue · comments

This change in #467 introduced a subtle bug:

matching_rows_fc=intersect(nn, value[,1])

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.