vectorValue_to_valueList.Rd
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
)
A Rxs tree
The entity Id
A list of all possible values
The vector value to convert
Optionally, a named vector with labels to replace the actual values with; names are values, values are labels.
Value to assign for the elements in the vector
Value to assign for the elements
in allPossibleValues
that do not occur in the vector
The list