merge.gwaa.data: function to merge objects of gwaa.data-class

Description Usage Arguments Details Value Author(s) See Also Examples

Description

function to merge two objects of gwaa.data-class

Usage

1
2
	## S3 method for class 'gwaa.data'
merge(x, y, ...)

Arguments

x

the first object of gwaa.data-class

y

the second object of gwaa.data-class

...

arguments passed to merge.snp.data

Details

This function calls merge.snp.data to merge gtdata slots of the incoming objects; the phenotypic data contained in phdata slots are merged using standard function for data frames with arguments by="id" and all=TRUE. The merged object is filtered and sorted according to order of ids presented in the merged snp.data object.

Value

Merged object of gwaa.data-class

Author(s)

Maksim Struchalin, Yurii Aulchenko

See Also

merge.snp.data, add.phdata

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
	require(GenABEL.data)
	data(srdta)
	x1 <- srdta[c(1,3,5,6),c(2,4,5,6)]
	x2 <- srdta[c(2,4,5,6),c(1,3,5,6)]
	x3 <- merge(x1,x2)
	x1
	as.character(x1)
	x2
	as.character(x2)
	x3
	as.character(x3)
	srdta[1:6,1:6]
	as.character(srdta[1:6,1:6])

GenABEL documentation built on May 30, 2017, 3:36 a.m.