umx (version 1.9.1)

umx_is_cov: umx_is_cov

Description

test if a data frame or matrix is cov or cor data, or is likely to be raw...

Usage

umx_is_cov(data = NULL, boolean = FALSE, verbose = FALSE)

Arguments

data

dataframe to test

boolean

whether to return the type ("cov") or a boolean (default = string)

verbose

How much feedback to give (default = FALSE)

Value

- "raw", "cor", or "cov", or, if boolean= T, then T | F

References

- http://www.github.com/tbates/umx

See Also

Other Test: umx_check_OS, umx_check_model, umx_check_names, umx_check_parallel, umx_check, umx_has_CIs, umx_has_been_run, umx_has_means, umx_has_square_brackets, umx_is_MxData, umx_is_MxMatrix, umx_is_MxModel, umx_is_RAM, umx_is_endogenous, umx_is_exogenous, umx_is_ordered

Examples

Run this code
# NOT RUN {
df = cov(mtcars)
umx_is_cov(df)
df = cor(mtcars)
umx_is_cov(df)
umx_is_cov(df, boolean = TRUE)
umx_is_cov(mtcars, boolean = TRUE)
# }

Run the code above in your browser using DataCamp Workspace