NameFilter-class | R Documentation |
The filter objects (extending the BasicFilter
from the
ensembldb
package) listed on this page allow to customize the
queries to the ATC database and retrieve specific entries. Filters can
be passed with the filter
argument to the atcs
method. Multiple filters can be combined (and passed as a list
to the beforementioned method). The supported filter objects are (in
alphabetical order):
Filter results based on the administration route of (level 5)
entries (such as "O"
for oral).
Filter results based on the ATC key.
Filter results based on the ATC level.
Filter results based on the name of the entry.
KeyFilter
and NameFilter
both allow to perform also
pattern matching queries by setting condition="like"
and
using a percentage sign as wild card (e.g. instead of *).
AdminrouteFilter(value, condition="==") KeyFilter(value, condition="==") LevelFilter(value, condition="==") NameFilter(value, condition="==")
(in alphabetic order)
condition |
The condition for the filter. For character values: |
db |
The |
object |
A filter object (either |
with.tables |
Optional argument; for internal use. |
value |
The value for the filter (against which database entries are
compared against, based on the filter's |
... |
Presently not used. |
Refer to the method and function description above for detailed information on the returned result object.
Filter objects should be created using the constructor functions
KeyFilter
, LevelFilter
and NameFilter
.
All classes inherit all methods from the
AnnotationFilter
class.
(in alphabetic order)
Creates and returns a new AdminrouteFilter
instance.
Creates and returns a new KeyFilter
instance.
Creates and returns a new LevelFilter
instance.
Creates and returns a new NameFilter
instance.
Johannes Rainer.
## Create a simple KeyFilter kf <- KeyFilter("R07") kf ## Define a filter for all keys starting with R07 kf <- KeyFilter("R07", condition = "startsWith") kf
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.