Extracts the imputed datasets contained within an imputations object generated by impute().
extract_imputed_dfs( imputations, index = seq_along(imputations$imputations), delta =NULL, idmap =FALSE)
Arguments
imputations: An imputations object as created by impute().
index: The indexes of the imputed datasets to return. By default, all datasets within the imputations object will be returned.
delta: A data.frame containing the delta transformation to be applied to the imputed dataset. See analyse() for details on the format and specification of this data.frame.
idmap: Logical. The subject IDs in the imputed data.frame's are replaced with new IDs to ensure they are unique. Setting this argument to TRUE attaches an attribute, called idmap, to the returned data.frame's that will provide a map from the new subject IDs to the old subject IDs.
Returns
A list of data.frames equal in length to the index argument.
Examples
## Not run:extract_imputed_dfs(imputeObj)extract_imputed_dfs(imputeObj, c(1:3))## End(Not run)