Learn R Programming

IdMappingAnalysis (version 1.16.0)

Misc$CsvList.merge: Pairwise merge of two string vectors

Description

Pairwise merge of two string vectors.

Usage

## Static method (use this): ## Misc$CsvList.merge(s1, s2, mergeOp, asStrings=TRUE, ...)
## Don't use the below: "CsvList.merge"(static, s1, s2, mergeOp, asStrings=TRUE, ...)

Arguments

s1
First string vector.
s2
Second string vectors.
mergeOp
Merging operation (intersect, setdiff etc.)
asStrings
If TRUE (default), convert the resulting string vector into the vector of comma separated strings.
...
Not used

Value

If asStrings=TRUE, the vector of comma separated strings representing the merging results, and if asStrings=FALSE, then result is a matrix of strings where each row represents the pairwise merge.

See Also

For more information see Misc.

Examples

Run this code
 mrg<-Misc$CsvList.merge(c("a","b"),c("d","f"),mergeOp=union);
 

Run the code above in your browser using DataLab