R/unlist-methods.R

setMethod("unlist", signature("KCData"), functionunlistSpm <- function(x, recursive="missing", use.names ="missing"){
	spmUnlisted <- unlist(x@data)
	spmPos <- spmUnlisted[grep("pos",names(spmUnlisted))]
	spmNeg <- spmUnlisted[grep("neg",names(spmUnlisted))]
	
	return(list(pos=spmPos,neg=spmNeg))
})

Try the KCsmart package in your browser

Any scripts or data that you put into this service are public.

KCsmart documentation built on Nov. 8, 2020, 7:08 p.m.