isTrueVal: Check if an element contains a TRUE value

View source: R/checks.R

isTrueValR Documentation

Check if an element contains a TRUE value

Description

This function checks the value returned from an mdqe xpath selector.

Usage

isTrueVal(variableName, variable, pos = as.integer(1))

Arguments

variableName

The name of the variable that contains selected values.

variable

The variable that contains selected values.

pos

The list element to check.

Details

If the variable is not defined or the value is NA, then FALSE is returned. TRUE is only returned if the value is present and is TRUE.

Value

logical


NCEAS/metadig-r documentation built on June 17, 2022, 5:09 a.m.