A pivot table should only contain label rows and columns, and an array of
values, usually numeric data. Values, even though they are numbers, are
represented as text and sometimes include a decimal separator different from
the one needed; it can be replaced using this function.
Usage
replace_dec(pt, sep)
# S3 method for pivot_table
replace_dec(pt, sep = ".")
Value
A pivot_table object.
Arguments
pt
A pivot_table object.
sep
A character, new decimal separator to use.
Details
To correctly carry out this operation, the number of rows and columns that
contain labels must be defined, and the table must only contain the pivot
table rows and columns.
The only decimal separators considered are "." and ",".