getPosColIndex: Get 'mapframe' position column index.

Description Usage Arguments Value

View source: R/map.R

Description

Get position column index for a mapframe or equivalent data.frame. The position column is taken to be the leftmost matching column, where a matching column has a heading containing the word 'pos'. This can also be in uppercase (i.e. 'POS'), but can't be part of a larger word, such as 'position'. An error is raised if a position column cannot be found.

Usage

1
getPosColIndex(x, nmax = NULL)

Arguments

x

A mapframe or equivalent data.frame.

nmax

Maximum number of matching position columns. If specified, an error is raised if the number of matching position columns is greater than this maximum.

Value

Position column index.


gact/shmootl documentation built on Nov. 11, 2021, 6:23 p.m.