Giter Site home page Giter Site logo

wicher's Introduction

WICHE Enrollment Projections

wicher is a package used to make working with the WICHE enrollment projections easier in R. We generally use WICHE enrollments to figure out the percentage of students who participate in our assessments.

We also use WICHE to visualize demographics in our Excel dashboards so I'm putting some examples of visualizing in R below. I think this might make it easier to prototype the graphics before trying to work them into the dashboard.

Installing WICHE R Package

You can install wicher from my github repository like this:

# MAKE SURE YOU HAVE DEVTOOLS INSTALLED AND REFERENCED

install.packages("devtools")
library(devtools)

# USE DEVTOOLS TO INSTALL THE WICHE PACKAGE 

install_github('mattjcamp/wicher','mattjcamp')
library(wicher)

You will need to install the packages above if you want to reproduce these examples.

What's In WICHER?

Projections Dataframe

wiche_graduate_projections is the built in dataframe that comes with this package. It looks like this:

library(wicher)
library(tidyverse)

head(wiche_graduate_projections)
# A tibble: 6 × 8
  location sector     race grade  year flag_p_g flag_p_dpl       n
     <chr>  <chr>    <chr> <chr> <int>    <chr>      <chr>   <int>
1       us    all      all     1  2001        a          a 4112926
2       us      p    asian     1  2001        a          a  145272
3       us      p    black     1  2001        a          a  653734
4       us      p hispanic     1  2001        a          a  689669
5       us      p   native     1  2001        a          a   42576
6       us     np      all     1  2001        a          a  477261

SQLite Database

I also saved this dataframe in a local SQLite database. If you would like to use the database, you could do with with dbr like this:

library(dbr)

db_file <- system.file("wicher",
                       "wiche_graduate_projections.db",
                       package = "wicher")
conn <- init_sqlite(db_file)

"select * from wiche_graduate_projections limit 10" %>% 
  pull_data(conn)

close_connection(conn)
# A tibble: 10 × 8
   location sector     race grade  year flag_p_g flag_p_dpl       n
      <chr>  <chr>    <chr> <chr> <int>    <chr>      <chr>   <int>
1        us    all      all     1  2001        a          a 4112926
2        us      p    asian     1  2001        a          a  145272
3        us      p    black     1  2001        a          a  653734
4        us      p hispanic     1  2001        a          a  689669
5        us      p   native     1  2001        a          a   42576
6        us     np      all     1  2001        a          a  477261
7        us      p      all     1  2001        a          a 3635665
8        us      p    white     1  2001        a          a 2099255
9        us    all      all    10  2001        a          a 3818375
10       us      p    asian    10  2001        a          a  154097

wicher's People

Contributors

mattjcamp avatar

Watchers

 avatar  avatar  avatar

Forkers

jjesusfilho

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.