Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dh.tidyEnv does not work #110

Open
sidohaakma opened this issue Feb 17, 2022 · 0 comments
Open

dh.tidyEnv does not work #110

sidohaakma opened this issue Feb 17, 2022 · 0 comments

Comments

@sidohaakma
Copy link
Contributor

After having downloaded all the needed packages and logged in to access the alspac data (the same with the eden data), when I run this script, the environment gets not cleaned up:

core_nonrep <- c("child_id", "mother_id", "preg_no", "child_no", "cohort_id",
"agebirth_m_y", "parity_m", "abroad_mo", "breastfed_ever")

datashield.assign.table(
opals['alspac'], "core_nonrep",
"lc19/2_1_core_1_3/non_rep",
variables=core_nonrep
)

ds.recodeValues(
var.name = "core_nonrep$parity_m",
values2replace.vector = c(0, 1, 2, 3, 4),
new.values.vector = c(0, 1, 1, 1, 1),
newobj = "parity_bin",
datasources= opals)

ds.dataFrame(
x = c("core_nonrep", "parity_bin"),
newobj = "core_nonrep",
datasources= opals)

dh.tidyEnv(
obj = "parity_bin",
type = "remove")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant