Description Usage Arguments Value Examples
Count share of missing values in a variable
1 | check.emptycolumn(data, proportion = F)
|
data |
Dataframe to inspect |
proportion |
Boolean indicating whether we should return proportion of missing values or a boolean vector indicating whether all values are missing or not |
A named vector (from data
colnames)
of missing values proportion or TRUE/FALSE vector
1 2 3 4 5 | df <- data.frame(x1 = rnorm(10),x2 = rnorm(10))
df$x3 <- rep(NA,10)
df$x1[df$x1<0] <- NA
check.emptycolumn(df)
check.emptycolumn(df,proportion = T)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.