View source: R/clean_allocations.R
clean_allocations | R Documentation |
The allocations
table in artlookR stores information about resources (i.e., resourceable_type
s) that have been
allocated to schools, organizations, programs, partnerships, and profiles (i.e., allocateable_type
s).
clean_allocations( comm_name = NULL school_org_prog_part = c("Organization", "Partnership", "Profile", "Program", "School") type_of_resource = c("Approach","Discipline","EngagementType","FinancialAssistanceType","FundingType","Governance", "IdentityFrequency","IntegrationType","LeadershipCharacteristic","Obstacle","OutcomeType","ProgramType","ScheduleType", "SpaceType","Standard","SubDiscipline") table_of_resource = c("approaches","disciplines","engagement_types","financial_assistance_types","funding_types", "governances","identity_frequencies","integration_types","leadership_characteristics","obstacles","outcome_types", "program_types","schedule_types","space_types","standards","sub_disciplines") )
comm_name |
The community name as recognized by artlookR |
school_org_prog_part |
The |
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.
There is a variable in the allocations table called focus
, which in years 2018-19 and earlier used to indicate the focus area for a partner's programs.
This variable is excluded as an output from this data pull because it became obsolete in 2019-20. For data prior to 2019-20, a separate data pull must be run to
access the data stored in the focus
variable. There may be some data stored in this field even after 2019-20 because it was carried over as part of a partner
copying a program from a prior year where there was info in the field. In such cases, the data in this field should not be used.
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_allocations("chicago", "Program", "ProgramType", "program_types") clean_allocations("houston", "Organization", "LeadershipCharacteristic", "leadership_characteristics") # does not work because ProgramTypes are not allocated to Schools clean_allocations("chicago", "School", "ProgramType", "program_types")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.