filter_dimension_by_string: Add an additional filter to any query list object that will...

View source: R/filter_on_dimensions.R

filter_dimension_by_stringR Documentation

Add an additional filter to any query list object that will filter for a specific string value of the target field

Description

Add an additional filter to any query list object that will filter for a specific string value of the target field

Usage

filter_dimension_by_string(
  efoqa_connection = connect_to_efoqa(),
  data_source_id,
  query_list,
  field_id,
  dimension_string
)

Arguments

efoqa_connection

optional existing efoqa connection for re-use or advanced use

data_source_id

Schema string for the target entity type (flights or events)

query_list

An existing query in R list form

field_id

The target field to filter on

dimension_string

The target string name of the discrete to filter to

Value

The input query list with an additional added filter for the target dimension string

Examples

## Not run: 
filter_dimension_by_string( efoqa_connection,
data_source_id = "[ems-core][entity-type][foqa-flights]",
query_list = standard_flight_query_json,
field_id = "[-hub-][field][[[ems-core][entity-type][foqa-flights]][[airframe-engine-field-set][base-field][airframe]]]",
dimension_string = "717-200")

## End(Not run)

ge-flight-analytics/refoqa documentation built on Oct. 15, 2024, 7:15 a.m.