q_parser {pbox} | R 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)
[Package pbox version 0.1.8 Index]