Learn R Programming

replyr (version 0.2.0)

replyr_dataServiceName: return a cannonical name of the data service hosting a given data object

Description

return a cannonical name of the data service hosting a given data object

Usage

replyr_dataServiceName(df, expectedNames = c("src_sqlite", "spark_connection", "src_spark", "src_mysql", "src_postgres"))

Arguments

df
data object
expectedNames
some names to canonicalize to.

Value

cannonical service name (lenght 1 character array)

Examples

Run this code

replyr_dataServiceName(data.frame(x=1))
replyr_dataServiceName(dplyr::as.tbl(data.frame(x=1)))

Run the code above in your browser using DataLab