Skip to content

Unexpected error "subset assignment" (bug?)

2 messages · Tuszynski, Jaroslaw W., roger bos

#
I didn't know anything about as.raw(), so I did ?as.raw and it refer
to raw vector, so my guess is that it doesn't work with matrix types. 
The following modified code seems to work, however:

b = matrix(0, 8,8)
q = 1:8
b[1,] = q
b <- as.raw(b)
dim(b) <- c(8,8)

HTH,
Roger


On Thu, 24 Mar 2005 10:32:33 -0500, Tuszynski, Jaroslaw W.
<JAROSLAW.W.TUSZYNSKI at saic.com> wrote: