You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suggestion that you do not have to tackle now since reviewers might have an opinion too.
Could the for loop be replaced with more functional code where the name of functions might help understand what's being calculated.
In R/data_manipulation.R:
is_empty_description <- function(index, table) {
nchar(table$description[index] ||
table$description[index] == "Description to follow") ||
table$description[index] == "NA" # why doesn't `is.na()` work by the way?
}
# untested, and might be wrong
table$description <- purrr::map_lgl(seq_len(nrow(table_df)), is_empty_description, table = table)
# this returns a logical not character
RayStick
changed the title
Suggestion that you do not have to tackle now since reviewers might have an opinion too.
Replace loop with more functional code
Dec 17, 2024
Suggestion that you do not have to tackle now since reviewers might have an opinion too.
Could the for loop be replaced with more functional code where the name of functions might help understand what's being calculated.
In
R/data_manipulation.R
:Originally posted by @maelle in #167 (comment)
The text was updated successfully, but these errors were encountered: