Learn R Programming

MplusAutomation (version 1.1.1)

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)

Value

A numeric vector

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

Examples

Run this code
MplusAutomation:::mplus_as.numeric("3.1D2")

Run the code above in your browser using DataLab