match_instruments: Match Instruments Function

View source: R/match_instruments.R

match_instrumentsR Documentation

Match Instruments Function

Description

This function takes a list of instruments, converts it to a format acceptable by the database, and matches the instruments using the 'Harmony Data API'. It returns the matched instruments.

Usage

match_instruments(instruments, is_negate = TRUE)

Arguments

instruments

A list of instruments to be matched.

is_negate

A boolean value to toggle question negation. Default is TRUE.

Value

A list of matched instruments returned from the 'Harmony Data API'.

Author(s)

Ulster University [cph]

Examples





instrument_A <- create_instrument_from_list(list(
  "How old are you?",
  "What is your gender?"
))

instrument_B <- create_instrument_from_list(list(
  "Do you smoke?"
))

instruments <- list(instrument_A, instrument_B)

matched_instruments <- match_instruments(instruments)



harmonydata documentation built on April 3, 2025, 6:33 p.m.