Create or amend data to a pixelFateDT object

pixelFate(
  pixelFateDT,
  fate = NA_character_,
  pixelsRemoved = 0,
  runningPixelTotal = NA_integer_
)

Arguments

pixelFateDT

A pixelFateDT data.table with 3 columns: fate, pixelsRemoted, and runningPixelTotal.

fate

A character string (length 1) describing in words the change

pixelsRemoved

A numeric indicating how many pixels were removed due to the fate.

runningPixelTotal

an optional numeric with new, running total. If not supplied, it will be calculated from the last row of pixelFateDT runningTotal minus the pixelsRemoved

Value

A pixelFateDT object, updated with one extra row.