Clean data and calculate the md5 hash
Internal utility function, primarily for prepareMplusData
.
Internal utility function, primarily for prepareMplusData
.
.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.
## 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")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.