Description Usage Arguments Value Examples
Internal utility function, primarily for prepareMplusData
.
Internal utility function, primarily for prepareMplusData
.
1 2 3 | .cleanHashData(df, keepCols, dropCols, imputed = FALSE)
.hashifyFile(filename, hash, useexisting = FALSE)
|
df |
The R data.frame to be prepared for Mplus |
keepCols |
A character vector specifying the variable names
within |
dropCols |
A character vector specifying the variable names
within |
imputed |
A logical whether data are multiply imputed. Defaults
to |
filename |
A character vector containing the filename |
hash |
A character vector with the hash to use |
useexisting |
A logical whether to use an existing file name
if one is found containing the hash. Defaults to |
A list of the data and the md5 hash.
A list of the filename (plus hash) and a logical value whether a filename with the hash already existed or not.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## Not run:
## basic example
MplusAutomation:::.cleanHashData(mtcars)
## has changes when data changes
MplusAutomation:::.cleanHashData(mtcars[-15,])
## example on a list (e.g., for multiply imputed data)
MplusAutomation:::.cleanHashData(
list(
data.frame(a = 1:4),
data.frame(a = c(2, 2, 3, 4))),
imputed = TRUE)
## End(Not run)
MplusAutomation:::.hashifyFile("testit.dat", "abc")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.