[R] how to make hash?& append element, if i want following condition
sagarnikam123
sagarnikam123 at gmail.com
Wed Feb 22 15:53:38 CET 2012
i did it, but using hash package ,i got error like
>hash1 <- new.env()
> hash1$A <- c(1.2, 3.4, 4.5)
> hash1$A
[1] 1.2 3.4 4.5
> h<-hash(keys=c("A","B"),values=c(hash1$A,hash1$A) )
Error in .set(h, ...) : Keys of length 2 do not match values of length 6
how should i proceed
--
View this message in context: http://r.789695.n4.nabble.com/how-to-make-hash-append-element-if-i-want-following-condition-tp4409761p4410576.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list