function_exists | R Documentation |
Check if the function with the specified name exists in the specified database.
function_exists(sc, fn, database = NULL)
sc |
A |
fn |
|
database |
|
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
.
A logical(1)
vector indicating TRUE
if the function exists within the
specified database and FALSE
otherwise.
## Not run: sc <- sparklyr::spark_connect(master = "local") function_exists(sc = sc, fn = "abs") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.