For example, c('red', 'brown') becomes list(red = 1, brown = 1).

rxsProject_vectorValue_to_valueList(x, entityId, allPossibleValues = NULL)

rxsTreeList_vectorValue_to_valueList(x, entityId, allPossibleValues = NULL)

rxsTree_vectorValue_to_valueList(x, entityId, allPossibleValues = NULL)

vectorValue_to_valueList(
  value,
  allPossibleValues = NULL,
  labels = NULL,
  valueForPresence = 1,
  valueForAbsence = 0
)

Arguments

x

A Rxs tree

entityId

The entity Id

allPossibleValues

A list of all possible values

value

The vector value to convert

labels

Optionally, a named vector with labels to replace the actual values with; names are values, values are labels.

valueForPresence

Value to assign for the elements in the vector

valueForAbsence

Value to assign for the elements in allPossibleValues that do not occur in the vector

Value

The list