getPosColNameMapUnit: Get map unit from position column heading.

Description Usage Arguments Value Map Units

View source: R/map.R

Description

Get map unit from position column heading.

Usage

1
2
3
4
5
6
7
getPosColNameMapUnit(x)

## S3 method for class 'character'
getPosColNameMapUnit(x)

## S3 method for class 'data.frame'
getPosColNameMapUnit(x)

Arguments

x

A mapframe or equivalent data.frame, or a position column heading.

Value

Map unit indicated by the position column heading. Returns NA if map unit information not found in position column heading.

Map Units

A map or mapframe must express positions in either genetic or physical map units. Genetic map positions must be in centiMorgans (cM), while physical map positions must be in base pairs (bp), kilobases (kb), or Megabases (Mb).


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