assert_valid_queries {admiral}R Documentation

Verify if a Dataset Has the Required Format as Queries Dataset.

Description

Verify if a Dataset Has the Required Format as Queries Dataset.

Usage

assert_valid_queries(queries, queries_name)

Arguments

queries

A data.frame.

queries_name

Name of the queries dataset, a string.

Details

Check if the dataset has the following columns

Value

The function throws an error if any of the requirements not met.

Author(s)

Shimeng Huang, Ondrej Slama

See Also

Source Specifications: assert_db_requirements(), assert_terms(), censor_source(), date_source(), death_event, derive_var_dthcaus(), event_source(), extend_source_datasets(), filter_date_sources(), format.sdg_select(), format.smq_select(), list_tte_source_objects(), params(), query(), sdg_select(), smq_select(), tte_source(), validate_query(), validate_sdg_select(), validate_smq_select()

Examples

data("queries")
assert_valid_queries(queries, "queries")

[Package admiral version 0.8.4 Index]