Takes table code or name as input and returns table name or code
Usage
get_table_name(table_name, prefix = TRUE)
Arguments
- table_name
String with table name or code
- prefix
Boolean, should result include "df_" prefix or not
Value
Table name (e.g. df_21311LJ139), or code (e.g. 21311LJ139)
Examples
get_table_name(tables[[1, "tablename"]])
#> [1] "df_21311LJ001"
get_table_name(tables[[1, "tablename"]], prefix = FALSE)
#> [1] "21311LJ001"