Teradata R Package Function Reference | 17.00 - 17.00 - db_analyze - Teradata R Package

Teradata® R Package Function Reference

prodname
Teradata R Package
vrm_release
17.00
created_date
September 2020
category
Programming Reference
featnum
B700-4007-090K

Description

This function collects the statistics of the given table.

Usage

## S3 method for class 'Teradata'
db_analyze(con, table, column, ...)

Arguments

con

Required Argument. Specifies remote data source.

table

Required Argument. Specifies remote table name.

column

Required Argument. Specifies name of the remote table column(s). Column name is required to collect the statistics in Teradata. This argument allows multiple columns as a vector.

...

Other parameters passed to methods.

Value

Returns 2 on successful, error on any failure.

See Also

db_begin(),db_commit(),db_rollback()

Examples

con <- td_get_context()$connection
iris2 <-  copy_to(con, iris, overwrite = FALSE)
db_analyze(con, "iris", "Sepal.Length")