Description Usage Arguments Value Examples
View source: R/statistic_functions.R
Identify the not applicable char in data.frame and return clean list with : 1) data.frame without not applicable character, 2) list of logical vector identifying the row witch should contain data
1 | manageNotApplicable(data, notApplicableChar = "NonApp")
|
data |
a data.frame containing data to clean |
notApplicableChar |
a character vector of length 1, with the not applicable character as in the data.frame |
a list of two elements : 1) data.frame without not applicable character, 2) list of logical vector identifying the row witch should contain data
1 2 3 4 5 | data <- data.frame(X1 = c(1, 1, 0, 1, 1, 0, 1, 1, 1),
X2 = c(0, 0, "NC", 1, 1, "NC", 0, 0, 1))
resultNotApplicable <- manageNotApplicable(data, "NC")
data <- resultNotApplicable[[1]]
resultNotApplicable <- resultNotApplicable[[2]]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.