Mapping Between R and C Data Types | R Table Operators | Teradata Vantage - Mapping Between R and C Data Types - Analytics Database - Teradata Vantage

SQL External Routine Programming

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-07-11
dita:mapPath
iiv1628111441820.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
B035-1147
lifecycle
latest
Product Category
Teradata Vantageā„¢

The data types of input and output parameters of R FNC functions conform to typical usage of R data types. However, R FNC functions are implemented using existing C FNC functions. Therefore, wrappers are used to convert data from R data types to C data types and vice versa. The mapping between R and C data types is shown in the following table.

R C
integer
  • signed char
  • signed/unsigned short
  • signed/unsigned int
  • signed/unsigned long
real
  • float
  • double
  • long long
character char, when used for characters and strings
raw
  • pointers
  • unsigned char (byte)
vector array
list struct