Read and optionally merge demographics file from prolific academic
prolific academic provides a demographics file. This reads it and merges with your data using PID and participant_id
umx_read_prolific_demog( file, base = "", df = NULL, verbose = FALSE, by.df = "PID", by.demog = "participant_id", vars = c("age", "Sex"), all.df = TRUE, all.demog = FALSE )
file |
Path to a file to read. |
base |
Optional path to folder |
df |
Optional existing datafile |
verbose |
Whether to print names in the file. |
by.df |
The ID name in your datafile (default = "PID") |
by.demog |
The ID name in the prolific demographics file (default = "participant_id") |
vars |
Vars to keep from demographics file (default = age & Sex) |
all.df |
Whether to keep all lines of df (default = TRUE) |
all.demog |
Whether to keep all lines (people) in the demographics file (default = FALSE) |
Other Data Functions:
noNAs()
,
umxFactor()
,
umxHetCor()
,
umx_as_numeric()
,
umx_cont_2_quantiles()
,
umx_lower2full()
,
umx_make_MR_data()
,
umx_make_TwinData()
,
umx_make_fake_data()
,
umx_make_raw_from_cov()
,
umx_polychoric()
,
umx_polypairwise()
,
umx_polytriowise()
,
umx_read_lower()
,
umx_rename()
,
umx_reorder()
,
umx_score_scale()
,
umx_select_valid()
,
umx_stack()
,
umx
## Not run: fp = "~/Desktop/prolific_export_5f20c3e662e3b6407dcd37a5.csv" df = umx_read_prolific_demog(fp, df = df) tmp = umx_read_prolific_demog(demog= fp, base = "", df = NULL, verbose = FALSE) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.