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