reformat_eucast.Rd
Reformat EUCAST crosstabe format into data base formats
reformat_eucast(data, type = c("ZD", "MIC"), melt = TRUE, unbin = FALSE)
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 |
unbin | expand binned data to single observtions |
reformatted data frame
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.
This function is under development, name and functionality may change.