7.00.02.01 - Changing Column Type of Virtual Data Frame in Aster R Limitation - Aster R

Teradata Aster® R User GuideUpdate 3

prodname
Aster R
vrm_release
7.00.02.01
created_date
December 2017
category
Programming Reference
User Guide
featnum
B700-1033-700K

Aster R does not support changing the column type in the same manner as it is done in native R. For example, this column type change is not supported in Aster R:

df$col = as.numeric(df$col)

To work around this issue, use one of these methods to change the column type in Aster R:

  • Use the ta.transform function:
    ta.transform(df, col = as.numeric(col))
  • Use the ta.reify function:
    res <- ta.reify(df, tableName = "new_tablename", colTypes = c(col = "numeric"))
  • Use the ta.create function:
    res <- ta.create(df, tableName = "new_tablename", colTypes = c(col = "numeric"))