mirror of
https://github.com/msberends/AMR.git
synced 2025-07-09 13:42:04 +02:00
unit tests
This commit is contained in:
@ -246,8 +246,8 @@ translate_into_language <- function(from,
|
||||
}
|
||||
|
||||
lapply(
|
||||
# starting from last row, since more general translations are on top, such as 'Group'
|
||||
rev(seq_len(nrow(df_trans))),
|
||||
# starting with longest pattern, since more general translations are shorter, such as 'Group'
|
||||
order(nchar(df_trans$pattern), decreasing = TRUE),
|
||||
function(i) {
|
||||
from_unique_translated <<- gsub(
|
||||
pattern = df_trans$pattern[i],
|
||||
|
Reference in New Issue
Block a user