Learn R Programming

umx (version 4.20.0)

umx_file_load_pseudo: Read in files from pseudocons.

Description

Read in PRS scored files from pseudocons.

  1. Read the file

  2. Break it into pseudo and real rows

  3. Clean-up by deleting the pseudo suffix

  4. Rename NT vars with a suffix

  5. Merge files on ID and return

IDFIDBMIS1BMIS2BMIS3BMIS4...
1123450112345-0.032-0.77-0.40-3.87...
21234501-pseudo-1123450.117-0.66-0.33-4.08...

Usage

umx_file_load_pseudo(fn, bp, suffix = "_NT", chosenp = "S5")

Value

  • dataframe of real and pseudo PRS columns

Arguments

fn

The filename

bp

The path to the folder containing the file

suffix

to add to the NT columns (Default = "_NT")

chosenp

The suffix (pvalue) we desire to use (Default = "S5")

See Also

Other File Functions: dl_from_dropbox(), umx_make_sql_from_excel(), umx_move_file(), umx_open(), umx_rename_file(), umx_write_to_clipboard(), umx