ColumnSummary
Description
The td_column_summary_sqle()
function can be used to take a quick look at the columns,
their datatypes, and summary of NULLs/non-NULLs for a given table.
Usage
td_column_summary_sqle (
data = NULL,
target.columns = NULL,
...
)
Arguments
data |
Required Argument. |
target.columns |
Required Argument. |
... |
Specifies the generic keyword arguments SQLE functions accept. volatile: Function allows the user to partition, hash, order or local order the input data. These generic arguments are available for each argument that accepts tbl_teradata as input and can be accessed as:
Note: |
Value
Function returns an object of class "td_column_summary_sqle"
which is a named list containing object of class "tbl_teradata".
Named list member(s) can be referenced directly with the "$" operator
using the name(s):result
Examples
# Get the current context/connection.
con <- td_get_context()$connection
# Load the example data.
loadExampleData("tdplyr_example", "titanic")
# Create tbl_teradata object.
titanic_data <- tbl(con, "titanic")
# Check the list of available analytic functions.
display_analytic_functions()
# Example: Find datatypes, NULL and non-NULL counts etc.
obj <- td_column_summary_sqle(data=titanic_data,
target.columns=c('age', 'pclass', 'embarked', 'cabin')
)
# Print the result.
print(obj$result)