Skip to contents

Return the axis name implied by a query, if any.

Usage

query_axis_name(query_string)

Arguments

query_string

A query string (character scalar) or a DafrQuery object produced by the query builders (e.g. Axis("cell") |> LookupVector("donor")).

Value

A single axis name, or NA_character_ if the query references 0 or 2+ axes.

Examples

query_axis_name("@ cell : donor")
#> [1] "cell"
query_axis_name(". organism")
#> [1] NA