Description Usage Arguments Examples
Create new variable(s) indicating if there are missing values in other variable(s)
1 |
data |
a data frame object. |
Var |
a character vector naming the variable(s) within which you would like to identify missing values. |
Stub |
a character string indicating the stub you would like to append to the new variables' name(s). |
reverse |
logical. If |
message |
logical. Whether or not to give you a message about the names of the new variables that are created. |
1 2 3 4 5 6 7 8 9 10 | # Create data frame
a <- c(1, 2, 3, 4, NA)
b <- c( 1, NA, 3, 4, 5)
ABData <- data.frame(a, b)
# Create varibles indicating missing values in columns a and b
ABData1 <- NaVar(ABData, Var = c('a', 'b'))
# Create varible indicating missing values in columns a with reversed dummy
ABData2 <- NaVar(ABData, Var = 'a', reverse = TRUE, message = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.