as.data.frame() | Extracting Data into R Data Frame | Teradata Package for R - as.data.frame() - Teradata Package for R

Teradata® Package for R User Guide

Product
Teradata Package for R
Release Number
17.00
Published
July 2021
Language
English (United States)
Last Update
2023-08-08
dita:mapPath
yih1585763700215.ditamap
dita:ditavalPath
ayr1485454803741.ditaval
dita:id
B700-4005
Product Category
Teradata Vantage

Create an R data frame from a tibble by using the as.data.frame() R function on a tdplyr tibble, to transfer the data of the corresponding Vantage table into an R data frame on the client machine.

The optional n argument of the as.data.frame() function specifies the number of rows to be pulled from the Vantage table.

For Example:

The following statement transfers 20 rows from the "iris_flowers" Vantage table into the "df_iris" data frame on the client by applying the as.data.frame() function on the "tddf_iris" tibble:

> df_iris <- as.data.frame(tddf_iris, n=20)

See Teradata Package for R Limitations for details on using the as.data.frame() function.