Skip to content

Commit

Permalink
fix: speed up assignment of metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-davison committed Jan 21, 2025
1 parent baf5fa9 commit 556bc07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/importUKAQ-utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ readDAQI <- function(files, year, source) {
#' @param aq_data imported air quality data (annual, daqi, or otherwise)
#' @noRd
add_meta <- function(source, aq_data) {
meta_data <- importMeta(source = source, duplicate = TRUE)
meta_data <- importMeta(source = unique(source), duplicate = TRUE)

meta_data <- distinct(meta_data, source, site, .keep_all = TRUE) %>%
select(source, site, code, latitude, longitude, site_type)
Expand Down

0 comments on commit 556bc07

Please sign in to comment.