mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2026-06-19 13:17:30 +02:00
Deploying to gh-pages from @ agdamsbo/REDCapCAST@db75c3313e 🚀
This commit is contained in:
parent
bc2e23a272
commit
0b30252598
171 changed files with 7009 additions and 602 deletions
33
reference/create_html_table.md
Normal file
33
reference/create_html_table.md
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# Create two-column HTML table for data piping in REDCap instruments
|
||||
|
||||
Create two-column HTML table for data piping in REDCap instruments
|
||||
|
||||
## Usage
|
||||
|
||||
``` r
|
||||
create_html_table(text, variable)
|
||||
```
|
||||
|
||||
## Arguments
|
||||
|
||||
- text:
|
||||
|
||||
descriptive text
|
||||
|
||||
- variable:
|
||||
|
||||
variable to pipe
|
||||
|
||||
## Value
|
||||
|
||||
character vector
|
||||
|
||||
## Examples
|
||||
|
||||
``` r
|
||||
create_html_table(text = "Patient ID", variable = c("[cpr]"))
|
||||
#> <table style="border-collapse: collapse; width: 100%;" border="0"> <tbody><tr> <td style="width: 58%;"> <h5><span style="font-weight: normal;">Patient ID<br /></span></h5> </td> <td style="width: 42%; text-align: left;"> <h5><span style="font-weight: bold;">[cpr]</span></h5> </td> </tr></tbody> </table>
|
||||
create_html_table(text = paste("assessor", 1:2, sep = "_"), variable = c("[cpr]"))
|
||||
#> <table style="border-collapse: collapse; width: 100%;" border="0"> <tbody><tr> <td style="width: 58%;"> <h5><span style="font-weight: normal;">assessor_1<br /></span></h5> </td> <td style="width: 42%; text-align: left;"> <h5><span style="font-weight: bold;">[cpr]</span></h5> </td> </tr><tr> <td style="width: 58%;"> <h5><span style="font-weight: normal;">assessor_2<br /></span></h5> </td> <td style="width: 42%; text-align: left;"> <h5><span style="font-weight: bold;">[cpr]</span></h5> </td> </tr></tbody> </table>
|
||||
# create_html_table(text = c("CPR nummer","Word"), variable = c("[cpr][1]", "[cpr][2]", "[test]"))
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue