Verify if a Dataset Has the Required Format as Queries Dataset.
Source:R/derive_vars_query.R
assert_valid_queries.Rd
Verify if a Dataset Has the Required Format as Queries Dataset.
Details
Check if the dataset has the following columns
VAR_PREFIX
, e.g., SMQ01, CQ12QUERY_NAME
, non NA, must be unique per eachVAR_PREFIX
QUERY_ID
, could be NA, must be unique per eachVAR_PREFIX
QUERY_SCOPE
, 'BROAD', 'NARROW', or NAQUERY_SCOPE_NUM
, 1, 2, or NATERM_LEVEL
, e.g.,"AEDECOD"
,"AELLT"
,"AELLTCD"
, ...TERM_NAME
, character, could be NA only at those observations whereTERM_ID
is non-NATERM_ID
, integer, could be NA only at those observations whereTERM_NAME
is non-NA
See also
Other Advanced Functions:
assert_db_requirements()
,
assert_terms()
,
extend_source_datasets()
,
filter_date_sources()
,
format.basket_select()
,
list_tte_source_objects()
,
params()
,
validate_basket_select()
,
validate_query()
Examples
data("queries")
assert_valid_queries(queries, "queries")