as.Map-methods: Convert a Data Frame to a 'Map' Object.

Description Usage Arguments Value Author(s) Examples

Description

This S4 function convert or creates a Map object. The input can be either a data frame or a list of Chrom objects. If the data for minor allele frequency (Maf) are missing in the input, their values are to be NAs. The default values for "Type" and "Status" are "C" and 0, repectivelyl, if they are missing in the input.

Usage

1
2
3
4
5
6
7
as.Map(object)

## S4 method for signature 'list'
as.Map(object)

## S4 method for signature 'data.frame'
as.Map(object)

Arguments

object

An input object, which can be either a data frame or a list of Chrom objects.

Value

An Map object.

Author(s)

Nick X-L Wu

Examples

1
2
3
4
tmpdat<-as.data.frame(bov80K)
class(tmpdat)
tmpmap<-as.Map(tmpdat)
class(tmpmap)

selectSNPs documentation built on Feb. 28, 2020, 5:08 p.m.