Learn R Programming

NIPTeR (version 1.0.2)

remove_sample_controlgroup: Remove a sample by samplename from control group

Description

Remove a sample by samplename from control group

Usage

remove_sample_controlgroup(samplename, nipt_control_group)

Arguments

samplename
Regular expression string. All matching samplenames are removed from the control group
nipt_control_group
NIPTControlGroup object to remove samples from

Value

NIPTControlGroup object

Details

This function removes a sample from the `NIPTControlGroup` object by name. Note that this function uses a regular expression, and if more sample_names satisfy the regular expression, they will also be removed. It returns a new NIPTControlGroup object.

Examples

Run this code
## Not run: 
# new_control_group <- remove_sample_controlgroup(samplename = unwanted_sample, 
#                                                 nipt_control_group = old_control_group)
# ## End(Not run)

Run the code above in your browser using DataLab