Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: IPEDSuploadables
Title: Transforms Institutional Data into Text Files for IPEDS Automated Import/Upload
Version: 3.0.0
Version: 3.0.1
Authors@R: c(
person(given = "Alison", family = "Lanski", role = c("aut", "cre"), email = "alanski@nd.edu"),
person("Shiloh", "Fling", role = c("aut"),email = "shiloh.fling@unlv.edu"),
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# IPEDSuploadables 3.0.1
* Adjusting final file column names for HR wording update (no user changes necessary)
* Adding data check to OM for duplicate student IDs

# IPEDSuploadables 3.0.0
* Adding Admissions survey parts for demographic and test score breakouts

Expand Down
2 changes: 1 addition & 1 deletion R/make_hr_part_A1.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ make_hr_part_A1 <- function(df) {
PART = "A1",
TENURE = .data$TENURE,
RANK = .data$RANK,
RACEETHNICITYGENDER = .data$REG,
RACEETHNICITYSEX = .data$REG,
COUNT = .data$COUNT
)

Expand Down
2 changes: 1 addition & 1 deletion R/make_hr_part_B1.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ make_hr_part_B1 <- function(df) {
SURVSECT = "HR1",
PART = "B1",
OCCCATEGORY1 = .data$OCCCATEGORY1,
RACEETHNICITYGENDER = .data$REG,
RACEETHNICITYSEX = .data$REG,
COUNT = .data$COUNT
)
}
2 changes: 1 addition & 1 deletion R/make_hr_part_D1.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ make_hr_part_D1 <- function(df) {
SURVSECT = "HR1",
PART = "D1",
OCCCATEGORY1 = .data$OCCCATEGORY1,
RACEETHNICITYGENDER = .data$REG,
RACEETHNICITYSEX = .data$REG,
COUNT = .data$COUNT
)

Expand Down
2 changes: 1 addition & 1 deletion R/make_hr_part_D2.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ make_hr_part_D2 <- function(df) {
SURVSECT = "HR1",
PART = "D2",
OCCCATEGORY4 = .data$OCCCATEGORY4,
RACEETHNICITYGENDER = .data$REG,
RACEETHNICITYSEX = .data$REG,
COUNT = .data$COUNT
)

Expand Down
2 changes: 1 addition & 1 deletion R/make_hr_part_G1.R
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ make_hr_part_G1 <- function(df) {
SURVSECT = "HR1",
PART = "G1",
RANK = .data$RANK,
GENDER = .data$GENDER,
SEX = .data$GENDER,
`12MCOUNT` = .data$`12mCOUNT`,
`11MCOUNT` = .data$`11mCOUNT`,
`10MCOUNT` = .data$`10mCOUNT`,
Expand Down
2 changes: 1 addition & 1 deletion R/make_hr_part_H1.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ make_hr_part_H1 <- function(df) {
SURVSECT = "HR1",
PART = "H1",
TENURE = .data$TENURE,
RACEETHNICITYGENDER = .data$REG,
RACEETHNICITYSEX = .data$REG,
COUNT = .data$COUNT
)
}
2 changes: 1 addition & 1 deletion R/make_hr_part_H2.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ make_hr_part_H2 <- function(df) {
SURVSECT = "HR1",
PART = "H2",
OCCCATEGORY5 = .data$OCCCATEGORY5,
RACEETHNICITYGENDER = .data$REG,
RACEETHNICITYSEX = .data$REG,
COUNT = .data$COUNT
)
}
6 changes: 5 additions & 1 deletion R/prep_om_data_frame.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ prep_om_data_frame <- function(df) {

colnames(df) <- stringr::str_to_upper(colnames(df))


if("EXCLUSION" %in% colnames(df) & sum(grepl(x = df$EXCLUSION, "clude")) > 1){
df <- df %>%
dplyr::rename(COHORTSTATUS = .data$EXCLUSION)
Expand All @@ -34,5 +33,10 @@ prep_om_data_frame <- function(df) {
warning("Please use the CohortStatus column with values of 'Include' or 'Exclude' to indicate exclusions.")
}

mult_rows <- df %>% dplyr::count(.data$STUDENTID) %>% dplyr::filter(n > 1)
if (nrow(mult_rows) > 0) {
warning(paste0("IPEDS requests highest degree only for each student in each award year. These StudentIds may have multiple degree levels: ", toString(unique(mult_rows$STUDENTID))))
}

return(df)
}
Binary file modified data/part_outputs.rda
Binary file not shown.
8 changes: 4 additions & 4 deletions docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions docs/404.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Content not found. Please use links in the navbar.

# Page not found (404)
6 changes: 3 additions & 3 deletions docs/ISSUE_TEMPLATE.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions docs/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# NA

**Please fill out all sections on here so we can assist you in a timely
manner!**

**Describe the bug** A clear and concise description of what the bug is.

**To Reproduce** Steps to reproduce the behavior: 1. \<!– Replace this
text –!\> 2. \<!– Replace this text –!\>

**Expected behavior** A clear and concise description of what you
expected to happen.

**Additional context** Add any other context about the problem here.
6 changes: 3 additions & 3 deletions docs/LICENSE-text.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions docs/LICENSE-text.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# License

YEAR: 2020
COPYRIGHT HOLDER: Alison Lanski
Loading
Loading