readr_ebv: Read Estimated Breeding Values (EBV) from Input File

View source: R/input.R

readr_ebvR Documentation

Read Estimated Breeding Values (EBV) from Input File

Description

Given a result file containing EBV and possibly other information, the column with AnimalID and with EBV are extracted and returned as a two column result tibble. The result tibble contains the AnimalID in the first column and the EBV in the second column.

Usage

readr_ebv(
  ps_path,
  ps_format,
  ps_delim_char = " ",
  ps_animal_col_name = NULL,
  pn_animal_col_idx = 1,
  ps_ebv_col_name = NULL,
  pn_ebv_col_idx = NULL
)

Arguments

ps_path

path to the EBV input file

ps_format

format of the EBV input file, can be either of "csv", "csv2", "delim" or "table"

ps_delim_char

column delimiting character for format "delim"

ps_animal_col_name

column name for animal ID column

pn_animal_col_idx

column index for animal ID column

ps_ebv_col_name

column name for ebv column

pn_ebv_col_idx

column index for ebv column

Details

The EBV input file can be in different formats. Possible formats that are considered can be "csv", "csv2", "delim", "table". Where each of these format specifiers point to the respective function from the 'readr' package that is used for importing.

Value

ebv result tibble

Examples

s_ebv_path_partial <- qzwslrm_example_solani("partial")
tbl_ebv <- readr_ebv(ps_path = s_ebv_path_partial, ps_format = "table")

fbzwsqualitasag/qzwslrm documentation built on Sept. 13, 2022, 3:28 p.m.