formatSummary {dvir}R Documentation

Format final summary table

Description

Combines and harmonises summary tables from different DVI analyses

Usage

formatSummary(dfs, orientation = c("AM", "PM"), columns = NULL, dvi = NULL)

Arguments

dfs

A list of data frames.

orientation

Either "AM" or "PM", controlling column order and sorting.

columns

A (optional) character vector with column names in the wanted order.

dvi

A dviData object used for sorting. Note that if given, this must contain all victims and families.

Details

The default column order is controlled by orientation, which the following effect:

Columns (in any of the data frames) other than these are simply ignored.

Value

A data frame.

Examples

u = findUndisputed(planecrash)
a = amDrivenDVI(u$dviReduced, threshold2 = 500)

u$summary
a$summary

formatSummary(list(u$summary, a$summary$AM))
formatSummary(list(u$summary, a$summary$PM), orientation = "PM", dvi = planecrash)


[Package dvir version 3.3.0 Index]