Returns the name of the table for a table start variable

get_table_name(table_feeder_var)

Arguments

table_feeder_var

string The table variable start

Value

string The extracted table name

Examples

# Extract table names from table feeder variables
get_table_name("$table:lookup_codes") # Returns "lookup_codes"
#> [1] "$table:lookup_codes"
get_table_name("$table:reference") # Returns "reference"
#> [1] "$table:reference"
get_table_name("$table:values") # Returns "values"
#> [1] "$table:values"