scanSmc: Scan through smc objects

Description Usage Arguments Value Author(s) Examples

View source: R/PGSEA.R

Description

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

Usage

1
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

Author(s)

Karl Dykema <karl.dykema@vai.org>

Examples

1
2
3
4
5
6
7
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)

PGSEA documentation built on April 28, 2020, 8:28 p.m.