Reformat EUCAST crosstabe format into data base formats

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

Value

reformatted data frame

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.

Note

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