Return the number of events in the dataset involving a certain gene or type of event.

nevents(x, genes = NA, types = NA)

Arguments

x

A TRONCO compliant dataset.

genes

The genes to consider, if NA all available genes are used.

types

The types of events to consider, if NA all available types are used.

Value

The number of events in the dataset involving a certain gene or type of event.

Examples

data(test_dataset)
nevents(test_dataset)
#> [1] 30