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 text file
#' @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
                     )

}
AlisonLanski/IPEDSuploadables documentation built on Nov. 2, 2023, 10:54 a.m.