View source: R/database_interactivity.R
user_allocated_fromset | R Documentation |
Returns the elements of a set of documents which are allocated (or not allocated) to a user.
user_allocated_fromset(user_id, set, not_allocated = FALSE)
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. |
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).
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.