q_parser: Parse Query

q_parserR Documentation

Parse Query

Description

This function defines a generic function to parse a string query into structured data that can be used to explore a pbox object. It extracts components of the query using regular expression matching.

Usage

q_parser(query)

Arguments

query

A string representing the query.

Value

A data table with columns 'Varnames', 'Value', 'Operator', and 'Varnames2', where numeric values are converted to numeric type, and unnecessary columns are removed.

Examples

query <- "Vietnam:23"
q_parser(query)

pbox documentation built on May 29, 2024, 7:37 a.m.