Most functions work on all rows of a scan table. Exceptions are the fitter and plotter. If you wish to only operate on a selected set of scantable rows, use the get_scan function to copy the rows into a new scantable.