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

Teradata Aster® R User GuideUpdate 3

Product
Aster R
Release Number
7.00.02.01
Published
December 2017
Language
English (United States)
Last Update
2018-04-13
dita:mapPath
fop1497542774450.ditamap
dita:ditavalPath
Generic_no_ie_no_tempfilter.ditaval
dita:id
fbp1477004286096
lifecycle
previous
Product Category
Software

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"))