Skip to contents

These functions return the distinct relationship types that originate from or point to the supplied codes.

Usage

RELATIONSHIP_TYPES_FROM(
  ...,
  type = getOption("codeminer.code_type"),
  relationship_version = getOption("codeminer.relationship_version", default = "latest"),
  col_filters = "default"
)

RELATIONSHIP_TYPES_TO(
  ...,
  type = getOption("codeminer.code_type"),
  relationship_version = getOption("codeminer.relationship_version", default = "latest"),
  col_filters = "default"
)

Arguments

...

Codes to start from. Supports flexible input like CODES().

type

Code type (character).

relationship_version

Relationship table version (character).

col_filters

Column filters to apply. See CODES() for details.

Value

A character vector of distinct relationship types.

Details

  • RELATIONSHIP_TYPES_FROM() returns relationship types originating from codes

  • RELATIONSHIP_TYPES_TO() returns relationship types pointing to codes

See also

Other Code relationships: attributes(), parent_child_retrieval

Examples

create_dummy_database()
#>  Dummy database ready to use!
#>  To reconnect to your previous database:
#>   `Sys.setenv(CODEMINER_DB_PATH = "/tmp/Rtmp7fg0Bd/file1c7d66838478.duckdb")`
#>   `codeminer_connect()`
# RELATIONSHIP_TYPES_FROM returns types originating from codes
# RELATIONSHIP_TYPES_TO returns types pointing to codes