selectFromMap: select a set of elements from a term 'map' and return a...

Description Usage Arguments Value Examples

View source: R/mapNaive.R

Description

select a set of elements from a term 'map' and return a contribution to a data.frame

Usage

1
selectFromMap(namedvec, index)

Arguments

namedvec

named character vector, as returned from mapOneNaive

index

numeric() or integer(), typically of length one

Value

a data.frame; if index does not inherit from numeric, a data.frame of one row with columns 'ontoid' and 'term' populated with NA_character_ is returned, otherwise a similarly named data.frame is returned with contents from the selected elements of namedvec

Examples

1
2
3
co = ontoProc::getCellOnto()
mast = mapOneNaive("astrocyte", co)
selectFromMap(mast, 1)

ontoProc documentation built on Nov. 8, 2020, 4:49 p.m.