Integers not Implicitly Cast when Using mutate() Function | Teradata R Package - 16.20 - Integers not Implicitly Cast when Using mutate() Function - Teradata R Package

Teradata® R Package User Guide

Product
Teradata R Package
Release Number
16.20
Published
February 2020
Language
English (United States)
Last Update
2022-05-02
dita:mapPath
qbt1519078127352.ditamap
dita:ditavalPath
Generic_no_ie_no_tempfilter.ditaval

When using mutate() function with tdplyr, integers do not get implicitly cast as doubles during a division operation. This is due to the fact that the result of performing a division on two integers in a database in Vantage is also an integer.

To workaround this limitation and obtain a double value, the integer values need to be cast as doubles explicitly.