Learn R Programming

BMRSr (version 1.0.0)

check_data_item: Check the data item to ensure that it is a valid request

Description

Check the data item to ensure that it is a valid request

Usage

check_data_item(data_item, type)

Arguments

data_item

character; the data item to check

type

character; the type of data_item - one of "B Flow", "Legacy", or "REMIT"

Value

boolean: returns true if data_item is valid, false if it is not

Examples

Run this code
# NOT RUN {
check_data_item("B1720", "B Flow") #valid
check_data_item("B1720", "Legacy") #invalid - incorrect type
check_data_item("B1111", "REMIT") #invalid - incorrect data item and type
# }

Run the code above in your browser using DataLab