Learn R Programming

readepi (version 1.0.4)

query_check: Check whether the user-provided query is valid

Description

We define a query as valid when it contains either one of the column names of the table being queried and/or one of the R operators provided in the lookup_table object of the package.

Usage

query_check(query, login, table_name)

Value

Invisibly returns TRUE if the query is valid; throws an error otherwise.

Arguments

query

An R expression that will be converted into an SQL query

login

The connection object obtained from the login() function.

table_name

A character with the table name