Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

mplus_as.numeric

Convert Mplus Number to Numeric


Description

Helper function to convert strings formatted in Mplus Fortran-style scientific notation using D to indicate double.

Usage

mplus_as.numeric(vec, expect_sig = FALSE)

Arguments

vec

A character vector of Mplus numbers to convert to numeric

expect_sig

Whether to expect significance values denoted by asterisk; yields a 'sig' attribute that will be TRUE/FALSE

Value

A numeric vector

Examples

MplusAutomation:::mplus_as.numeric("3.1D2")

MplusAutomation

An R Package for Facilitating Large-Scale Latent Variable Analyses in Mplus

v0.8
LGPL-3
Authors
Michael Hallquist [aut, cre], Joshua Wiley [aut], Caspar van Lissa [ctb], Daniel Morillo [ctb]
Initial release
2020-09-28

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.