delete_cell()

delete_cell()

delete_cell(cell)

Removes the specified cell from its column and propagates the changes to the spreadsheet.

Parameter

Type

Description

cell

RCell

Ruby representation of the Datavyu cell to be deleted.

Returns

Undefined.

Example

Removes cells from the “trial” column with “condition” coded as “a”.

# First get the column from the database
trial = get_column("trial")

# Now loop through all of the cells in that column, checking if
# they are coded as a left hand.
for trial_cell in trial.cells
   # Is hand coded as "l" for this cell?
   if trial_cell.condition == 'a'
      delete_cell(cell)
   end
end