You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
hyperSpec Arithmetic with row vector: extra data columns #149
@eoduniyi They are not exactly duplicates: the 2nd version contains the same value for all rows, since it was originally the first row only and the values are copied.
@eoduniyi They are not exactly duplicates: the 2nd version contains the same value for all rows, since it was originally the first row only and the values are copied.
Right, well it seems to make sense for chondro - chondro[1, ] to remove the first row in the original hyperSpec object and get rid of the "duplicates":
chondro - chondro[1,] subtracts one spectrum from all other spectra. I, as a user, would be very much surprised if this operation changes anything else apart of the $spc matrix. So I don't find this behavior logical.
Activity
eoduniyi commentedon Jun 9, 2020
Hi @cbeleites,
I'm not sure why we wouldn't drop the duplicate columns?
cbeleites commentedon Jun 9, 2020
@eoduniyi They are not exactly duplicates: the 2nd version contains the same value for all rows, since it was originally the first row only and the values are copied.
eoduniyi commentedon Jun 9, 2020
Right, well it seems to make sense for
chondro - chondro[1, ]to remove the first row in the original hyperSpec object and get rid of the "duplicates":ximeg commentedon Jun 15, 2020
chondro - chondro[1,]subtracts one spectrum from all other spectra. I, as a user, would be very much surprised if this operation changes anything else apart of the$spcmatrix. So I don't find this behavior logical.cbeleites commentedon Jun 15, 2020
@ximeg which this? dropping columns from
yor merging them into the result?