R/print.haplin.ready.R

Defines functions print.haplin.ready

print.haplin.ready <- function( x, ... ){
	cat( "
		This is preprocessed data, ready for haplin analysis.\n
		It contains the following parts:\n  ", paste( names( x ), collapse = ", " ), "\n
		with following dimensions:
	" )
	if( !is.null( x$cov.data ) ){
		cat( "  - number of covariate variables = ", ncol( x$cov.data ), "," )
	} else {
		cat( "  - no covariate variables," )
	}
	cat( "  - number of markers = ", length( x$aux$marker.names ), "," )
	cat( "  - number of individuals/families = ", nrow( x$gen.data[[ 1 ]] ) )
}

Try the Haplin package in your browser

Any scripts or data that you put into this service are public.

Haplin documentation built on May 20, 2022, 5:07 p.m.