td_set_data() | Teradata R Package - 17.00 - td_set_data() - Teradata R Package

Teradata® R Package User Guide

prodname
Teradata R Package
vrm_release
17.00
created_date
November 2020
category
User Guide
featnum
B700-4005-090K

The td_set_data() function enables the user to set data and data related arguments without having to re-create ScriptTableOperator object.

All data related arguments that are not specified in this function are reset to default values.
> script_obj <- td_set_data(object = script_obj,
                            data = barrier %>% select(Name)
  )
The list element "data.order.column" is set to NULL as this function resets the values to default values if not provided, irrespective of whether it is provided in Script() function call or not.
> script_obj
$script.command
[1] "Rscript ./TDAPUSERDB/mapper.R"
$returns
$returns$word
[1] "VARCHAR(15)"
$returns$count_input
[1] "VARCHAR(2)"
$data
# Source:   lazy query [?? x 1]
# Database: [Teradata 16.20.27.01] [Teradata Native Driver 17.0.0.4]
#   [TDAPUSER@<hostname>1025/TDAPUSERDB]
  Name                   
  <chr>                  
1 Old Macdonald Had A Farm
$data.hash.column
NULL
$data.partition.column
NULL
$data.order.column
NULL
$is.local.order
[1] FALSE
$sort.ascending
[1] TRUE
$nulls.first
[1] TRUE
$delimiter
[1] "\t"
$auth
NULL
$charset
[1] "LATIN"
$quotechar
NULL
attr(,"class")
[1] "ScriptTableOperator"