selectFromMap {ontoProc} | R Documentation |
select a set of elements from a term 'map' and return a contribution to a data.frame
selectFromMap(namedvec, index)
namedvec |
named character vector, as returned from |
index |
numeric() or integer(), typically of length one |
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
co = ontoProc::getCellOnto() mast = mapOneNaive("astrocyte", co) selectFromMap(mast, 1)