Learn R Programming

gRbase (version 1.3.9)

gRbase-utilities: Utility functions for gRbase

Description

Utility functions for gRbase package. Includes 'faster versions' of certain standard R functions.

Usage

uniquePrim(x)
setdiffPrim(x,y)
intersectPrim(x,y)
unlistPrim(l, recursive = TRUE, use.names = TRUE)

Arguments

x, y
Vectors
l
A list (of vectors)
recursive
logical. Should unlisting be applied to list components of x?
use.names
logical. Should names be preserved?

Value

  • A vector or a logical.

See Also

unique, setdiff, unlist

Examples

Run this code
uniquePrim(c(1,2,3,2,1,2))
setdiffPrim(c(1,3,2), c(2,3,4,5))
unlistPrim(list(c(1,2),c(2,3)))

Run the code above in your browser using DataLab