R/make_ef1_part_F.R

Defines functions make_ef1_part_F

Documented in make_ef1_part_F

#' Make Fall Enrollment Part F
#'
#' @description Student Faculty Ratio
#'
#' @param df A dataframe (either "students" or "retention") as a unitid source
#'
#' @importFrom svDialogs dlg_input
#'
#' @return A dataframe with the required IPEDS structure for this survey part
#' @export
#'

make_ef1_part_F <- function(df) {

  ratio <- svDialogs::dlg_input(default = 0, message = "Please enter your student/faculty ratio as a whole number")$res

  partF <- data.frame(UNITID = get_ipeds_unitid(df),
                      SURVSECT = "EF1",
                      PART = "F",
                      ST_STAFF_RATIO = ratio
                     )

}

Try the IPEDSuploadables package in your browser

Any scripts or data that you put into this service are public.

IPEDSuploadables documentation built on April 3, 2025, 9:36 p.m.