get_raw_data: Return the raw data from the api

View source: R/db_get-helpers.R

get_raw_dataR Documentation

Return the raw data from the api

Description

The raw data is returned as a single string. It then needs to be passed to parse_txt_data or create_item_table (if item data are being returned).

Usage

get_raw_data(table, db, key)

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.

key

Your personal key for accessing the Oregon Extended Database. Defaults to db_key().

Value

Character vector — the raw data from the API


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