ScotGovAnalysis / ScotGovAnalysis/cssampling

Reading used address file method

Open
#8 0 comments 0 reactions 1 assignee View on GitHub

@emmaschw is already working on this.

Since Jun 13, 2024.

Dominant language
R
Stars
1
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Alternatives to this process (NOTE: It looks like process has changed slightly since I wrote the alternative methods, so they might not work exactly as written anymore):
https://github.com/ScotGovAnalysis/cssampling/blob/2c98c18a1e20848ff96b2a995f6ff460d8181c01/scripts/02_used_addresses.R#L38-L46

  1. Using purrr as used elsewhere in the project anyway:
usedaddresses <- previoussamples.path %>%
  purrr::map(\(x) haven::read_sas(x, col_select = "UDPRN") %>%
    mutate(survey = x), .progress = TRUE) %>%
  purrr::list_rbind()
  1. Using furrr
future::plan(future::multisession, workers = 8)

usedaddresses <- previoussamples.path %>%
  furrr::future_map_dfr(\(x) haven::read_sas(x, col_select = "UDPRN") %>%
    mutate(survey = x), .progress = TRUE)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.