getTableById: Extract the part of the provided dataset that corresponds to...

Description Usage Arguments Value See Also Examples

Description

With userid you select the rows from one user, all given columns of dataset remain intact for that user. We assume the given dataset was generated by data from a product configurator, and therefore has at least one column with users' ids. Other columns may include, but are not limited to, attribute IDs, round, selected attribute and selectable attribute.

Usage

1
getTableById(dataset, userid = NULL, ...)

Arguments

dataset

the data.frame (table) you want to separate in a smaller data.frame for a specific user.

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 named list of data.frames with the same columns as the original data.frame, but the information on the rows are only for each user.

See Also

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

Examples

1
2
3
#Not Runnable yet
getTableById(camera_data, 9:25)
getTableById(as.data.frame(matrix_full), 12)

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