7.00.02.01 - Converting between Aster R Virtual Objects and Regular R Objects - 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 provides functions to automatically convert between virtual and regular R objects.

This table lists brief descriptions of these functions.

Function Description
ta.data.frame()

Creates a virtual data frame based on an underlying SELECT query.

The SELECT query is created based on the input arguments.

as.ta.data.frame() Converts an existing R object or Aster virtual object to an Aster virtual data frame.
as.data.frame() Converts a table in the Aster Database to a virtual object that can be accessed using Aster R functions.
as.ta.factor()

Converts an R object or Aster R virtual object to an Aster R virtual factor.

The object to be converted must have a single column of type ‘character’.
as.ta.vector()

Converts an R object or Aster R virtual object to an Aster R virtual vector.

The object to be converted must have a single column.
as.vector() Converts a virtual vector to a regular R vector.