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

Teradata® R Package User Guide

prodname
Teradata R Package
vrm_release
17.00
created_date
November 2020
category
User Guide
featnum
B700-4005-090K

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.