| get_requests | R Documentation |
The requests table in artlookR stores information about resources (i.e., resourceable_types) that have been
requested by schools. It's parallel to the get_allocations function but in this case since requests can only be made by schools, there is no
parallel to the allocateable_type that is used in that function. There are also fewer resourceable_types available than is the case in that
other function.
get_requests(
comm_name = NULL
type_of_resource = c("Discipline","ProgramType","ResourceType","SubDiscipline")
table_of_resource = c("disciplines","program_types","resource_types","sub_disciplines")
)
comm_name |
The community name as recognized by artlookR |
type_of_resource |
The |
table_of_resource |
The meta-data table to which the The contents of these meta-data tables can be separately checked with a call to an artlookR meta-data function that starts with meta_()
(e.g.,
|
You will need to run the connection.R script and create a connection object named myconn for this script to run.
A tibble / data frame with the following columns:
resourceable_type: should only be the value provided in type_of_resource
resourceable_id: the artlookR ID for the resource
school_year_id: artlookR school year in which the resource was allocated
tag: where applicable (e.g., SubDiscipline in Schools can be tagged as in_school, out_of_school, or both)
other_text: where applicable
name: the text name (level) of the resource
get_requests("chicago", "ProgramType", "program_types")
get_requests("houston", "SubDiscipline", "sub_disciplines")
# does not work because LeadershipCharacteristics are not requestable by Schools
get_requests("jacksonville", "LeadershipCharacteristics", "leadership_characteristics")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.