[GenABEL-dev] databel float type
Frank, Alvaro Jesus
alvaro.frank at rwth-aachen.de
Mon Jul 28 18:12:03 CEST 2014
So yes, it seems utterly broken.
I am gonna take a small break until it is fixed.
-A Frank
________________________________
From: genabel-devel-bounces at lists.r-forge.r-project.org [genabel-devel-bounces at lists.r-forge.r-project.org] on behalf of Frank, Alvaro Jesus [alvaro.frank at rwth-aachen.de]
Sent: Monday, July 28, 2014 6:03 PM
To: genabel-devel at lists.r-forge.r-project.org
Subject: [GenABEL-dev] databel float type
Hi all,
what is wrong with this? R:
---------------------------------------------------------------------------------------------
library(DatABEL)
n = 100 # number of individuals
l = 2 # number of covariates
m = 10 # number of snps
t = 5 # number of traits
set.seed(1001)
runif(3)
XL <- matrix(rnorm((l+1)*n),ncol=(l+1)) # first column should be ones (intercept)
for(i in 1:n*l){ if(sample(1:10,1) > 5) XL[i]=0/0}
colnames(XL) <- c("intercept", paste("cov",1:l,sep=""))
rownames(XL) <- paste("ind",1:n,sep="")
XL_db <- matrix2databel(XL,filename="XL",type="FLOAT")
---------------------------------------------------------------------------------------------
The error that I get is this:
file contains data of unknown type 5
Error in !.Call("assignDoubleMatrix", x at data, newi, newj, as.double(value), :
invalid argument type
I cannot create any more databel flaot files....
A Frank
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/genabel-devel/attachments/20140728/18e35cf1/attachment.html>
More information about the genabel-devel
mailing list