[R] names in R list's

Witold E Wolski wewolski at gmail.com
Mon Sep 7 12:34:53 CEST 2015


What is the access time for R lists given a name of list element, is it
linear, log, or constant?

Than what are to rules for names in R-lists

That reusing names is possible makes me wonder.

tmp <- as.list(c(1,2,3,4))
names(tmp) = c("a","a","b","b")
tmp
tmp$a


What I am looking for is a standard R data structure which will allow me
for fast and name lookup.




-- 
Witold Eryk Wolski

	[[alternative HTML version deleted]]



More information about the R-help mailing list