CategoryTable: Returns a dataframe of the frequency or percentage of levels...

View source: R/zzz.R

CategoryTableR Documentation

Returns a dataframe of the frequency or percentage of levels of category.2 (column) for object split by each level of category.1 (row)

Description

Returns a dataframe of the frequency or percentage of levels of category.2 (column) for object split by each level of category.1 (row)

Usage

CategoryTable(object, category.1, category.2, percentage = FALSE)

Arguments

object

a Seurat object

category.1

a metadata field in the object

category.2

another metadata field in the object

percentage

if TRUE, returns percentages; otherwise, counts


satijalab/azimuth documentation built on Nov. 19, 2023, 8:34 a.m.