as.mapframe: Convert object to 'mapframe'.

Description Usage Arguments Value Mapframe See Also

View source: R/map.R

Description

Convert object to mapframe.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
as.mapframe(from, map.unit = NULL)

## S3 method for class 'data.frame'
as.mapframe(from, map.unit = NULL)

## S3 method for class 'list'
as.mapframe(from, map.unit = NULL)

## S3 method for class 'map'
as.mapframe(from, map.unit = NULL)

## S3 method for class 'mapframe'
as.mapframe(from, map.unit = NULL)

## S3 method for class 'scanone'
as.mapframe(from, map.unit = NULL)

Arguments

from

Object containing map data.

map.unit

Explicitly sets 'map.unit' attribute. This must be specified if an object does not have an existing 'map.unit' attribute.

Value

A mapframe corresponding to the input object.

Mapframe

A mapframe object is a class of data.frame that contains mapped information, or a data.frame with equivalent properties. The leftmost two columns of every mapframe object must be as follows:

Any number of additional data columns can be included. If present, the row names indicate the locus IDs, which should be unique within the given mapframe.

See Also

Other map utility functions: as.data.frame.mapframe, as.data.frame.map, as.map, extractMarkers, extractPseudomarkers, findFlanking, findLoci, findMarkers, getMapSteps, getMapUnit, gmapframe, hasMapCSV, inMapOrder, inferMapStep, mapframe, mapsEqual, orderMap, readMapCSV, readMapHDF5, readMapframeCSV, setMapUnit, writeMapCSV, writeMapHDF5, writeMapframeCSV


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