[R] Filling array: No recycling
Felix Wave
felix-wave at vr-web.de
Thu May 3 11:41:55 CEST 2007
Hello,
is it possible to fill an array with no using of the recycling rule?
My problem. I want to fill an array but my values have not always
the same length.
My aim. I want to fill the array only ONE TIME. All vacent places
should be written with NA.
Thank's a lot.
Felix
Example:
--------
#Write 1 to 3 only one time. The last
#5 place should be NA.
dim(as.array(letters))
array(1:3, c(2,4) )
#na.strings = "NA"
More information about the R-help
mailing list