count_na_rows: Count the number of 'NA's per variable.

View source: R/count_na_rows.R

count_na_rowsR Documentation

Count the number of NAs per variable.

Description

count_na_rows counts the number of NAs per variable.

Usage

count_na_rows(population, variables)

Arguments

population

tbl with grouping (metadata) and observation variables.

variables

character vector specifying observation variables.

Value

data frame with frequency of NAs per variable.

Examples


population <- tibble::tibble(
  Metadata_group = c(
    "control", "control", "control", "control",
    "experiment", "experiment", "experiment", "experiment"
  ),
  Metadata_batch = c("a", "a", "b", "b", "a", "a", "b", "b"),
  AreaShape_Area = c(10, 12, 15, 16, 8, 8, 7, 7),
  AreaShape_length = c(2, 3, NA, NA, 4, 5, 1, 5)
)
variables <- c("AreaShape_Area", "AreaShape_length")
count_na_rows(population, variables)

CellProfiler/cytominr documentation built on July 2, 2023, 6:19 p.m.