readClumpp: Read a Clumpp file

Description Usage Arguments Value Author(s) Examples

Description

Function reads Clumpp file and outputs all the colums right of colon (:) as a data.frame.

Usage

1

Arguments

x

Character Character string to the text file produced by Clumpp. Path can be absolute or relative.

Value

A data.frame with K columns (see Structure documentation for the meaning of K).

Author(s)

Roman Lustrik roman.lustrik@biolitika.si

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
x <- "1        1   (0)      2 :  0.0403 0.9597 
2        2   (0)      2 :  0.0209 0.9791 
3        3   (0)      2 :  0.0051 0.9949 
4        4   (0)      2 :  0.0115 0.9885 
5        5   (0)      3 :  0.0502 0.9498 
6        6   (0)      3 :  0.0425 0.9575 
7        7   (0)      3 :  0.0239 0.9761"

write(x, "temp.clumpp.txt")
readClumpp("temp.clumpp.txt")
unlink("temp.clumpp.txt")

romunov/zvau documentation built on May 27, 2019, 1:50 p.m.