user_allocated_fromset: Which items allocated (or not allocated) to user

View source: R/database_interactivity.R

user_allocated_fromsetR Documentation

Which items allocated (or not allocated) to user

Description

Returns the elements of a set of documents which are allocated (or not allocated) to a user.

Usage

user_allocated_fromset(user_id, set, not_allocated = FALSE)

Arguments

user_id

The user id to check in the database.

set

The set of documents to check.

not_allocated

If FALSE (default) returns the items allocated to the user, if TRUE returns items NOT allocated to the user.

Value

A vector numbers representing the document ids from the set which are allocated to the user (or which are not allocated to the user if not_allocated=TRUE).

Examples

# returns the trainingset documents allocated to user 1
user_allocated_fromset(1, set=define_trainingset())

# returns the trainingset documents not allocated to user 1
user_allocated_fromset(1, set=define_trainingset(), not_allocated=TRUE)


gidonc/durhamevp documentation built on April 8, 2022, 10:31 a.m.