Skip to content

Commit

Permalink
Improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
hsonne committed Aug 12, 2023
1 parent 407a0bb commit 5df569e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions R/analyse.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ analyse <- function(x, path = "")

if (is.recursive(x)) {

result[["children"]] <- lapply(seq_along(x), function(i) {
analyse(x[[i]], path = paste(path, i, sep = "/"))
})
result[["children"]] <- lapply(
X = seq_along(x),
FUN = function(i) {
analyse(x[[i]], path = paste0(path, "/", i))
}
)
}

result
Expand Down

0 comments on commit 5df569e

Please sign in to comment.