Learn R Programming

ProFound (version 1.14.1)

profoundZapSegID: Zap Elements of segID_merge

Description

This function allows for safe zapping of the segID_merge structure. This is important since it can be tricky to remove elements with logic if you are not an R guru.

Usage

profoundZapSegID(segID, segID_merge)

Arguments

segID

Integer vector; segment IDs that you want to zap in segID_merge. All list entries that contain any of segID are entirely removed, so this process is very aggressive!

segID_merge

Integer list; each list element should specify collections of segments to be merged.

Value

Output is the zapped version of segID_merge:

Integer list; each list element should specify collections of segments to be merged.

Details

Zaps unwanted list entries easily.

See Also

profoundSegimFix

Examples

Run this code
# NOT RUN {
example=list(1:5, 11:15, 21:25, 31:35)

(profoundZapSegID(3, example)) #removes first list entry since 3 appears in that vector
(profoundZapSegID(40, example)) #does nothing, since 40 does not appear anywhere
# }

Run the code above in your browser using DataLab