getRoundsById: Get the amount of rounds (clicks) for each user

Description Usage Arguments Value See Also Examples

Description

Allows to calculate the amount of times a user interacted with the product configurator, i.e. amount of clicks for any given userid. The entered data.frame should signalize this information with a column named round, which should only contain numeric values. Function is vectorised in userid.

Usage

1
getRoundsById(dataset, userid = NULL)

Arguments

dataset

the complete data.frame. You can also input the data.frame specific for one user, such as the one generated with getTableById.

userid

an integer vector, that identifies which rows (from which user) of the whole given dataset should be extracted. This parameter is vectorised, you may enter more userid at once.

Value

A list of integer vectors representing the index of each round/click and therefore the total amount of rounds for the selected user.

See Also

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

Examples

1
2
3
#Not Runnable yet
getRoundsById(example_data, userid = 6) # Example return: [1] 0 1 2 3 4 5 6 7 8
getRoundsById(as.data.frame(matrix_full), 12:10)

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