create_empty_frame: Create empty data frame with correct column names.

View source: R/db_get-helpers.R

create_empty_frameR Documentation

Create empty data frame with correct column names.

Description

This function helps handle situations with no data by returning an empty data frame with the correct column names for the user-specified table.

Usage

create_empty_frame(table, db)

Arguments

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".

db

A string specifying the database to query. Defaults to NULL, in which case the most recent database is queried. These names should be specified either as a four digit year (e.g., 1718) or as in the database, e.g., "ORExt1718" would query the 1718 database.

Value

data.frame - contains column names that would be present for user-requested table


UO-BRT/orextdb documentation built on Jan. 29, 2023, 8:53 a.m.