[#]rstats thoughts on this behavior for intersect
? it’s clear the code within intersect has changed, but it's not clear to me if it's intended that list names are dropped?
x <- list(fruit = "pear", meat = "chicken")
y <- list(fruit = "pear")
intersect(x, y)
[#] R 4.4.1 (retains list names)
[#]> $fruit
[#]> [1] "pear"
[#] R-devel, 4.5.0 (drops list names)
[#]> [[1]]
[#]> [1] "pear"
=> More informations about this toot | View the thread | More toots from sckottie@fosstodon.org
=> View rstats tag This content has been proxied by September (3851b).Proxy Information
text/gemini