read.phe            package:GeneticsBase            R Documentation

_R_e_a_d '._p_h_e' _p_h_e_n_o_t_y_p_e _f_i_l_e _d_a_t_a

_D_e_s_c_r_i_p_t_i_o_n:

     Read '.phe' phenotype file data

_U_s_a_g_e:

     read.phe(filename, columns = c("family", "pid"), quiet = FALSE, ...)
     read.fbat.phe(filename, columns = c("family", "pid"), quiet = FALSE, ...)
     read.pbat.phe(filename, columns = c("family", "pid"), quiet = FALSE, ...)

_A_r_g_u_m_e_n_t_s:

filename: Name of the file

 columns: Column names for the first two columns of a pedigree file.
          Defaults to "family" and "pid", where "family" is a unique
          identifier for each family, and "pid" is a unique identifier
          for each individual. 

   quiet: Logical indicating whether progress display is suppressed,
          Defaults to 'TRUE'.

     ...: Additional (optional) parameters provided to function matrix

_V_a_l_u_e:

     A data frame containing the file

_A_u_t_h_o_r(_s):

     Gregory R. Warnes warnes@bst.rochester.edu and Nitin Jain
     nitin.jain@pfizer.com

_E_x_a_m_p_l_e_s:

     # store where we are now
     here <- getwd()

     # move to the data directory
     dir <- file.path(.path.package("GeneticsBase"),"data")
     setwd(dir)

     # load hapmap chromosome 1 data
     xbat <- readGenes(gfile="xbat.ped", gformat="fbat.ped",
                       pfile="xbat.phe", pformat="fbat.phe")

     # look at the data
     xbat

     # return to the original path
     setwd(here)

