Mapping Between R and C Data Types | R Table Operators | Teradata Vantage - Mapping Between R and C Data Types - Advanced SQL Engine - Teradata Database

SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
rin1593638965306.ditamap
dita:ditavalPath
rin1593638965306.ditaval
dita:id
B035-1147
lifecycle
previous
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