zero_inflate_cells_count: Make sure that every roi + moi combination has counts

Description Usage Arguments Value

View source: R/missing_values.R

Description

This function ensures that every combination of region and measure contains counts. Basically, it takes care fo the situation when a given region-measure doesn't contain cells of the required kind (e.g. NAs or extreme observations). In such cases this function adds 0 as count to make sure that all region-measure combination are present in the summary plot.

Usage

1
zero_inflate_cells_count(dat, by, cells.count, rois, mois)

Arguments

dat

data.frame containing information about by column

by

quosure indicating which column we are aggregating along. Usually it is the subject or the item column.

cells.count

data.frame with cells count data produced by count_cells.

rois, mois

vectors of identifiers for regions and measures, in which cells have to be counted

Value

data.frame containing the original cells counts as well as added 0 counts


antonmalko/ettools documentation built on May 28, 2019, 3:35 p.m.