ScotGovAnalysis / ScotGovAnalysis/cssampling
Reading used address file method
Open
@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
- Using
purrras 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()
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.