From a cohort object, this function extracts a vector of the sample ids available for a patient.

Samples(x, p)

Arguments

x

A REVOLVER cohort.

p

The id of a patient in the cohort.

Value

Sample names for a custom patient.

See also

Examples

# Data released in the 'evoverse.datasets' data('TRACERx_NEJM_2017_REVOLVER', package = 'evoverse.datasets') Samples(TRACERx_NEJM_2017_REVOLVER, 'CRUK0002')
#> [1] "R1" "R2" "R3"
Samples(TRACERx_NEJM_2017_REVOLVER, 'CRUK0008')
#> [1] "R1" "R2"