Learn R Programming

eye (version 1.2.1)

getElem: Find element based or strings

Description

Finds the element in an object for one of the following:

  • getElem_id ID column

  • getElem_eyecol eye column

  • getElem_eye columns that contain information for right/left eyes

  • getElem_va Visual acuity

  • getElem_iop IOP

getElem search a vector, the column names (data frame) or the names (list)

Usage

getElem_id(obj)

getElem_eyecol(obj)

getElem_eye(obj)

getElem_va(obj)

getElem_iop(obj)

Arguments

obj

can be vector, data frame or list

Value

vector

See Also

Other string matching functions: recodeye(), sort_substr(), str_search