From jussi.jousimo at ktl.fi  Mon Sep 26 13:34:23 2005
From: jussi.jousimo at ktl.fi (jussi.jousimo@ktl.fi)
Date: Mon, 26 Sep 2005 13:34:23 +0200 (CEST)
Subject: [Rd] Assigning a zero length vector to a list (PR#8157)
Message-ID: <20050926113423.E6A291C699@slim.kubism.ku.dk>

Full_Name: Jussi Jousimo
Version: 2.2.0 beta
OS: Windows XP
Submission from: (NULL) (193.167.195.60)


I'm trying to assign a zero length vector to a list:

x<-numeric()
length(x)
foo<-list()
foo$bar[[1]]<-x
length(foo$bar[[1]])
foo

But in the list this vector turns out to be length one with random content.
x<-character() makes R to crash.



[Rd] Assigning a zero length vector to a list (PR#8157)
jussi.jousimo@ktl.fi