Create a gist now

Instantly share code, notes, and snippets.

anonymous /rlistsrweird.R
Created Sep 13, 2010

> x <- list(x=1,y=1)
> x
$x
[1] 1
$y
[1] 1
> names(x)
[1] "x" "y"
> x[['x']]
[1] 1
> x[['x']] <- NULL
> x
$y
[1] 1
> names(x)
[1] "y"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment