Search within Tables
The table() function finds documents containing arguments within tables or table sections that match specified criteria.
Syntax
The function supports optional named parameters that specify additional search criteria. A list of these parameters is given below:
Parameter |
Comments |
name |
Search within tables with a specified name; may be specified by a PDL-query. |
number |
Search within tables with a specified number. |
col/column |
Search within columns with a specified name/number; may be specified by PDL-query. |
row |
Search within rows with a specified name/number; may be specified by a PDL-query. |
cell |
Search within specified cells; may be specified by a PDL-query. |
match |
Specifies table sections that should be highlighted (cell/row/column). |
whole:=yes/no |
whole:=yes is used to find a text only if it matches the whole cell value, column, row or table name (set to no by default). |
level |
Specifies a nested table level (starting from 1) using operators ">", "<", ">=", "<=", "!=". |
nested:=yes/no |
Search within or outside of nested tables (default value is "no") |
has_nested:=yes/no |
Search only tables containing nested tables (default value is "yes"). |
Note
One can use the relational operators ">", "<", ">=", "<=", "!=" to specify a search within numerical parameters, e.g. table(col:>1, col:<3, row:>4)
Example
Task example: Find frequency of administration of Naltrexone and Acamprosate
Users can write the following expression to complete this task: table(row:=Frequency of Administration, column:=Naltrexone or Acamprosate, match:=cell). The cell at the intersection of the rows containing the words "Naltrexone" or "Acamprosate" and of the column containing the phrase "Frequency of Administration" will be matched.
