Learn R Programming

editbl (version 1.2.0)

evalCanDeleteRow: Determine if a row can be deleted

Description

Determine if a row can be deleted

Usage

evalCanDeleteRow(row, canDeleteRow = TRUE, statusCol = "status")

Value

boolean

Arguments

row

tibble, single row

canDeleteRow

function with argument 'row' defining logic on wether or not the row can be modified. Can also be logical TRUE or FALSE.

statusCol

character(1) name of column with general status (e.g. modified or not).

Author

Jasper Schelfhout

Details

calling this around the user passed on function ensures that newly inserted rows are being excempt from the logic. Moreover, the output of the function can be checked.