function_exists {catalog} | R Documentation |
Check If A Function Exists
Description
Check if the function with the specified name exists in the specified database.
Usage
function_exists(sc, fn, database = NULL)
Arguments
sc |
A |
fn |
|
database |
|
Details
function_exists()
includes in-built functions such as abs
. To see if a
built-in function exists you must use the unqualified name. If you create a
function you can use the qualified name. If you want to check if a built-in
function exists specify the database
as NULL
.
Value
A logical(1)
vector indicating TRUE
if the function exists within the
specified database and FALSE
otherwise.
Examples
## Not run:
sc <- sparklyr::spark_connect(master = "local")
function_exists(sc = sc, fn = "abs")
## End(Not run)
[Package catalog version 0.1.1 Index]