powered by
Returns the number of values that are NA
n_na(x)na.howmany(x)na.n(x)pct_na(x)na.pct(x)
na.howmany(x)
na.n(x)
pct_na(x)
na.pct(x)
object to count how many values are NA
NA
n_na returns an integer. pct_na returns a numeric value 0-1.
n_na
pct_na
n_na counts the number of missing values. na.n is an alias in the dplyr style.
na.n
pct_na gives the percentage of values that are NA
# NOT RUN { x <- c( 1, NA, NA, 4:5 ) n_na(x) pct_na(x) # }
Run the code above in your browser using DataLab