Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #91 from RMI-PACTA/90-rm-code-level
Browse files Browse the repository at this point in the history
replace code_level with nchar
  • Loading branch information
jacobvjk authored Mar 14, 2024
2 parents 121744c + 6a81c47 commit b9d0698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/functions_prep_project.R
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ sample_raw_loanbook_from_abcd <- function(abcd = NULL,
sample_sector_codes <- r2dii.data::nace_classification %>%
dplyr::filter(.data$borderline == FALSE) %>%
dplyr::group_by(.data$sector) %>%
dplyr::slice_max(.data$code_level, n = 1) %>%
dplyr::slice_max(nchar(.data$code), n = 1) %>%
dplyr::slice_head(n = 1) %>%
dplyr::ungroup() %>%
dplyr::select("sector", "code") %>%
Expand Down

0 comments on commit b9d0698

Please sign in to comment.