na.check2 | R Documentation |
Returns basic information on each field in a data.frame, like count of rows that are zero, negative, NA, infinite, etc.
Slow - work in progress Leaves out logical, complex?, character, etc. cols this version fails to handle fields that are factor class!?
na.check2(df)
df |
Matrix or data.frame to examine. Cannot be a single vector currently. |
Returns a vector of results, one per col of df
matrixStats::signTabulate()
minNonzero()
and
experimental variations on na.check: na.check()
na.check2()
@export
## Not run:
system.time(x = na.check(data.frame(a = -1:1e6, b = 'text', c = c(NA, 1, 2)), min.text = FALSE) )
system.time(x = na.check2(data.frame(a = -1:1e6, b = 'text', c = c(NA, 1, 2)), min.text = TRUE) )
na.check(data.frame(a = -1:10, b = 'text', c = c(NA, 1, 2)))
na.check2(data.frame(a = -1:10, b = 'text', c = c(NA, 1, 2)))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.