Learn R Programming

fsbrain (version 0.5.2)

vertex.hemis: Return the proper hemi string ('lh' or 'rh') for each vertex.

Description

Return the proper hemi string ('lh' or 'rh') for each vertex.

Usage

vertex.hemis(surface, vertices)

Arguments

surface

hemilist of surfaces or a single integer which will be interpreted as the vertex count of the left hemisphere.

vertices

vector of positive integers, the query vertex indices. Can be in range 1..(nv(lh)+nv(rh)), i.e., across the whole brain.

Value

vector of character strings, each string is 'lh' or 'rh'.

Examples

Run this code
# NOT RUN {
  vertex.hemis(100L, vertices=c(99L, 100L, 101L));

# }

Run the code above in your browser using DataLab