From 19779e3fd6c4e9265661f617103e7f8dda044444 Mon Sep 17 00:00:00 2001 From: Jennit07 <67372904+Jennit07@users.noreply.github.com> Date: Mon, 14 Aug 2023 15:17:35 +0100 Subject: [PATCH] Update NSU code for new 22/23 cohort (#784) Update `check_year_valid` for NSUs --- R/check_year_valid.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/check_year_valid.R b/R/check_year_valid.R index d170cd5b5..1361eb47e 100644 --- a/R/check_year_valid.R +++ b/R/check_year_valid.R @@ -42,7 +42,7 @@ check_year_valid <- function( return(FALSE) } else if (year >= "2122" && type %in% c("CMH", "DN")) { return(FALSE) - } else if (year >= "2223" && type %in% "NSU") { + } else if (year >= "2324" && type %in% "NSU") { return(FALSE) } else if (year >= "2324" && type %in% c("SPARRA", "HHG")) { return(FALSE)