Defines an ids subset.

emr_db.subset(src = "", fraction = NULL, complementary = NULL)

Arguments

src

track name or ids table or 'NULL'

fraction

fraction of data to be sampled from 'src' in [0,1] range

complementary

'TRUE' for a complementary subset, otherwise 'FALSE'

Value

None.

Details

'emr_db.subset' creates an ids subset" ("viewport") of data of "fraction * sizeof('src')" size by sampling the ids from 'src'. Once the subset is defined only the ids that are in the subset are used by various functions and iterators. Other ids are ignored.

'src' can be a track name or an ids table. If 'complementary' is 'TRUE' the complementary set of sampled ids is used as a subset.

If 'src' is 'NULL' the current subset is annihilated.