selectFromMap {ontoProc} | R Documentation

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

### Description

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

### Usage

    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

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

[Package ontoProc version 1.12.0 Index]