Learn R Programming

PGSEA (version 1.46.0)

scanSmc: Scan through smc objects

Description

This function scans through smc objects and returns those with specified attributes.

Usage

scanSmc(smcList, scanSlot = "private", scanFor = "no")

Arguments

smcList
list of "smc" objects
scanSlot
character - which smc slot to investigate
scanFor
character - what character string to look for

Value

a list of "smc" objects with the desired attribute

Examples

Run this code

datadir <- system.file("extdata", package = "PGSEA")
sample <- readGmt(file.path(datadir, "sample.gmt"))
sample[1:2] <- editSmc(sample[1:2],"creator","Joe Smith")

scanned <- scanSmc(sample,"creator","Joe Smith")

str(scanned)


Run the code above in your browser using DataLab