explore data design

Description

explore data structure with respect to specific missing code (e.g. "missing by design")

Usage

1
exploreDesign ( dat , na = NA , id = NULL , itemsPerPerson = TRUE , personsPerItem = TRUE )

Arguments

dat

data.frame

na

missing specification

id

id variable in dat if exists

itemsPerPerson

logical , if TRUE items per person list is returned

personsPerItem

logical , if TRUE persons per item list is returned

Value

depends on itemsPerPerson and personsPerItem , if both are TRUE a list with both elements is returned

Author(s)

Martin Hecht

Examples

1
2
3
4
data(science1)
d <- science1[,!colnames(science1) %in% science1.context.vars]
design <- exploreDesign ( dat = d , na = "mbd" , id = "id" )
str(design)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.