Retrieve a table containing table and column names with descriptions, help text, units of measure, etc. from NASIS 7 metadata tables.
get_NASIS_table_metadata(
table = NULL,
column = NULL,
what.table = "TablePhysicalName",
what.column = "ColumnPhysicalName",
query_string = FALSE,
dsn = NULL
)
a data.frame
Character vector of table identifiers to match. Default NULL
for "all tables" (no constraint)
Character vector of column identifiers to match. Default NULL
for "all columns" (in selected tables, if any, otherwise no constraint)
Column to match table
against. Default: TablePhysicalName
.
Column to match column
against. Default: ColumnPhysicalName
.
Default: FALSE
; if TRUE
return a character containing query that would be sent to NASIS.
Optional: path or DBIConnection to local database containing NASIS table structure; default: NULL
These data are derived from the MetadataTable and MetadataTableColumn tables and describe the expected contents of standard NASIS tables and columns.
For NASIS choice lists based on domain and column names see get_NASIS_metadata()
and NASISChoiceList()
. This function (get_NASIS_table_metadata()
) is intended for higher-level description of the expected contents of a NASIS database instance, rather than the codes/specific values used within columns.
get_NASIS_metadata()
NASISChoiceList()
uncode()
code()
if (local_NASIS_defined())
str(get_NASIS_table_metadata())
Run the code above in your browser using DataLab