View source: R/db_get-helpers.R
get_colnames | R Documentation |
This is a weird function and one that is likely to need updating over time. As you can see below, the names depend on the year, because the tables don't always have the same columns in each year. I had already written the main function when I realized this so the rest of it is kind of hacked together from that. You might want to consider redoing this so it calls separate functions depending on the year, but there is a lot of overlap. Also new tables are likely to be added to the database that might be relevant.
get_colnames(table, raw, db)
table |
A string specifying the specific table from the Oregon Extended live database. Should be one of "Accommodations", "Answers", "Districts", "Exams", "Items", "Preferences", "Schools", "Students", "Students_old", "Submissions", "SupplementalDistricts", "SupplementalSchools", "Tasks", "User", "UserStudents", or "UserStudents_old". |
raw |
Logical, defaults to |
db |
A string specifying the database to query. Defaults to
|
Character vector - formatted column names in table
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.