Learn R Programming

umx (version 1.4.0)

umx_string_to_algebra: umx_string_to_algebra

Description

This is useful because it lets you use paste() and rep() to quickly and easily insert values from R variables into the string, then parse the string as an mxAlgebra argument. The use case this time was to include a matrix exponent (that is A

Usage

umx_string_to_algebra(algString, name = NA, dimnames = NA)

Arguments

algString
a string to turn into an algebra
name
of the returned algebra
dimnames
of the returned algebra

Value

- mxAlgebra

References

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

See Also

Other Misc: umxEval, umx_APA_model_CI, umx_add_variances, umx_apply, umx_default_option, umx_get_bracket_addresses, umx_object_as_str, umx

Examples

Run this code
## Not run: 
# alg = umx_string_to_algebra(paste(rep("A", nReps), collapse = " %*% "), name = "test_case")
# ## End(Not run)

Run the code above in your browser using DataLab