We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
worker ids need to be removed before making a project public.
remove the current participant.db files from the repo see here
save script below as anonymize_participants_db.R in the same folder as the participants.db file you want to anonymize
anonymize_participants_db.R
participants.db
# Load packages ------------------------------------------------------------------------------- library(RSQLite) library(tidyverse) # Handle input -------------------------------------------------------------------------------- args = commandArgs(T) filename = args[1] tablename = args[2] # Anonymize table ----------------------------------------------------------------------------- con = dbConnect(SQLite(),dbname = paste0(filename)); df.table = dbReadTable(con,tablename) dbDisconnect(con) df.table = df.table %>% mutate(datastring = str_replace_all(datastring,uniqueid,as.character(row_number())), datastring = str_replace_all(datastring,workerid,as.character(row_number()))) %>% select(-uniqueid,-workerid,-ipaddress) con = dbConnect(SQLite(), paste0(str_remove(filename,".db"),"_anonymized.db")) dbWriteTable(con,tablename,df.table) dbDisconnect(con)
Rscript anonymize_participants_db.R filename tablename
The text was updated successfully, but these errors were encountered:
No branches or pull requests
worker ids need to be removed before making a project public.
remove the current participant.db files from the repo see here
save script below as
anonymize_participants_db.R
in the same folder as theparticipants.db
file you want to anonymizeThe text was updated successfully, but these errors were encountered: