course_search: Search the online Smith College Course Catalog

View source: R/course_search.R

course_searchR Documentation

Search the online Smith College Course Catalog

Description

Search the online Smith College Course Catalog

Usage

course_search(
  year,
  semester,
  dept = "",
  instructor = "",
  instr_method = "",
  credits = "",
  course_number = "",
  course_keywords = "",
  course_levels = "",
  include_details = TRUE
)

Arguments

year

Scalar character vector identifying the academic year you would like to search for classes during. AY 2022-23 is identified as 2023, AY 2021-22 is identified as 2022, etc.

semester

Scalar character vector identifying you would like to search for classes during. Fall is identified as 01, J-Term is identified as 02, Spring is identified as 03.

dept

Scalar character vector identifying a department or program by it's three letter abbreviation (SDS, ENG, MTH, etc.). Note that searching for a specific department can return courses that are cross-listed in that department.

instructor

Scalar character vector describing the name of the instructor whose courses you want to search for.

instr_method

Scalar character vector, either "Online" or "In-Person".

credits

Scalar vector describing the number of credits you want the classes in the results to have. Can be numeric, but is coerced to character.

course_number

Scalar vector describing the course number you are searching for (e.g., 192, 220). Can be numeric, but is coerced to character.

course_keywords

Character vector identifying keyword to look for in course names and descriptions.

course_levels

A numeric vector with a most 4 elements. Elements should be restricted to integer values 1, 2, 3 or 4 (indicating a search for courses at the 100, 200, 300, or 400 level).

include_details

Logical indicating whether to include the expanded course details (e.g., prerequisites, curriculum distribution, etc.). This can be relatively slow, so for large searches it may be desirable to suppress this portion of the results.

Value

A data frame with up 19 variables:

  • Dept

  • Course.Num

  • Course.Sec

  • Title

  • Instructor

  • Waitlist

  • Credits

  • Course.Type

  • Grade.Mode

  • Coreq

  • Curriculum.Distribution

  • Time.Location

  • Max.Enrollment

  • Section.Enrollment

  • Waitlist.Count

  • Reserved.Seats

  • Enforced.Requirements

  • Instructional.Method

  • Description

Examples

## Not run: 
course_search(year = 2024, semester = "03", dept="SDS", course_levels = c(1, 2))

## End(Not run)


SmithCollege-SDS/sds documentation built on March 7, 2024, 9:53 p.m.