Antiselect
Description
td_antiselect_sqle()
function returns all columns except those
specified in the "exclude" syntax element.
Usage
td_antiselect_sqle(
data = NULL,
exclude = NULL,
...
)
Arguments
data |
Required Argument. |
exclude |
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_antiselect_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("antiselect_example", "antiselect_input")
# Create tbl_teradata object.
antiselect_input <- tbl(con, "antiselect_input")
# Check the list of available analytic functions.
display_analytic_functions()
# Example 1: Returns all columns except those specified in the exclude
# argument.
obj <- td_antiselect_sqle(data=antiselect_input,
exclude=c('rowids', 'orderdate',
'discount', 'province',
'custsegment'))
# Print the result.
print(obj$result)