GetRowsWithoutMissingValues
Description
The td_get_rows_without_missing_values_sqle()
function displays the rows that
have non-NULL values in the specified input data columns.
Notes:
This function requires the UTF8 client character set for UNICODE data.
This function does not support Pass Through Characters (PTCs). For information about PTCs, see Teradata Vantage™ - Advanced SQL Engine International Character Set Support.
This function does not support KanjiSJIS or Graphic data types.
Usage
td_get_rows_without_missing_values_sqle (
data = NULL,
target.columns = NULL,
accumulate = NULL,
...
)
Arguments
data |
Required Argument. |
target.columns |
Optional Argument. |
accumulate |
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_get_rows_without_missing_values_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: Get the rows that contain non-NULL values in columns.
obj <- td_get_rows_without_missing_values_sqle(data=titanic_data)
# Print the result.
print(obj$result)
# Example 2: Get the rows that contain non-NULL values in columns.
# by specifying input tbl_teradata columns to
# copy to the output.
obj1 <- td_get_rows_without_missing_values_sqle(
data=titanic_data,
target.columns=c('name', 'sex', 'age', 'passenger'),
accumulate=c("survived", "pclass"))
# Print the result.
print(obj1$result)