nCells: Number of miscellaneous content

View source: R/n-functions.R

nCellsR Documentation

Number of miscellaneous content

Description

These functions return a numeric value describing the number of n*() the object contains. (E.g. nCells() returns the total number of cells about which the object contains data, nConditions() returns the total number of conditions, etc. )

Usage

nCells(object, across = NULL, drop_na = FALSE, phase = NULL, ...)

nCellLines(object)

nConditions(object, phase = NULL)

Arguments

object

A valid cypro object.

across

Character value, character vector or NULL (see details for more). Specifies the grouping variable of interest.

Use getGroupingVariableNames() to obtain all variable names that group the cells of your experiment in a certain manner.

phase

Character or numeric. If character, the ordinal value referring to the phase of interest (e.g. 'first', 'second' etc.). referring to the phase of interest or 'all'. If numeric, the number referring to the phase.

If set to NULL takes the phase denoted as default with adjustDefault().

Ignored if the experiment design contains only one phase.

Value

A numeric value. If across is specified a data.frame.


theMILOlab/cypro documentation built on April 5, 2022, 2:03 a.m.