livia wrote:
> I have got a list named "filtered", I would like to construct alist named
> "fdata" as following:
>
> fdata <- cbind(matrix(unlist(filtered),ncol=28), myregime)
>
> If I try names(filtered), it gives all the correct name for each vector, but
> if I try names(fdata), it ap
Hi,
Either of the following should work (I assume there are 28 elements in your
list):
fdata <- cbind(as.matrix(as.data.frame(filtered)), myregime)
fdata <- cbind("colnames<-"(matrix(unlist(filtered),ncol=28),
names(filtered)), myregime)
--- livia <[EMAIL PROTECTED]> wrote:
>
> I hav
2 matches
Mail list logo