Create a table of all studies currently in data.frame

createStudyTable(dat)

Arguments

dat

data.frame produced by importBugSigDB, subsetted as desired

Value

a data.frame of basic study information. Can be wrapped in kable_styling(kbl(.)) to format nicely.

Examples

full.dat <- bugsigdbr::importBugSigDB()
#> Using cached version from 2022-03-31 12:35:22
createStudyTable(full.dat)
#> # A tibble: 460 × 5
#>    Study            Condition                      Cases Controls `Study Design`
#>    <chr>            <chr>                          <dbl>    <dbl> <chr>         
#>  1 Aarts 2017       attention deficit hyperactivi…    19       77 case-control  
#>  2 Abrahamsson 2012 atopic eczema                     20       20 prospective c…
#>  3 Adamberg 2018    obesity                            9        9 case-control  
#>  4 Aguilar 2020     obesity                           16       56 cross-section…
#>  5 Ahn 2013         colorectal cancer                 47       94 case-control  
#>  6 Aizawa 2016      unipolar depression               43       57 cross-section…
#>  7 Akiyama 2019     endometriosis                     30       39 cross-section…
#>  8 Alanee 2019      prostate cancer                   14       16 prospective c…
#>  9 Allali 2018      colorectal cancer                 11       12 case-control  
#> 10 Aloisio 2016     antimicrobial agent               10       10 prospective c…
#> # … with 450 more rows
## kable_styling(kbl(createStudyTable(full.dat))) #for html styling