Skip to contents

A shiny module that allows the user to the input the lower bound, upper bound, centre and inverse arguments to a peak score.

Usage

peak_score_ui(id)

peak_score_server(id, column, reset, editing_row)

Arguments

id

The namespace of the module.

column

The column currently being scored.

reset

When this value is changed, all inputs will reset.

editing_row

The row that the user is currently editing. When this changes, all inputs will be updated to the state of the score that is being edited.

Value

A tibble::tibble_row() containing the four inputs, or NULL if any are invalid.