sn_get_db_table_name: Gets name of table inside the database

View source: R/db.R

sn_get_db_table_nameR Documentation

Gets name of table inside the database

Description

Gets name of table inside the database

Usage

sn_get_db_table_name(type, country)

Arguments

type

Defaults to "item". Type of cache file to output. Values typically used by 'tidywikidatar' include "item", "search", and "qualifier".

country

Defaults to language set with 'tw_set_language()'; "en" if not set. Used to limit the data to be cached. Use "all_available" to keep all data. For available values, see https://www.wikidata.org/wiki/Help:Wikimedia_language_codes/lists/all

Value

A character vector of length one with the name of the relevant table in the cache file.

Examples

# outputs name of table used in  of cache file
sn_get_db_table_name(type = "item", language = "en")

giocomai/streetnamer documentation built on Oct. 14, 2023, 6:27 p.m.