Learn R Programming

selectSNPs (version 1.0.1)

as.Map: Convert a Data Frame to a Map Object.

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

as.Map(object)

# S4 method for list as.Map(object)

# S4 method for 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.

Examples

Run this code
# NOT RUN {
tmpdat<-as.data.frame(bov80K)
class(tmpdat)
tmpmap<-as.Map(tmpdat)
class(tmpmap)

# }

Run the code above in your browser using DataLab