Learn R Programming

PGSEA (version 1.46.0)

editSmc: Edit "smc" objects

Description

This function will edit a single or list of "smc" objects.

Usage

editSmc(smcList, attName = "creator", newAtt = "changed!!")

Arguments

smcList
a list of "smc" objects
attName
character - which slot to change
newAtt
character - what to change the slot to

Value

a list of edited "smc" objects

Examples

Run this code

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


Run the code above in your browser using DataLab