normalizeDataframe

0th

Percentile

Data frame Normalization for Unit Tests

Normalizes a data.frame with respect to column types. This is necessary for comparing data.frames written to Excel and then read from Excel. Excel does not know e.g. factor types. Factor variables in fact are written to Excel as ordinary strings. Therefore, when read back in to R, they are treated as character variables.

Keywords
internal, utilities
Usage
normalizeDataframe(df, replaceInf)
Arguments
df

data.frame to normalize

replaceInf

logical specifying if infinites should be replaced with NA; this is used because Excel does not support infinites

Value

Returns a normalized data.frame

Aliases
  • normalizeDataframe
Documentation reproduced from package XLConnect, version 0.2-14, License: GPL-3

Community examples

Looks like there are no examples yet.