ProjectMember | R Documentation |
ProjectMember class representing a CorrelAid Project Member
ProjectMember class representing a CorrelAid Project Member
project_id
character. id of the project in the form YYYY-mm-ABB.
volunteer_id
character. id of the volunteer.
team_id
character. id of the team. Defaults to 1.
start_active_ym
character. start_active_ym when the project member became active
end_active_ym
character. end_active_ym when the project member became active
behaviour_flag
boolean. whether or not there was noteworthy behaviour of the volunteer
behaviour_description
character. description of the behaviour.
is_public
boolean. should the member be included in the project description on the website.
role_id
integer. id of the role of the project member.
role
integer. role of the project member. create a volunteer
new()
ProjectMember$new( project_id, volunteer_id, role, start_active_ym = NA_character_, end_active_ym = NA_character_, behaviour_flag = FALSE, behaviour_description = NA_character_, is_public = FALSE )
project_id
character. ID of the project.
volunteer_id
integer. ID of the volunteer
role
character. name of the project role the team member assumes. Check projectutils::roles for available options.
start_active_ym
character. YYYY-mm when the team member became active in the team. defaults to NA
end_active_ym
character. YYYY-mm when the team member stopped being active in the team. defaults to NA
behaviour_flag
boolean. whether the team member exhibited any noteworthy behaviour. defaults to FALSE
behaviour_description
character. description of the behaviour. defaults to NA
is_public
boolean. whether or not the team member should be included on the public profile of the project on the CorrelAid website. defaults to FALSE. to_tibble
to_tibble()
returns a one row tibble representation of the Volunteer object. set_role
ProjectMember$to_tibble()
set_role()
ProjectMember$set_role(role)
role
character. role of the volunteer. see projectutils::roles for available options. set_behaviour
set_behaviour()
ProjectMember$set_behaviour(flag, description = NA)
flag
boolean. value of the flag for offending behaviour.
description
character. description of the offending behaviour. Defaults to NA_character_ , needs to be specified if setting the flag to TRUE. get_sql_tables
get_sql_tables()
a list function that returns tibble for each table
ProjectMember$get_sql_tables()
clone()
The objects of this class are cloneable with this method.
ProjectMember$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.