Skip to content

Commit 3a87491

Browse files
committed
avoid loading entire crosswalks table
1 parent af1a529 commit 3a87491

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

R/convert_nuts_version.R

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,7 @@ convert_nuts_version <-
180180

181181
# Prepare join with cross walk such that missing NUTS codes within groups are kept
182182
# - Filter cross walks to desired version
183-
cross_walks <- get("cross_walks")
184-
cross_walks <-
185-
cross_walks[cross_walks$to_version == to_version, ]
183+
cross_walks <- get("cross_walks")[cross_walks$to_version == to_version, ]
186184

187185
# - Create group structure
188186
group_structure <- data %>%

0 commit comments

Comments
 (0)