umx_make_twin_data_nice: Convert a twin dataset into umx standard format.

Description Usage Arguments Value References See Also Examples

View source: R/umx_nice_data.R

Description

umx_make_twin_data_nice is a function to convert your twin data into a format used across umx. Specifically:

  1. Existing column for zygosity is renamed to "zygosity".

  2. sep is set to "_T"

  3. The twinID is is set to sequential digits, i.e. 1,2...

Usage

1
umx_make_twin_data_nice(data, sep, zygosity, numbering)

Arguments

data

a data.frame() to check/convert.

sep

existing separator string (will be updated to "_T").

zygosity

existing zygosity column name (will be renamed zygosity).

numbering

existing twin sequence string (will be updated to _T1, _T2, _T3).

Value

References

See Also

Other Twin Data functions: umx_long2wide(), umx_make_TwinData(), umx_residualize(), umx_scale_wide_twin_data(), umx_wide2long(), umx

Examples

1
2
3
tmp = umx_make_twin_data_nice(twinData, sep="", numbering = 1:5, zyg="zygosity")
namez(tmp)
# m1 = umxACE("wt")

tbates/umx documentation built on March 30, 2020, 7:56 a.m.