The MFAssignR package was designed for multi-element molecular formula (MF) assignment of ultrahigh resolution mass spectrometry measurements. A number of tools for internal mass recalibration, MF assignment, signal-to-noise evaluation, and unambiguous formula selections are provided.
During the ifelse statement, instead of dataframe a list is created for some reason, which in the next step is converted to dataframe of 1 column and 1 row.
If isopeaks dataframe ("Iso" from IsoFiltR() ) is not provided and set to "none" - which is a function default, it will fail in lines 204-207:
During the ifelse statement, instead of dataframe a list is created for some reason, which in the next step is converted to dataframe of 1 column and 1 row.
The error message is following:
Error in
[.data.frame(isopeaks, , c(1:3)) : undefined columns selected