View source: R/setEmptyCellsValue.R
1 | setEmptyCellsValue(x, ef = c(NA, -999, 0), fw = NULL)
|
x |
Vector with multiple empty symbols. |
ef |
Empty Flag number,character, symbol (NA, Inf), etc. What is meant to be "empty". |
fw |
The unique number,character, symbol (NA, Inf), etc. which represents empty cells. What is the symbol meaning empty cell?. Default to |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | xe <- c(-999, 1, 0, NA)
print(xe)
setEmptyCellsValue(xe)
setEmptyCellsValue(xe, fw = 1000)
# example 2
xe <- data.frame(a = 3:6, b = 0, c = 0, d = 0, e = 0)
xe[2, 1] <- 0
xe[1, 4] <- 3
xe[2, 3] <- 3
xe[3, 3] <- 3
xe[3, 5] <- 3
xe[4, 2] <- 3
print(xe)
setEmptyCellsValue(x = xe, ef = 0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.