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. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.