assign_article_to_user: Assign article to a user.

assign_article_to_userR Documentation

Assign article to a user.

Description

assign_article_to_user assigns a specific article or set of articles to a specific user or set of users. Other document assignment functions are convenience wrappers around this function with arguments set appropriately.

assign_set assigns a whole set of articles to a user (articles which are already allocated to a user are not allocated again).

assign_testset_to_user assigns the test set of articles to a user specified by the user id. Articles which are already allocated to a user are not allocated again.

assign_trainingset_to_user assigns the training set to user (articles which are already allocated to a user are not allocated again).

assign_initalsets_to_users assigns the training set and test sets to a user or set of users (articles which are already allocated to a user are not allocated again).

Usage

assign_article_to_user(
  document_id,
  user_id,
  allocation_type,
  allocated_by,
  allocation_date = as.character(Sys.Date()),
  status = "NEW",
  coding_complete = 0
)

assign_set(
  user_id,
  set,
  allocation_type,
  allocated_by = "assign_set",
  status = "NEW"
)

assign_testset_to_user(
  user_id,
  allocation_type = "testing",
  allocated_by = "assign_testset_to_user"
)

assign_trainingset_to_user(
  user_id,
  allocation_type = "training",
  allocated_by = "assign_trainingset_to_user"
)

assign_initalsets_to_users(user_ids)

Arguments

document_id

Id of the document to be assigned or a vector of document ids.

user_id

Id of the user the document is to be assigned to or a vector of user ids.

allocation_type

Type of allocation (training, testing, coding, checking, ideal).

allocation_date

Date allocation made (usually today).

status

Status of document coding (generally 'NEW' for newly assigned documents).

Functions

  • assign_set: Assign set of articles to user

  • assign_testset_to_user: Assigns testset to user or users

  • assign_trainingset_to_user: Assigns training set to user

  • assign_initalsets_to_users: Assigns training and testset set to user


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