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

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Teradata Package for R
Release Number
17.20
Published
March 2024
Language
English (United States)
Last Update
2024-04-09
dita:mapPath
efv1707506846369.ditamap
dita:ditavalPath
ayr1485454803741.ditaval
dita:id
nqx1518630623256
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.