Skip to content

Commit

Permalink
perf: set use.names to false in data.frame call
Browse files Browse the repository at this point in the history
  • Loading branch information
m-muecke committed Aug 3, 2024
1 parent bd4a805 commit a474023
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/bbk.R
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ parse_bbk_metadata <- function(x, lang) {
nms <- node |>
xml2::xml_find_all(sprintf(".//common:Name[@xml:lang='%s']", lang)) |>
xml2::xml_text()
data.frame(id = id, name = nms)
data.frame(id = id, name = nms, check.names = FALSE)
})
do.call(rbind, res)
}
Expand Down
2 changes: 1 addition & 1 deletion R/ecb.R
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ parse_ecb_metadata <- function(x, lang = "en") {
nms <- node |>
xml2::xml_find_all(sprintf(".//com:Name[@xml:lang='%s']", lang)) |>
xml2::xml_text()
data.frame(agency = agency, id = id, name = nms)
data.frame(agency = agency, id = id, name = nms, check.names = FALSE)
})
do.call(rbind, res)
}
Expand Down

0 comments on commit a474023

Please sign in to comment.