getAttrValues: All unique values for any given attribute

Description Usage Arguments Value See Also Examples

Description

Returns all unique values that can be found in the inputed attributes, i.e. all values that exist for attrid for all users.

Usage

1
getAttrValues(dataset, attrid = NULL)

Arguments

dataset

complete data.frame with a atid column referring to the attribute ID.

attrid

the ID(s) of the attribute(s) you want to know all unique values of.

Value

Unique values for the given attributes, applies for all users.

See Also

Other GetFunctions: benefitToCostAttr, getAllUserIds, getDefaultRefps, getRoundsById, getTableById, get_attrs_ID, normalize

Examples

1
2
getAttrValues(example_data, attrid=1) # Example return: [1] 0 3 2 1 meaning that category only has 4 possible values in the product configutrator, or at least those were the ones the users clicked on
getAttrValues(other_data, 100) #Possible catched error: The attrID you specified is not contain in your data.

avilesd/productConfig documentation built on May 11, 2019, 4:08 p.m.