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

Teradata® Package for R User Guide

Product
Teradata Package for R
Release Number
17.00
Published
July 2021
Language
English (United States)
Last Update
2023-08-08
dita:mapPath
yih1585763700215.ditamap
dita:ditavalPath
ayr1485454803741.ditaval
dita:id
B700-4005
Product Category
Teradata Vantage

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.