reformat_eucast: Reformat EUCAST crosstabe format into data base formats

Description Usage Arguments Details Value Note

View source: R/reformat_eucast.R

Description

Reformat EUCAST crosstabe format into data base formats

Usage

1
reformat_eucast(data, type = c("ZD", "MIC"), melt = TRUE, unbin = FALSE)

Arguments

data

data frame representing an EUCAST cross table or a result from this function with "unbin=FALSE"

type

either "ZD" or "MIC", the latter is not implemented yet

melt

if TRUE, convert EUCAST crosstable to data base format

unbin

expand binned data to single observtions

Details

Reformatting of from crosstable to data base format is done with function melt from package reshape2. In contrast, unbin is a quite memory consuming workaround for R functions that do not support a weight argument. Please consider to use weights and avoid unbin whenever possible.

Value

reformatted data frame

Note

This function is under development, name and functionality may change.


tpetzoldt/antibioticR documentation built on Sept. 25, 2021, 1:17 p.m.