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

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Teradata Package for R
Release Number
17.20
Published
March 2024
ft:locale
en-US
ft:lastEdition
2024-04-09
dita:mapPath
efv1707506846369.ditamap
dita:ditavalPath
ayr1485454803741.ditaval
dita:id
nqx1518630623256
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.