drop_na_rows: Drop rows that are 'NA' in all variables.

Description Usage Arguments Value Examples

View source: R/drop_na_rows.R

Description

drop_na_rows drops rows that are NA in all variables.

Usage

1
drop_na_rows(population, variables)

Arguments

population

tbl with grouping (metadata) and observation variables.

variables

character vector specifying observation variables.

Value

population without rows that have NA in all variables.

Examples

1
2
3
4
5
6
7
8
9
 population <- tibble::data_frame(
   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, NA, 16, 8, 8, 7, 7),
   AreaShape_Length = c(2, 3, NA, NA, 4, 5, 1, 5)
 )
variables <- c('AreaShape_Area','AreaShape_Length')
drop_na_rows(population, variables)

CellProfiler/cytominer documentation built on May 6, 2019, 9:29 a.m.