UnivariateStatistics
Description
td_univariate_statistics_sqle()
function
displays descriptive statistics for each specified numeric input tbl_teradata column.
Usage
td_univariate_statistics_sqle (
newdata = NULL,
target.columns = NULL,
partition.columns = NULL,
stats = 'ALL',
centiles = c(1, 5, 10, 25, 50, 75, 90, 95, 99),
trim.percentile = 20,
...
)
Arguments
newdata |
Required Argument. |
target.columns |
Required Argument. |
partition.columns |
Optional Argument. |
stats |
Optional Argument.
Default Value: 'ALL' |
centiles |
Optional Argument. |
trim.percentile |
Optional 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_univariate_statistics_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 1: Display descriptive statistics of input
# column "fare" by partitioning "sex" and "age".
obj <- td_univariate_statistics_sqle(
newdata=titanic_data,
target.columns='fare',
partition.columns=c('sex', 'age'),
stats='ALL',
centiles=c(1, 5, 10, 25, 50, 75, 90, 95, 99),
trim.percentile=20)
# Print the result.
print(obj$result)