Create two-column HTML table for data piping in REDCap instruments
create_html_table(text, variable)
text
: descriptive textvariable
: variable to pipecharacter vector
create_html_table(text = "Patient ID", variable = c("[cpr]")) create_html_table(text = paste("assessor", 1:2, sep = "_"), variable = c("[cpr]")) # create_html_table(text = c("CPR nummer","Word"), variable = c("[cpr][1]", "[cpr][2]", "[test]"))
Useful links