View source: R/clean_requests.R
| clean_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.
clean_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 "cleaned" data from the allocations table. By clean, we mean data that is more suitable for end-users. The exact data included will vary from one table to the next.
clean_requests("chicago", "ProgramType", "program_types")
clean_requests("houston", "SubDiscipline", "sub_disciplines")
# does not work because LeadershipCharacteristics are not requestable by Schools
clean_requests("jacksonville", "LeadershipCharacteristics", "leadership_characteristics")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.