writeResult | R Documentation |
This function produces an Excel document containing the genotype data and various LR tables.
writeResult(
resultTable,
pedigrees,
linkageMap,
markerData,
outfile,
notes = NULL,
famname = NULL,
hideEmpty = FALSE,
settings = NULL,
XML = NULL
)
resultTable |
A data frame. |
pedigrees |
A list of two |
linkageMap |
A data frame. |
markerData |
A data frame. |
outfile |
The output file name. |
notes |
A character vector. |
famname |
The name of the input |
hideEmpty |
A logical, indicating if untyped markers should be dropped. |
settings |
A list of KLINK settings to be included in the output |
XML |
Optional data from .xml file. |
# Built-in dataset `paternity`
peds = paternity
map = norSTR::map50
mdata = markerSummary(peds)
# Result table
LRtab = linkedLR(pedigrees = peds, linkageMap = map, markerData = mdata, verbose = FALSE)
# Write to excel
tmp = paste0(tempfile(), ".xlsx")
writeResult(LRtab,
pedigrees = peds,
linkageMap = map,
markerData = mdata,
outfile = tmp)
# openxlsx::openXL(tmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.