Skip to contents

SEG pairs type table

Usage

seg_pair_type_tbl(df)

Arguments

df

data with BGM and REF columns

Value

pair type columns

Examples

test_data <- vroom::vroom(
                system.file("extdata", "VanderbiltComplete.csv",
                package = "segtools"), delim = ",")
#> Rows: 9891 Columns: 2
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> dbl (2): BGM, REF
#> 
#>  Use `spec()` to retrieve the full column specification for this data.
#>  Specify the column types or set `show_col_types = FALSE` to quiet this message.
seg_pair_type_tbl(test_data)
#> # A tibble: 6 × 2
#>   `Pair Type`                           Count
#>   <chr>                                 <int>
#> 1 Total                                  9891
#> 2 BGM < REF                              4710
#> 3 BGM = REF                               479
#> 4 BGM > REF                              4702
#> 5 REF > 600: Excluded from SEG Analysis    23
#> 6 Total included in SEG Analysis         9868