NumApply
Description
Apply predefined numeric operation on specified target columns.
Usage
td_num_apply_sqle (
data = NULL,
target.columns = NULL,
output.columns = NULL,
accumulate = NULL,
apply.method = NULL,
sigmoid.style = NULL,
in.place = NULL,
...
)
Arguments
data |
Required Argument. |
target.columns |
Required Argument. |
output.columns |
Optional Argument.
Types: character OR vector of Strings (character) |
accumulate |
Optional Argument. |
apply.method |
Required Argument.
Types: character |
sigmoid.style |
Optional Argument, required when "apply.method" is 'sigmoid'.
Default Value: LOGIT |
in.place |
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_num_apply_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", "numerics")
# Create tbl_teradata object.
numerics <- tbl(con, "numerics")
# Check the list of available analytic functions.
display_analytic_functions()
# Example 1: Apply "log" method to column "num1" in numerics.
obj <- td_num_apply_sqle(data=numerics,
target.columns="integer_col",
apply.method="log",
in.place=TRUE)
# Print the result.
print(obj$result)
# Example 2: Apply "sigmoid" method and "tanh" as sigmoid style.
obj <- td_num_apply_sqle(data=numerics,
target.columns="decimal_col",
output.columns="out1",
apply.method="sigmoid",
sigmoid.style="tanh",
in.place=FALSE)
# Print the result.
print(obj$result)