Counts image annotations by tags. See details for more information.

countImageAnnotationTags(object, tags = NULL, collapse = " & ")

Arguments

object

An object of class spata2.

tags

Character vector or list or NULL. If character vector only image annotations that pass the "tag test" are included in the counting process. If list, every slot should be a character vector of tag names that are counted as combinations.

collapse

Characer value. Given to argument collapse of sttringr::str_c() if input for argument tags is a list.

Value

A data.frame with two variables: tags and n