redcapProgressBar {petersenlab}R Documentation

Progress Bar for REDCap.

Description

Function that identifies the values for a progress bar in REDCap.

Usage

redcapProgressBar(numSurveys, beginning = 2, end = 99)

Arguments

numSurveys

the number of surveys to establish progress.

beginning

the first value to use in the sequence.

end

the last value to use in the sequence.

Details

A progress bar in REDCap can be created using the following code:

  Progress:
  <div style="width:100%;border:0;margin:0;padding:0;background-color:
  #A9BAD1;text-align:center;"><div style="width:2%;border: 0;margin:0;
  padding:0;background-color:#8491A2"><span style="color:#8491A2">.
  </span></div></div>

where width:2% specifies the progress (out of 100%).

Value

sequence of numbers for the progress bar in REDCap.

Examples

redcapProgressBar(numSurveys = 6)
redcapProgressBar(6)
redcapProgressBar(4)
redcapProgressBar(numSurveys = 7, beginning = 1, end = 99)

[Package petersenlab version 1.0.0 Index]