missPat {nlmeU} | R Documentation |
Extract pattern of missing data
Description
This function allows to compactly present pattern of missing data in a given vector/matrix/data frame or combination of thereof.
Usage
missPat(..., symbols = c("X", "-"), collapse = "",
missData = FALSE)
Arguments
... |
one or more vectors/matrices/data frames. They need to be compatible for columnwise binding. |
symbols |
vector containing two single characters
used to indicate NA and remaining values. By defualt it
has values: |
collapse |
an optional character string. It is used
in the internal call |
missData |
logical. If |
Value
character vector with as many elements as length of
vectors(s)/number of rows in matrices and/or data frames
in ...{}
argument(s). Attribute cnames
contains names of vectors/columns/variables. Optional
attribute missData
contains data frame with
missing pattern.
Author(s)
Andrzej Galecki and Tomasz Burzykowski
Examples
dtf <- subset(armd.wide,
select = c(visual12, visual24, visual52))
missPat(dtf, symbols = c("?","+"))