Learn R Programming

Haplin (version 7.3.2)

showPheno: Display phenotype part of data

Description

This is a help function to extract phenotypic (and covariate) data from an object read in with genDataRead (or loaded with genDataLoad).

Usage

showPheno(data.in, n = 5, from, to, sex)

Value

A table with phenotypic and covariate data (if any) extracted from 'data.in'.

Arguments

data.in

The data read in by genDataRead).

n

Number of rows to display or "all" (default: 5).

from

From which row to display (optional, default: from the first).

to

To which row to display (optional).

sex

If the sex column is part of the phenotypic information, the user can choose based on one of the categories used in this column (optional); NB: this does not combine with the 'to' and 'from' arguments.